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); }
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; }
public IAction getGlobalAction(String id) { if (id.equals(ActionFactory.COPY.getId())) return parent.getCopyAction(); return null; }
/* * (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); }
private void doMore() { parent.startSearch(phrase); }
/* * (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); }