Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 12: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 14:35 Go to previous message
Konrad Kolosowski is currently offline Konrad KolosowskiFriend
Messages: 243
Registered: July 2009
Senior Member
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: Thu Dec 26 12:23:37 GMT 2024

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

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

Back to the top