Skip to main content



      Home
Home » Eclipse Projects » Platform - User Assistance (UA) » dynamic help / help view
dynamic help / help view [message #474160] Fri, 18 July 2008 06:41 Go to next message
Eclipse UserFriend
Hello,

In my RCP application I must show informations about each input element
in a complex form editor.
Those help informations should be available from the help system too.

I 'upgraded' from a customized browser widget to contex help with
success. Now I can use all the features of the help system like platform
URLs (which allows me to package my plugins as jars) or common css.

The disadvantage is the less control I have over the help view. The help
view is defined as sticky, what prevents me from placing it where I want
and to stay in one perspective.

1. Can I get rid of the sticky behaviour ? I already tried
equinox.tranforms but I learned that this solution is too heavyweight
for me.

2. If not, how can I use the help system features as described above in
a browser widget, e.g. get the help system to render a context help
html-page to pass to it ?

Thanks
Sebastian
Re: dynamic help / help view [message #474163 is a reply to message #474160] Mon, 21 July 2008 18:14 Go to previous messageGo to next message
Eclipse UserFriend
You can change the F1 behavior to open in an infopop rather than in the
help view. This is controlled by the preferences window_infopop and
dialog_infopop, see
http://help.eclipse.org/help33/topic/org.eclipse.platform.do c.isv/guide/ua_help_setup_preferences.htm

The second thing you would need to do to prevent the help view from
appearing is to fix help/search to show the external browser rather than
the help view. Unfortunately there is not a preference for this, there
probably should be. If that is important to you please open a bug report
and I'll see if I can attach a snippet to direct search to the browser.

Sebastian Fuchs wrote:
> Hello,
>
> In my RCP application I must show informations about each input element
> in a complex form editor.
> Those help informations should be available from the help system too.
>
> I 'upgraded' from a customized browser widget to contex help with
> success. Now I can use all the features of the help system like platform
> URLs (which allows me to package my plugins as jars) or common css.
>
> The disadvantage is the less control I have over the help view. The help
> view is defined as sticky, what prevents me from placing it where I want
> and to stay in one perspective.
>
> 1. Can I get rid of the sticky behaviour ? I already tried
> equinox.tranforms but I learned that this solution is too heavyweight
> for me.
>
> 2. If not, how can I use the help system features as described above in
> a browser widget, e.g. get the help system to render a context help
> html-page to pass to it ?
>
> Thanks
> Sebastian
Re: dynamic help / help view [message #474164 is a reply to message #474163] Tue, 22 July 2008 06:14 Go to previous messageGo to next message
Eclipse UserFriend
Thank You Chris,

unfortunatly none of both options apply to my requirements.
What I need is a (non-sticky) view where I can show a specific help topic.

Sebastian


Chris Goldthorpe schrieb:
> You can change the F1 behavior to open in an infopop rather than in the
> help view. This is controlled by the preferences window_infopop and
> dialog_infopop, see
> http://help.eclipse.org/help33/topic/org.eclipse.platform.do c.isv/guide/ua_help_setup_preferences.htm
>
>
> The second thing you would need to do to prevent the help view from
> appearing is to fix help/search to show the external browser rather than
> the help view. Unfortunately there is not a preference for this, there
> probably should be. If that is important to you please open a bug report
> and I'll see if I can attach a snippet to direct search to the browser.
>
Re: dynamic help / help view [message #474168 is a reply to message #474164] Mon, 28 July 2008 07:08 Go to previous message
Eclipse UserFriend
I managed to extract the URL the Help-System uses itself.

IHelpResource helpResource =
HelpSystem.getContext(contextID).getRelatedTopics()[0];
String href = helpResource.getHref();
url = PlatformUI.getWorkbench().getHelpSystem().resolve(href, true);

Then I pass this URL to a browser widget in a view.

Works great.

Sebastian
Re: dynamic help / help view [message #619283 is a reply to message #474160] Mon, 21 July 2008 18:14 Go to previous message
Eclipse UserFriend
You can change the F1 behavior to open in an infopop rather than in the
help view. This is controlled by the preferences window_infopop and
dialog_infopop, see
http://help.eclipse.org/help33/topic/org.eclipse.platform.do c.isv/guide/ua_help_setup_preferences.htm

The second thing you would need to do to prevent the help view from
appearing is to fix help/search to show the external browser rather than
the help view. Unfortunately there is not a preference for this, there
probably should be. If that is important to you please open a bug report
and I'll see if I can attach a snippet to direct search to the browser.

Sebastian Fuchs wrote:
> Hello,
>
> In my RCP application I must show informations about each input element
> in a complex form editor.
> Those help informations should be available from the help system too.
>
> I 'upgraded' from a customized browser widget to contex help with
> success. Now I can use all the features of the help system like platform
> URLs (which allows me to package my plugins as jars) or common css.
>
> The disadvantage is the less control I have over the help view. The help
> view is defined as sticky, what prevents me from placing it where I want
> and to stay in one perspective.
>
> 1. Can I get rid of the sticky behaviour ? I already tried
> equinox.tranforms but I learned that this solution is too heavyweight
> for me.
>
> 2. If not, how can I use the help system features as described above in
> a browser widget, e.g. get the help system to render a context help
> html-page to pass to it ?
>
> Thanks
> Sebastian
Re: dynamic help / help view [message #619285 is a reply to message #474163] Tue, 22 July 2008 06:14 Go to previous message
Eclipse UserFriend
Thank You Chris,

unfortunatly none of both options apply to my requirements.
What I need is a (non-sticky) view where I can show a specific help topic.

Sebastian


Chris Goldthorpe schrieb:
> You can change the F1 behavior to open in an infopop rather than in the
> help view. This is controlled by the preferences window_infopop and
> dialog_infopop, see
> http://help.eclipse.org/help33/topic/org.eclipse.platform.do c.isv/guide/ua_help_setup_preferences.htm
>
>
> The second thing you would need to do to prevent the help view from
> appearing is to fix help/search to show the external browser rather than
> the help view. Unfortunately there is not a preference for this, there
> probably should be. If that is important to you please open a bug report
> and I'll see if I can attach a snippet to direct search to the browser.
>
Re: dynamic help / help view [message #619296 is a reply to message #474164] Mon, 28 July 2008 07:08 Go to previous message
Eclipse UserFriend
I managed to extract the URL the Help-System uses itself.

IHelpResource helpResource =
HelpSystem.getContext(contextID).getRelatedTopics()[0];
String href = helpResource.getHref();
url = PlatformUI.getWorkbench().getHelpSystem().resolve(href, true);

Then I pass this URL to a browser widget in a view.

Works great.

Sebastian
Previous Topic:Redirection on Eclipse infocenter
Next Topic:Possible to set help context for a Perspective
Goto Forum:
  


Current Time: Sun May 18 16:52:41 EDT 2025

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

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

Back to the top