Package org.eclipse.ui.internal.provisional.cheatsheets

Examples of org.eclipse.ui.internal.provisional.cheatsheets.TaskExplorer


      }
    });
  }

  private void setCurrentExplorerFromId(String explorerId) {
    TaskExplorer explorer = getTaskExplorer(explorerId);
    if (explorer!=null) {
      explorer.setCompositeCheatSheet(this.model);
      explorer.setFocus();
      setExplorerVisible(explorerId);
    }
  }
View Full Code Here


    }
  }

  private void setExplorerVisible(String id) {
    Control [] excontrols = explorerContainer.getChildren();
    TaskExplorer explorer=null;
    for (int i=0; i<excontrols.length; i++) {
      Control excontrol = excontrols[i];
      explorer = (TaskExplorer)excontrol.getData(ICompositeCheatsheetTags.EXPLORER);
      if (explorer.getId().equals(id)) {
        explorerContainer.showPage(excontrol);
        setCurrentExplorer(explorer);
        return;
      }
    }
View Full Code Here

    updateForSelection(currentExplorer.getSelectionProvider().getSelection());
  }

  private TaskExplorer getTaskExplorer(String id) {
    Control [] excontrols = explorerContainer.getChildren();
    TaskExplorer explorer=null;
    for (int i=0; i<excontrols.length; i++) {
      Control excontrol = excontrols[i];
      Object data = excontrol.getData(ICompositeCheatsheetTags.EXPLORER);
      if (data instanceof TaskExplorer) {
          explorer = (TaskExplorer)data;
          if (explorer.getId().equals(id)) {
            return explorer;
          }
      }
    }
 
    // Load the explorer from an extension point

    TaskExplorerManager explorerManager = TaskExplorerManager.getInstance();
    explorer = explorerManager.getExplorer(id);
    if (explorer != null) {
      explorer.createControl(explorerContainer, mform.getToolkit());
      explorer.getControl().setData(ICompositeCheatsheetTags.EXPLORER, explorer);
      new TreeExplorerMenu(explorer);
    }
    return explorer;
  }
View Full Code Here

 
  public TaskExplorer getExplorer(String explorerKind) {
    CheatSheetRegistryReader.TaskExplorerNode explorerInfo =
      CheatSheetRegistryReader.getInstance().findTaskExplorer(explorerKind);
    if (explorerInfo != null) {
      TaskExplorer explorerInstance = null;
      Class extClass = null;
      String className = explorerInfo.getClassName();
      try {
        Bundle bundle = Platform.getBundle(explorerInfo.getPluginId());
        extClass = bundle.loadClass(className);
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.provisional.cheatsheets.TaskExplorer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.