eclipse中取得指定目录文件
IWorkspace workspace= ResourcesPlugin.getWorkspace();
IPath location= Path.fromOSString(file.getAbsolutePath());
IFile file= workspace.getRoot().getFilesForLocation(location);
发布时间: 2012-09-02 21:00:34 作者: rapoo
eclipse中取得指定目录文件
IWorkspace workspace= ResourcesPlugin.getWorkspace();
IPath location= Path.fromOSString(file.getAbsolutePath());
IFile file= workspace.getRoot().getFilesForLocation(location);