ITeye博客

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

mwhgJava · 2011-06-30 11:00 · Eclipse · 编程语言 · Markdown

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

评论(1)

  1. #1 楼 · imu2008 · 2013-01-08 17:24

    :D good~

评论功能维护中,当前仅展示历史评论。