ITeye博客

Eclipse

共 1 篇文章

如何创建一个org.eclipse.core.resources.IFile对象实例

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