title: Changing the popup-menu of a NodeTree
body: <p>This is about a Netbeans 7.1 platform app. Following  <a href="http://platform.netbeans.org/tutorials/nbm-nodesapi2.html" rel="nofollow">this tutorial</a> I added the following  to the code of my NodetreeTopComponent, in order to change the context-menu:</p>
  
  <pre><code> @Override
  public Action[] getActions() {
      return new Action[] {new MyAction()};
  }
  
  private static class MyAction extends AbstractAction {
  
     public MyAction () {
      putValue (NAME, "New Whatever");
  }
  
  @Override
  public void actionPerformed(ActionEvent e) {
      NewWhateverTopComponent nk = new NewWhateverTopComponent();
      nk.setVisible(true);
  }
  
  }
  </code></pre>
  
  <p>Unfortunately, this does exactly nothing. Right-clicking any node in my tree i still get just the default Menu (Copy, Properties). What have i overseen?</p>
  
  <p>Thank you for any suggestions.</p>