eclipse plugin - delete popup working fine over project explorer view but not working over navigator view -
i trying hide 'delete' popup-menu files. used following plugin.xml entry.
<extension point="org.eclipse.ui.activities"> <activity id="hidedeletepopupmenuid" name="hidedeletepopupmenu"> <enabledwhen> <with variable="selection"> <iterate operator="and"> <adapt type="org.eclipse.core.resources.iresource" > <or> <test property="org.eclipse.core.resources.name" value="*.java"/> </or> </adapt> </iterate> </with> </enabledwhen> </activity> <activitypatternbinding activityid="hidedeletepopupmenuid" isequalitypattern="false" pattern="org.eclipse.ui.edit.delete"> </activitypatternbinding> </extension>
this seems working fine on project explorer view, navigator view not wokring. can on this?
thanks, darshan
actions in navigator view context menu hard-coded, see resourcenavigator.fillcontextmenu(imenumanager menu).
note action in popup menu not way delete resource (there's menu item in edit menu , key-binding).
Comments
Post a Comment