Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to provide context-sensitive help for a view
How to provide context-sensitive help for a view [message #143560] Tue, 14 October 2003 08:11 Go to next message
Eclipse UserFriend
Originally posted by: Eric.Jain.isb-sib.ch

I'd like to add context sensitive help to a view. Unfortunately there
doesn't seem to be a helpContextId for views in the plugin.xml, so the
closest I can get is:

public void createPartControl(Composite parent)
{
WorkbenchHelp.setHelp(parent, "test.viewHelp");
...
}

This however only works if the view is not empty. In latter case, F1
displays the default help message "Each workbench window..." instead of my
own text.

Any suggestions how to work around this?

--
Eric Jain
Re: How to provide context-sensitive help for a view [message #143647 is a reply to message #143560] Tue, 14 October 2003 10:35 Go to previous message
Eclipse UserFriend
A focus must be set on the control for F1 to work. If there is no focusable
elements in the view, the event will be handled by one of the ancestors that
can have focus.
Konrad Kolosowski

"Eric Jain" <Eric.Jain@isb-sib.ch> wrote in message
news:bmgp4a$9v1$1@eclipse.org...
> I'd like to add context sensitive help to a view. Unfortunately there
> doesn't seem to be a helpContextId for views in the plugin.xml, so the
> closest I can get is:
>
> public void createPartControl(Composite parent)
> {
> WorkbenchHelp.setHelp(parent, "test.viewHelp");
> ...
> }
>
> This however only works if the view is not empty. In latter case, F1
> displays the default help message "Each workbench window..." instead of my
> own text.
>
> Any suggestions how to work around this?
>
> --
> Eric Jain
>
>
Previous Topic:Select all from Text widget
Next Topic:Classpath issue with v3.0m4
Goto Forum:
  


Current Time: Wed Mar 12 16:08:07 EDT 2025

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

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

Back to the top