title: Eclipse RCP menu
body: <p>I am building an eclipse RCP application, and I have one question :</p>
  
  <p>In plugin.xml file, i declared a menu with 5 commands. In summary, it is like this  :</p>
  
  <pre><code>Menu A
   subMenu A1
   subMenu A2
  </code></pre>
  
  <p>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?</p>
  
  <p>Thanks in advance</p>
  
  <pre><code>&lt;extension
           point="org.eclipse.ui.menus"&gt;
        &lt;menuContribution
              allPopups="false"
              locationURI="popup:com.x.sat.ui.views.ProjectsView?after=com.x.sat.ui.commands.closeproject"&gt;
           &lt;menu
                 icon="icons/repository_rep.gif"
                 id="com.x.sat.ui.sgc"
                 label="Gestion de Configuration"&gt;
              &lt;command
                    commandId="com.x.sat.sgc.ui.addProject"
                    label="Partager le projet"
                    style="push"&gt;
                 &lt;visibleWhen
                       checkEnabled="false"&gt;
                    &lt;reference
                          definitionId="satProjetOrSatModelProjectSelected"&gt;
                    &lt;/reference&gt;
                 &lt;/visibleWhen&gt;
              &lt;/command&gt;
              &lt;command
                    commandId="com.x.sat.sgc.ui.synchronize"
                    label="Synchroniser avec le dépôt ..."
                    style="push"&gt;
                 &lt;visibleWhen
                       checkEnabled="false"&gt;
                    &lt;reference
                          definitionId="synchronizeObject"&gt;
                    &lt;/reference&gt;
                 &lt;/visibleWhen&gt;
              &lt;/command&gt;
              &lt;command
                    commandId="com.x.sat.sgc.ui.browseRepository"
                    label="Parcourir le dépôt...."
                    style="push"&gt;
              &lt;/command&gt;
              &lt;command
                    commandId="com.x.sat.sgc.ui.compare"
                    label="Comparer..."
                    style="push"&gt;
              &lt;/command&gt;
              &lt;command
                    commandId="com.x.sat.sgc.ui.disconnect"
                    label="Déconnecter le projet ..."
                    style="push"&gt;
              &lt;/command&gt;
           &lt;/menu&gt;
        &lt;/menuContribution&gt;
     &lt;/extension&gt;
  </code></pre>