Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Menu contribution problem with fresh projects
Menu contribution problem with fresh projects [message #18525] Mon, 28 April 2003 08:11
Eclipse UserFriend
Originally posted by: julien.ponge.fr.michelin.com

Hello,

My plugin contributes a menu element based on IProject instances. It works
nicely, but when the project is 'fresh' (ie just created), making a
'right-click' throws a NPE and the popup-menu doesn't appear. Shuting down
WSAD and restarting it is the only solution for the moment.

This is a really strange behaviour, and the generated projects don't see
to be faulty. The menu contribution is just triggered as follows (a lot of
attributes have been deliberatly obfuscated, sorry):

<extension id="_the_id_" name="_the_name_"
point="org.eclipse.ui.popupMenus">
<objectContributionid="_the_id_"
Class="org.eclipse.core.resources.IProject">
<action id="_the_id_" label="_the_label_" icon="icon.png"
class="The_Delegate_Class" enablesFor="*">
<selection class="org.eclipse.core.resources.IProject" name="*Commons"
/>
<selection class="org.eclipse.core.resources.IProject" name="*EAR" />
<selection "org.eclipse.core.resources.IProject" name="*Web" />
</action>
</objectContribution>
</extension>

Any idea ?

Best regards.
Previous Topic:[PDE] What do "hollow J" icons mean?
Next Topic:Layout of Editors
Goto Forum:
  


Current Time: Wed Feb 05 18:00:26 GMT 2025

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

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

Back to the top