当前位置: 代码迷 >> Eclipse >> eclipse中获得指定目录文件
  详细解决方案

eclipse中获得指定目录文件

热度:47   发布时间:2016-04-23 12:34:05.0
eclipse中取得指定目录文件

IWorkspace workspace= ResourcesPlugin.getWorkspace();
IPath location= Path.fromOSString(file.getAbsolutePath());
IFile file= workspace.getRoot().getFilesForLocation(location);

  相关解决方案