public CDOCheckoutStateManager getStateManager() {
    if (stateManager == null) {
      String viewerID = config.getService().getViewerId();
      CDOCheckoutContentProvider contentProvider = CDOCheckoutContentProvider.getInstance(viewerID);
      if (contentProvider != null) {
        stateManager = contentProvider.getStateManager();
      }
    }

    return stateManager;
  }
Example #2
0
  public static void refreshContent(
      ICommonContentExtensionSite site, final Object elementOrTreePath) {
    final NavigatorContentService s = (NavigatorContentService) site.getService();

    sync(
        new Runnable() {
          public void run() {
            try {
              final CommonViewer viewer = (CommonViewer) s.getViewer();
              viewer.refresh(true);
              viewer.setExpandedState(elementOrTreePath, true);
            } catch (Exception e) {
            }
          }
        });
  }