コード例 #1
0
  private void doOpenLink(Object href) {
    String url = (String) href;

    if (url.startsWith("nw:")) { // $NON-NLS-1$
      PlatformUI.getWorkbench().getHelpSystem().displayHelpResource(url.substring(3));
    } else parent.showURL(url);
  }
コード例 #2
0
 private boolean isExcluded(String href, IHelpResource[] excludedTopics) {
   if (excludedTopics == null) return false;
   for (int i = 0; i < excludedTopics.length; i++) {
     if (href.startsWith(excludedTopics[i].getHref())) return true;
     if (parent.isFilteredByRoles()) {
       if (!HelpBasePlugin.getActivitySupport().isEnabled(href)) return true;
     }
   }
   return false;
 }
コード例 #3
0
 public IAction getGlobalAction(String id) {
   if (id.equals(ActionFactory.COPY.getId())) return parent.getCopyAction();
   return null;
 }
コード例 #4
0
 /*
  * (non-Javadoc)
  *
  * @see org.eclipse.help.ui.internal.views.IHelpPart#fillContextMenu(org.eclipse.jface.action.IMenuManager)
  */
 public boolean fillContextMenu(IMenuManager manager) {
   return parent.fillFormContextMenu(searchResults, manager);
 }
コード例 #5
0
 private void doMore() {
   parent.startSearch(phrase);
 }
コード例 #6
0
 /*
  * (non-Javadoc)
  *
  * @see org.eclipse.help.ui.internal.views.IHelpPart#init(org.eclipse.help.ui.internal.views.NewReusableHelpPart)
  */
 public void init(ReusableHelpPart parent, String id, IMemento memento) {
   this.parent = parent;
   this.id = id;
   parent.hookFormText(searchResults);
 }