title: Action into Submenu Context Menu Java JFace SWT Eclipse
body: <p>I'm having a slight problem with an Eclipse Plug-In in development.<p></p>
  
  <p>There is a <i>view</i> which is comparabe to a <i>roster</i>. There is a list of users in there. My problem is, that I'd like to add an <i>context menu</i>.<br>
  The idea is to perform a right-click on a user and the menu should pop up. So far so good... but the problem is that I don't want a single menu. I'd like to have an entry "set status" to that context menu and when one hovers over this entry the menu should be extended to show stuff like "away" "busy" "invisible" and so on...<br>
  Could anyone help me out to achieve this?<p>
  I have already implemented the corresponding action and made the addition to the <i>MenuManager</i>.</p>
  
  <pre><code>public SessionViewContextMenu(ViewPart sessionView, TableViewer viewer,
      final Action action) {
  
      MenuManager manager = new MenuManager("#PopupMenu");
  
      manager.setRemoveAllWhenShown(true);
      manager.addMenuListener(new IMenuListener() {
  
          public void menuAboutToShow(IMenuManager manager) {
              manager.add(action);
          }
      });
  </code></pre>
  
  <p>The correspodning action looks like this:</p>
  
  <pre><code>public Action(...) {
  
      super(provider, "Bla Bla");
  
      // some fancy picture
      setImageDescriptor(...);
  
      // setId(ACTION_ID);
  
      setToolTipText("Bla Bla");
  
      update();
  }
  </code></pre>
  
  <p>Everything is working fine (at least the context menu shows the entry). Now I'd like to <b>extend</b> the menu when one hovers over / selects the corresponding action. So the menu should extend and show some more possibilites here...<br>
  <b>Any help on how to create a recursive context menu is highly appreciated!</b></p>
  
  <p>Hope, you understand the problem and don't hesitate to ask dor clarification!</p>