I am building an eclipse RCP application, and I have one question :
In plugin.xml file, i declared a menu with 5 commands. In summary, it is like this :
Menu A
subMenu A1
subMenu A2
what I want is to tell to eclipse to evaluate if submenus must be visible only when the the cursor mouse hovers over Main menu item, ie Menu A. How can I do this?
Thanks in advance
<extension
point="org.eclipse.ui.menus">
<menuContribution
allPopups="false"
locationURI="popup:com.x.sat.ui.views.ProjectsView?after=com.x.sat.ui.commands.closeproject">
<menu
icon="icons/repository_rep.gif"
id="com.x.sat.ui.sgc"
label="Gestion de Configuration">
<command
commandId="com.x.sat.sgc.ui.addProject"
label="Partager le projet"
style="push">
<visibleWhen
checkEnabled="false">
<reference
definitionId="satProjetOrSatModelProjectSelected">
</reference>
</visibleWhen>
</command>
<command
commandId="com.x.sat.sgc.ui.synchronize"
label="Synchroniser avec le dépôt ..."
style="push">
<visibleWhen
checkEnabled="false">
<reference
definitionId="synchronizeObject">
</reference>
</visibleWhen>
</command>
<command
commandId="com.x.sat.sgc.ui.browseRepository"
label="Parcourir le dépôt...."
style="push">
</command>
<command
commandId="com.x.sat.sgc.ui.compare"
label="Comparer..."
style="push">
</command>
<command
commandId="com.x.sat.sgc.ui.disconnect"
label="Déconnecter le projet ..."
style="push">
</command>
</menu>
</menuContribution>
</extension>