引入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 ));