Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Providing contextual help in tooling
Providing contextual help in tooling [message #327871] Tue, 06 May 2008 21:20 Go to next message
Eclipse UserFriend
Originally posted by: david_whiteman.us.ibm.com

What is the preferred method of providing contextual (F1) help in
tooling? Is there good documentation somewhere showing how one would
instrument their tooling so that F1 brought up the appropriate
documentation? I have a couple of Eclipse books, but something someone
told me recently made me think that there is a different preferred
method these days.

Thanks,
David
Re: Providing contextual help in tooling [message #327876 is a reply to message #327871] Wed, 07 May 2008 00:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: zx.us.ibm.com

If you create a view using one of the PDE templates, there should be a
checkbox that says "create context help." With that, the template should
generate the proper context xml files for you along with the html file.
Furthermore, it will also add the hook where it informs the Platform
that you're providing context-sensitive (F1) help.

Let me know if this helps, if not, I can blog about this.

Cheers,

~ Chris
Re: Providing contextual help in tooling [message #327877 is a reply to message #327876] Wed, 07 May 2008 01:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: david_whiteman.us.ibm.com

Chris Aniszczyk wrote:
> If you create a view using one of the PDE templates, there should be a
> checkbox that says "create context help." With that, the template should
> generate the proper context xml files for you along with the html file.
> Furthermore, it will also add the hook where it informs the Platform
> that you're providing context-sensitive (F1) help.
>
> Let me know if this helps, if not, I can blog about this.
>
> Cheers,
>
> ~ Chris

I've had the view for a long time and did not use the templates when I
created it initially. However, I can certainly generate a dummy view
just to see what is needed, and then copy that approach for my plugin.
Thanks, Chris!

David
Re: Providing contextual help in tooling [message #327931 is a reply to message #327877] Thu, 08 May 2008 17:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: david_whiteman.us.ibm.com

David Whiteman wrote:
> Chris Aniszczyk wrote:
>> If you create a view using one of the PDE templates, there should be a
>> checkbox that says "create context help." With that, the template
>> should generate the proper context xml files for you along with the
>> html file. Furthermore, it will also add the hook where it informs the
>> Platform that you're providing context-sensitive (F1) help.
>>
>> Let me know if this helps, if not, I can blog about this.
>>
>> Cheers,
>>
>> ~ Chris
>
> I've had the view for a long time and did not use the templates when I
> created it initially. However, I can certainly generate a dummy view
> just to see what is needed, and then copy that approach for my plugin.
> Thanks, Chris!
>
> David

OK, I have set this up. What I've observed is you can add help hooks to
any control, which takes you to a context that can link you to a topic
in the documentation.

What I'd like to do is have the help hook go straight to the
documentation. If the documentation describes the indicated control,
why should the user have to read something like "This is the panic
button." and click on a link to see the real documentation? Plus, this
introduces more maintenance if you have more to document in the
contexts.xml file.

It would be nice if I could define a <context> and then indicate that a
<topic> auto-loads. That would solve the problem I mentioned nicely.

[Cross posting to eclipse.platform.ua, since I just learned of that
group, and this really belongs there.]

Thanks,
David
Re: Providing contextual help in tooling [message #327933 is a reply to message #327931] Thu, 08 May 2008 17:45 Go to previous messageGo to next message
Chris Goldthorpe is currently offline Chris GoldthorpeFriend
Messages: 815
Registered: July 2009
Senior Member
If you use Eclipse 3.4M7 or later a context with a single topic and no
description will take you straight to the page in the link.
Re: Providing contextual help in tooling [message #327940 is a reply to message #327933] Thu, 08 May 2008 21:17 Go to previous message
Eclipse UserFriend
Originally posted by: david_whiteman.us.ibm.com

Chris Goldthorpe wrote:
> If you use Eclipse 3.4M7 or later a context with a single topic and no
> description will take you straight to the page in the link.

Wow, exactly what I was looking for. Thanks!
Previous Topic:JAR signing question - Eclipse 3.4 with P2 provisioning
Next Topic:Enabling Handlers for copy/cut/paste commands
Goto Forum:
  


Current Time: Sun Jun 30 00:16:02 GMT 2024

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

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

Back to the top