Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Context Sensitive Help(Context Sensitive Help)
Context Sensitive Help [message #1729660] Sun, 17 April 2016 05:44
Eclipse UserFriend
Hello,

I have provided a dynamic context sensitive help in my Eclipse RCP application using these references:
http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fua_help_context_xml.htm
https://www.eclipse.org/articles/article.php?file=Article-DynamicCSH/index.html

I have two questions about it:

1. In my case that's a GEF editor, and I like when user selects an element and presses F1, the corresponding help topic to open in the side view. Right now (I guess this is the intended design) the help view presents list of related topics and user needs to click on the topic to see the help content.
Is there a way to directly open a help topic when user presses F1 (instead of first going though the "Related Topics" page)?

2. Right now, when I press F1, the generic Platform Editor help topic is displayed, then I need to click again the element to get the proper context. To overcome that, I'm using a selection listener in the GEF editor and dynamically setting the proper context to the GEF viewer control:
PlatformUI.getWorkbench().getHelpSystem().setHelp(viewer.getControl(), contextId);
Is there an easier way to achieve that?

Thanks and regards,
Dinko
Previous Topic:Install EclipseRCP Book software
Next Topic:Trying to create project in a sub folder under the workspace path fails: Invalid project description
Goto Forum:
  


Current Time: Sat Mar 15 11:17:48 EDT 2025

Powered by FUDForum. Page generated in 0.04189 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top