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

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

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

    Hexise's Blog

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

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

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

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

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

    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);

    主站蜘蛛池模板: 亚洲黄页网在线观看| 国产亚洲精AA在线观看SEE| 亚洲youjizz| 亚洲w码欧洲s码免费| 亚洲高清在线观看| 中文字幕免费观看| 色噜噜综合亚洲av中文无码| 99久热只有精品视频免费观看17| 婷婷久久久亚洲欧洲日产国码AV | 67pao强力打造国产免费| 亚洲午夜免费视频| 久久久久av无码免费网| www.亚洲成在线| 四虎成人免费大片在线| 真人无码作爱免费视频| 亚洲?V乱码久久精品蜜桃 | 国产成人亚洲综合a∨| 亚洲精品岛国片在线观看| 中文字字幕在线高清免费电影| 亚洲日韩一页精品发布| 99re这里有免费视频精品 | 国产亚洲情侣一区二区无码AV | 一个人看的在线免费视频| 亚洲人成网7777777国产| 99久久国产免费-99久久国产免费| 亚洲一区动漫卡通在线播放| 日韩毛片无码永久免费看| 一道本在线免费视频| 亚洲电影一区二区三区| 免费电视剧在线观看| 免费福利在线观看| 亚洲五月六月丁香激情| 岛国片在线免费观看| 国产精品视频全国免费观看| 亚洲自偷精品视频自拍| 国产成人免费A在线视频| a级片免费观看视频| 亚洲性色AV日韩在线观看| 相泽亚洲一区中文字幕| 免费能直接在线观看黄的视频| 国产精品亚洲一区二区在线观看 |