private boolean redirectLink(final String url) { if (url.indexOf("/topic/") != -1) { //$NON-NLS-1$ if (url.indexOf("noframes") == -1) { //$NON-NLS-1$ // char sep = url.lastIndexOf('?') != -1 ? '&' : '?'; // String newURL = url + sep + "noframes=true"; //$NON-NLS-1$ return true; } } else if (url.indexOf("livehelp/?pluginID=")>0) { //$NON-NLS-1$ processLiveAction(url); return true; } return false; }
public void refilter() { showURL(this.url); }
private void doBack() { String id = getCurrentPageId(); if (id.equals(IHelpUIConstants.HV_BROWSER_PAGE)) { // stop the browser BrowserPart part = (BrowserPart) findPart(IHelpUIConstants.HV_BROWSER); part.stop(); } HistoryEntry entry = history.prev(); if (entry != null) executeHistoryEntry(entry); }
.setDefaultText(getDefaultContextHelpText()); } else if (id.equals(HV_BROWSER)) { part = new BrowserPart(parent, mform.getToolkit(), tbm); } else if (id.equals(HV_SEARCH_RESULT)) { part = new DynamicHelpPart(parent, mform.getToolkit());
public void init(ReusableHelpPart parent, String id, IMemento memento) { this.parent = parent; this.id = id; if (memento != null) { String href = memento.getString("BrowserPart.url"); //$NON-NLS-1$ if (href != null) showURL(BaseHelpSystem.resolve(href, "/help/ntopic").toString()); //$NON-NLS-1$ } }
private boolean openInternalBrowser(String url) { Preferences pref = HelpBasePlugin.getDefault().getPluginPreferences(); boolean openInEditor = pref.getBoolean(IHelpBaseConstants.P_KEY_OPEN_IN_EDITOR); Shell windowShell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(); Shell helpShell = mform.getForm().getShell(); boolean isDialog = (helpShell != windowShell); if (!isDialog && openInEditor) { return DefaultHelpUI.showInWorkbenchBrowser(url, true); } showPage(IHelpUIConstants.HV_BROWSER_PAGE); BrowserPart bpart = (BrowserPart) findPart(IHelpUIConstants.HV_BROWSER); if (bpart != null) { bpart.showURL(BaseHelpSystem .resolve(url, "/help/ntopic").toString()); //$NON-NLS-1$ return true; } return false; }