Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Specifying the visibility when contributing to popupMenus
Specifying the visibility when contributing to popupMenus [message #167856] Tue, 09 December 2003 03:27
Eclipse UserFriend
Hi All

I want to contribute a new sub menu with an existing pop menu using
"org.eclipse.ui.popupMenus" extension point , and i want to add a sub menu
that appears only if there is a selection in the view (number of selected
objects >0), but the <visibility> item does not have an attribute that
specifiy the number of selected objects , so i restricted the selection to
be of class java.lang.Object like this

<extension

point="org.eclipse.ui.popupMenus">

<viewerContribution

targetID="com.abc.navigation.presentation.view.id"

id="com.abc.ui.popup.NavigationView">

<visibility>

<!-- to be invisible if no object is selected , it can be navigation node
instead of Object -->

<objectClass

name="java.lang.Object">

</objectClass>

</visibility>

<menu

label="static"

path="additions"

id="com.abc.statical.ui.NavigationView.staticSubMenu">

</menu>

</viewerContribution>




Is there a better way to specifiy that i want the submenu to appear if the
number of selection >0 ??????
Thanks , Joe
Previous Topic:Can't create platform lock file.
Next Topic:Specifying the visibility when contributing to popupMenus
Goto Forum:
  


Current Time: Sat Jun 21 20:42:31 EDT 2025

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

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

Back to the top