*/
}
protected boolean resolvePage(String contextId, boolean endpoint) {
String contextName = contextId;
IContext context = HelpSystem.getContext(contextName);
if (context == null) {
if (endpoint) {
contextName = "org.fusesource.ide.camel.editor.endpoint";
} else {
contextName = "org.fusesource.ide.camel.editor.allEIPs";
context = HelpSystem.getContext("");
}
context = HelpSystem.getContext(contextName);
// Activator.getLogger().debug("Context ID " + contextId +
// " is bad using default.");
}
if (context == null) {
Activator.getLogger().warning(
"Could not find context: " + contextName);
return false;
}
IHelpResource[] relatedTopics = context.getRelatedTopics();
if (relatedTopics != null && relatedTopics.length > 0) {
IHelpResource resource = relatedTopics[0];
if (resource != null) {
String helpUrl = resource.getHref();
IWorkbenchHelpSystem helpSystem = PlatformUI.getWorkbench()