//EMFFILE_URI为EMF文件的URI String uriString = EMFFILE_URI.trimFragment().toPlatformString(true); if (uriString != null) { IPath fullPath = new Path(uriString); return ResourcesPlugin.getWorkspace().getRoot().getFile(fullPath); }