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

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

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

    Hexise's Blog

    業(yè)精于勤荒于嬉 行成于思毀于隨
    posts - 13, comments - 12, trackbacks - 0, articles - 0
      BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

    Eclipse插件如何刷新資源管理器?

    Posted on 2006-12-29 12:19 Hexise 閱讀(1593) 評論(0)  編輯  收藏 所屬分類: Eclipse Plugin

    最近項目中出現(xiàn)了一個bug,提示是Resource can not sync with file system.是文件系統(tǒng)不同步的問題,需要手動刷新一下資源管理器.

    刷新資源管理器調用方法:

    RefreshLocal

    public void refreshLocal(int depth, IProgressMonitor monitor)
    ????????????????? throws CoreException

    Refreshes the resource hierarchy from this resource and its children (to the specified depth) relative to the local file system. Creations, deletions, and changes detected in the local file system will be reflected in the workspace's resource tree. This resource need not exist or be local.
    This method may discover changes to resources; any such changes will be reported in a subsequent resource change event.

    If a new file or directory is discovered in the local file system at or below the location of this resource, any parent folders required to contain the new resource in the workspace will also be created automatically as required.

    This method is long-running; progress and cancellation are provided by the given progress monitor.


    Parameters:
    depth - valid values are DEPTH_ZERO, DEPTH_ONE, or DEPTH_INFINITE
    monitor - a progress monitor, or null if progress reporting is not desired
    Throws:
    CoreException - if this method fails. Reasons include:
    Resource changes are disallowed during certain types of resource change event notification. See IResourceChangeEvent for more details.
    OperationCanceledException - if the operation is canceled. Cancelation can occur even if no progress monitor is provided.
    See Also:
    DEPTH_ZERO, DEPTH_ONE, DEPTH_INFINITE, IResourceRuleFactory.refreshRule(IResource)

    該方法位于org.eclipse.core.resources.IResource

    我的調用方法是:

    ResourcesPlugin.getWorkspace().getRoot().refreshLocal(IResource.DEPTH_INFINITE, monitor);

    主站蜘蛛池模板: 99re免费在线视频| 免费在线看污视频| 男女啪啪永久免费观看网站| 亚洲第一页在线播放| 日本黄网站动漫视频免费| 亚洲精品美女在线观看播放| 2021在线永久免费视频| 久久精品亚洲中文字幕无码麻豆 | 特级一级毛片免费看| 免费观看四虎精品国产永久| 亚洲AV成人片无码网站| 亚洲精品国产日韩无码AV永久免费网 | 亚洲国产精品午夜电影| 黄在线观看www免费看| 亚洲免费福利视频| 女人被男人躁的女爽免费视频| 亚洲午夜无码久久久久软件| 国产精品深夜福利免费观看| 狠狠躁狠狠爱免费视频无码| 亚洲国产精品SSS在线观看AV| 亚洲成人免费网址| 亚洲国产成人精品无码区二本| 四虎影视免费永久在线观看| 亚美影视免费在线观看| 亚洲欧洲精品视频在线观看| 岛国大片免费在线观看| 一级日本高清视频免费观看 | a色毛片免费视频| 亚洲男女一区二区三区| 全免费一级午夜毛片| 国产精品九九久久免费视频 | 亚洲精品一级无码鲁丝片| 黄色网址在线免费| 亚洲91精品麻豆国产系列在线| 国产一级淫片a视频免费观看| 免费人成毛片动漫在线播放| 亚洲乱色熟女一区二区三区蜜臀| 国产亚洲人成A在线V网站| 免费大片黄在线观看yw| 人人爽人人爽人人片av免费| 亚洲精品中文字幕无乱码|