IWorkspace workspace= ResourcesPlugin.getWorkspace();
IPath location= Path.fromOSString(file.getAbsolutePath());
IFile file= workspace.getRoot().getFilesForLocation(location);
eclipse中取得指定目录文件
最新推荐文章于 2025-08-09 22:17:50 发布
IWorkspace workspace= ResourcesPlugin.getWorkspace();
IPath location= Path.fromOSString(file.getAbsolutePath());
IFile file= workspace.getRoot().getFilesForLocation(location);