How access files under src directory in a project?

Hi Team,
  I need to open source file in Editor locate under src directory. Is there any API function available full fill mentioned requirment.

Thanks,
Navin

1 comment
Comment actions Permalink
String base = project.getBaseDir().getPath();
String full =  String.format("%s/%s/src/%s", base, module, fileName);
OpenFileAction.openFile(full, project);


checked. works.

0

Please sign in to leave a comment.