Menu contribution problem with fresh projects [message #18525] |
Mon, 28 April 2003 08:11 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03407 seconds