您的位置:首页 > 其它

主机没有Login到存储,交换机上需要做哪些检查?

2014-10-23 16:15 288 查看
由一个文件夹的系统绝对路径,判断这个文件夹是否在workspace中。

 

 

String path= "C:\runtime-myproduct\project1";
IPath folderPath = new Path(path);
IContainer container  = ResourcesPlugin.getWorkspace().getRoot().getContainerForLocation(folderPath);
if(container != null){
//means it's in the workspace
}

 
 

判断文件可以用

ResourcesPlugin.getWorkspace().getRoot().getFileForLocation(IPath location)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐