Eclipse 获得插件工作区文件夹路径
String projectRoot = Platform.getInstanceLocation().getURL().getPath();
IFile file = (IFile) PlatformUI.getWorkbench()
.getActiveWorkbenchWindow().getActivePage()
.getActiveEditor().getEditorInput().getAdapter(IFile.class);
IProject project = file.getProject();
...

浙公网安备 33010602011771号