Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Platform - User Assistance (UA) » Dynamic help not working from menu action but works from Infopop
Dynamic help not working from menu action but works from Infopop [message #469915] Wed, 17 October 2007 14:25 Go to next message
abhi is currently offline abhiFriend
Messages: 4
Registered: July 2009
Junior Member
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 #469917 is a reply to message #469915] Wed, 17 October 2007 17:23 Go to previous messageGo to next message
Chris Goldthorpe is currently offline Chris GoldthorpeFriend
Messages: 815
Registered: July 2009
Senior Member
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 #469920 is a reply to message #469917] Wed, 17 October 2007 18:31 Go to previous messageGo to next message
abhi is currently offline abhiFriend
Messages: 4
Registered: July 2009
Junior Member
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 #469922 is a reply to message #469920] Wed, 17 October 2007 23:18 Go to previous messageGo to next message
Chris Goldthorpe is currently offline Chris GoldthorpeFriend
Messages: 815
Registered: July 2009
Senior Member
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 #469924 is a reply to message #469922] Thu, 18 October 2007 03:55 Go to previous messageGo to next message
abhishek misra is currently offline abhishek misraFriend
Messages: 26
Registered: July 2009
Junior Member
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 #470136 is a reply to message #469924] Thu, 18 October 2007 17:38 Go to previous message
Chris Goldthorpe is currently offline Chris GoldthorpeFriend
Messages: 815
Registered: July 2009
Senior Member
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 17:23 Go to previous message
Chris Goldthorpe is currently offline Chris GoldthorpeFriend
Messages: 815
Registered: July 2009
Senior Member
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 18:31 Go to previous message
abhi is currently offline abhiFriend
Messages: 4
Registered: July 2009
Junior Member
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 23:18 Go to previous message
Chris Goldthorpe is currently offline Chris GoldthorpeFriend
Messages: 815
Registered: July 2009
Senior Member
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] Thu, 18 October 2007 03:55 Go to previous message
abhishek misra is currently offline abhishek misraFriend
Messages: 26
Registered: July 2009
Junior Member
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 17:38 Go to previous message
Chris Goldthorpe is currently offline Chris GoldthorpeFriend
Messages: 815
Registered: July 2009
Senior Member
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.
Previous Topic:Adjust search rankings/scoring?
Next Topic:NLS Type
Goto Forum:
  


Current Time: Thu Mar 28 20:03:22 GMT 2024

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

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

Back to the top