<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    獨自等待
    那曾經從自己身邊溜走的人……
    posts - 0,comments - 3,trackbacks - 0
    從插件中獲得絕對路徑:    
    AaaaPlugin.getDefault().getStateLocation().makeAbsolute().toFile().getAbsolutePath());  
    通過文件得到Project:
    IProject project = ((IFile)o).getProject();  
    通過文件得到全路徑:
    String path = ((IFile)o).getLocation().makeAbsolute().toFile().getAbsolutePath();   
    得到整個Workspace的根:
    IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();   
    從根來查找資源:
    IResource resource = root.findMember(new Path(containerName));   
    從Bundle來查找資源:
    Bundle bundle = Platform.getBundle(pluginId);    
    URL fullPathString 
    = BundleUtility.find(bundle, filePath);  
    從編輯器來獲得編輯文件
    IEditorPart editor = ((DefaultEditDomain)(parent.getViewer().getEditDomain())).getEditorPart();    
    IEditorInput input 
    = editor.getEditorInput();    
    if(input instanceof IFileEditorInput){    
      IFile file 
    = ((IFileEditorInput)input).getFile();    
    }
       
    得到runtimeworkspace:
    Platform.getInstanceLocation().getURL().getPath();   
    得到Appliaction workspace:
    Platform.asLocalURL(PRODUCT_BUNDLE.getEntry("")).getPath()).getAbsolutePath();   


    posted on 2008-11-20 19:39 自由 閱讀(602) 評論(0)  編輯  收藏 所屬分類: Eclipse
    主站蜘蛛池模板: 日韩a在线观看免费观看| 亚洲AV中文无码乱人伦下载| 人碰人碰人成人免费视频| 亚洲精品国产精品乱码不卡√ | 中文字幕不卡免费视频| 亚洲人成在线中文字幕| 亚洲?V无码乱码国产精品| 久久99热精品免费观看牛牛| 亚洲欧美第一成人网站7777| 亚洲高清国产拍精品熟女| 亚洲人成无码网WWW| 日本免费xxxx| 国产免费久久精品99久久| 亚洲人成图片网站| 亚洲精品制服丝袜四区| 四虎免费在线观看| 99久久国产免费-99久久国产免费 99久久国产免费中文无字幕 | 国产午夜精品免费一区二区三区 | 亚洲VA综合VA国产产VA中| 8090在线观看免费观看| 全黄A免费一级毛片| 免费国产成人高清在线观看麻豆| 视频免费在线观看| 国产成人 亚洲欧洲| 亚洲图片中文字幕| 久久精品视频亚洲| 亚洲精品国产精品乱码不卞| 好男人www免费高清视频在线| 国产日韩AV免费无码一区二区| 久久综合亚洲色hezyo| 亚洲国产品综合人成综合网站| 中文字幕不卡亚洲| 亚洲A∨午夜成人片精品网站 | 一本久久综合亚洲鲁鲁五月天| 99久久99这里只有免费费精品| 国产又黄又爽胸又大免费视频| 在线看亚洲十八禁网站| 在线亚洲午夜片AV大片| 亚洲码在线中文在线观看| 亚洲国产精品嫩草影院在线观看| 亚洲精品一级无码鲁丝片|