RCP的文件路径得到runtimeworkspace:Platform.getInstanceLocation().getURL().getPath()从编辑器来获得
RCP的文件路径
得到runtimeworkspace:
Platform.getInstanceLocation().getURL().getPath();
从编辑器来获得编辑文件
IEditorPart editor? =? ((DefaultEditDomain)(parent.getViewer().getEditDomain())).getEditorPart();
IEditorInput input? =? editor.getEditorInput();
if (input? instanceof? IFileEditorInput)? {
IFile file? =? ((IFileEditorInput)input).getFile();
}
