|
|
|
|
|
Re: Dynamic help not working from menu action but works from Infopop [message #470136 is a reply to message #469924] |
Thu, 18 October 2007 13:38  |
Eclipse User |
|
|
|
If you are using your own context provider then you should be able to
set the search expression which is used in dynamic help as the result of
getSearchExpression(Object target); Hard to tell what exactly is
happening in your case, it's not so easy to debug this long distance,
you may also be running into a bug, you may want to search bugzilla for
[Context] which is the tag on the context help bugs.
|
|
|
Re: Dynamic help not working from menu action but works from Infopop [message #588712 is a reply to message #469915] |
Wed, 17 October 2007 13:23  |
Eclipse User |
|
|
|
Can you explain more about what you are doing. Are you hitting F1 when a
workbench menu item is below the pointer? Not all menu items have
context help, one which does is File/Open File.
abhi wrote:
> Any insights as to what could be wrong? The dynamic help with infopop
> shows related hits in the dynamic help section, but the same when
> clicked from menu action does not show anything? what could be wrong?
|
|
|
Re: Dynamic help not working from menu action but works from Infopop [message #588726 is a reply to message #469917] |
Wed, 17 October 2007 14:31  |
Eclipse User |
|
|
|
Hi Chris,
I was talking about the search results shown in Dynamic Help
section of Related Topics which show up when F1 is pressed. The About
section shows up fine in both scenarios. Here is a more detailed
explanation.
We implemented a custom IContextProvider and implemented the
getAdapter() of our view to return the context provider. When we have
the focus on the view and hit F1 (we have an infopop here), and then
open dynamic help, it shows the about links and then a list of search
matches in the dynamic help section. Now when i try the same thing by
clicking the menu item we created, it even though shows the about
section, the dynamic help section does not show anything. Am i missing
something? Now all we are doing is using standard eclipse actions in
both cases.
Thanks,
abhi
Chris Goldthorpe wrote:
> Can you explain more about what you are doing. Are you hitting F1 when a
> workbench menu item is below the pointer? Not all menu items have
> context help, one which does is File/Open File.
>
> abhi wrote:
>> Any insights as to what could be wrong? The dynamic help with infopop
>> shows related hits in the dynamic help section, but the same when
>> clicked from menu action does not show anything? what could be wrong?
|
|
|
Re: Dynamic help not working from menu action but works from Infopop [message #588731 is a reply to message #469920] |
Wed, 17 October 2007 19:18  |
Eclipse User |
|
|
|
The dynamic help section does a search using a string whose contents are
determined from the control which is active when you hit F1. For example
if you hit F1 in the Package Explorer the dynamic help will search for
"Package Explorer View". Depending on what is selected when you hit F1
you can get different results for the same context ID.
|
|
|
Re: Dynamic help not working from menu action but works from Infopop [message #588741 is a reply to message #469922] |
Wed, 17 October 2007 23:55  |
Eclipse User |
|
|
|
Hi Chris,
If we have our own Context Provider, should'nt that be more
controlled? Also, the issue is I have focus on the same part when i hit
F1 and when i select Dynamic Help from the menu action. Both cases we
get different result. Looking at the workbench code it looks like when
we do a F1, the help view asks the part's adapter for any context
provider and then does an update passing in the provider, while the
showDynamicHelp in the Helpview which is called when menu action is
clicked does not do the same. Is it supposed to be two different things?
Thanks,
abhi
Chris Goldthorpe wrote:
>
> The dynamic help section does a search using a string whose contents are
> determined from the control which is active when you hit F1. For example
> if you hit F1 in the Package Explorer the dynamic help will search for
> "Package Explorer View". Depending on what is selected when you hit F1
> you can get different results for the same context ID.
|
|
|
Re: Dynamic help not working from menu action but works from Infopop [message #588916 is a reply to message #469924] |
Thu, 18 October 2007 13:38  |
Eclipse User |
|
|
|
If you are using your own context provider then you should be able to
set the search expression which is used in dynamic help as the result of
getSearchExpression(Object target); Hard to tell what exactly is
happening in your case, it's not so easy to debug this long distance,
you may also be running into a bug, you may want to search bugzilla for
[Context] which is the tag on the context help bugs.
|
|
|
Powered by
FUDForum. Page generated in 0.04187 seconds