How I can open specific help topic in eclipse help window programatically running on Linux(Ubuntu 14.04)?
Ex: I want to open "Tasks view" help as shown in below pic pro-grammatically.
PlatformUI.getWorkbench().getHelpSystem() .displayHelpResource("/org.eclipse.platform.doc.user/concepts/ctskview.htm");
But the help topic is opening in external browser(firefox) NOT in eclipse help widow.
How I can open this topic in eclipse help widow(Window which opens when clicked Help > Help contents
menu in eclipse workbench).
According to your print screen you are using Linux. The internal Window only works for Windows.
Have a look at the code in DefaultHelpUI
(On non Windows platforms, use external when modal window is displayed):
private boolean useExternalBrowser(String url) {
// On non Windows platforms, use external when modal window is displayed
if (!Constants.OS_WIN32.equalsIgnoreCase(Platform.getOS())) {
Display display = Display.getCurrent();
if (display != null) {
if (insideModalParent(display))
return true;
}
}
// Use external when no help frames are to be displayed, otherwise no
// navigation buttons.
if (url != null) {
if (url.indexOf("?noframes=true") > 0 //$NON-NLS-1$
|| url.indexOf("&noframes=true") > 0) { //$NON-NLS-1$
return true;
}
}
return false;
}