Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » sub popup menu turns gray when i go near with the mouse
sub popup menu turns gray when i go near with the mouse [message #332367] Mon, 20 October 2008 15:34 Go to next message
Carmelo  is currently offline Carmelo Friend
Messages: 224
Registered: July 2009
Senior Member
Hi all
Hope someone can tell me what is going on with my project .

I'm working with a Plug-in project that add a dynamic submenu to a view
context menu (from a different plugin project).

It was working fine till I decide to add to the LOCAL ACTION menu (see xml)
icon and tooltip description .

Now .
The compound contribution item is called correctly . returning n items . but
when I go with the mouse near the sub menu it becomes gray .

There is no error in the .log file .
I have started the plugin with -consolelog option . no error

Sure I have changed something . but what can I do to find the error?
Thanks
Kar

<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:com.eomutils.views.EomDBView">
<separator name="group.showIn"
visible="true" />
<menu
id="com.eomutils.views.EomDBView.showIn.menu"
label="Local Actions">
<dynamic class="my.project.MyCompoundContributionItem"
id="my.project.myCompoundContributionItem"/>
<separator name="group.showInEnd"
visible="true" />
</menu>


</menuContribution>
</extension>

<extension
point="org.eclipse.ui.commands">
<category
id="my.project.myCategory"
name="My Category">
</category>
<command
categoryId="my.project.myCategory"
id="my.project.myCommand"
name="Execute Local Action">
<commandParameter
id="my.project.myCommand.par1"
name="script">
</commandParameter>
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="my.project.MyHandler"
commandId="my.project.myCommand">
</handler>
</extension>
Re: sub popup menu turns gray when i go near with the mouse [message #332473 is a reply to message #332367] Tue, 21 October 2008 23:10 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Kar wrote:
> <extension
> point="org.eclipse.ui.commands">
> <category
> id="my.project.myCategory"
> name="My Category">
> </category>
> <command
> categoryId="my.project.myCategory"
> id="my.project.myCommand"
> name="Execute Local Action">
> <commandParameter
> id="my.project.myCommand.par1"
> name="script">
> </commandParameter>
> </command>
> </extension>
> <extension
> point="org.eclipse.ui.handlers">
> <handler
> class="my.project.MyHandler"
> commandId="my.project.myCommand">
> </handler>
> </extension>
>


Where is this used, it's not clear from the XML

There doesn't appear to be anything obviously wrong with your XML ...
are you on 3.4.1?

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Re: sub popup menu turns gray when i go near with the mouse [message #332515 is a reply to message #332473] Fri, 24 October 2008 14:50 Go to previous message
Carmelo  is currently offline Carmelo Friend
Messages: 224
Registered: July 2009
Senior Member
Hi Paul,

my eclipse version is 3.3 ... and honestly I believe there is nothing wrong
with my code too ...
but I know that I had to recreate a new project ... copy the code again ...
and now the submenu was working correctly.

I could not find any error explaining why the submenu item was turning gray.
Thanks anyway


"Paul Webster" <pwebster@ca.ibm.com> wrote in message
news:gdlnum$kfp$1@build.eclipse.org...
> Kar wrote:
>> <extension
>> point="org.eclipse.ui.commands">
>> <category
>> id="my.project.myCategory"
>> name="My Category">
>> </category>
>> <command
>> categoryId="my.project.myCategory"
>> id="my.project.myCommand"
>> name="Execute Local Action">
>> <commandParameter
>> id="my.project.myCommand.par1"
>> name="script">
>> </commandParameter>
>> </command>
>> </extension>
>> <extension
>> point="org.eclipse.ui.handlers">
>> <handler
>> class="my.project.MyHandler"
>> commandId="my.project.myCommand">
>> </handler>
>> </extension>
>>
>
>
> Where is this used, it's not clear from the XML
>
> There doesn't appear to be anything obviously wrong with your XML ... are
> you on 3.4.1?
>
> PW
>
>
> --
> Paul Webster
> http://wiki.eclipse.org/Platform_Command_Framework
> http://wiki.eclipse.org/Command_Core_Expressions
> http://wiki.eclipse.org/Menu_Contributions
> http://wiki.eclipse.org/Menus_Extension_Mapping
> http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm
Previous Topic:starting tomcat 5.5.27 from Ganymede
Next Topic:What kinds of jobs do not cause hourglass?
Goto Forum:
  


Current Time: Wed Apr 24 20:46:27 GMT 2024

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

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

Back to the top