引入org.eclipse.core.resources插件工程 使用如下代码: String filePaht ="abx.xml" IFile firstFile = ResourcesPlugin.getWorkspace().getRoot().getFile(Path.fromOSString(filePaht )); IFile secondFile = ResourcesPlugin.getWorkspace().getRoot().getFile(Path.fromPortableString(filePaht ));
2011-06-30 11:00 · Eclipse