1 19 package org.netbeans.modules.refactoring.spi.impl; 20 21 import java.awt.event.ActionEvent ; 22 import javax.swing.Action ; 23 import javax.swing.JMenuItem ; 24 import org.openide.util.HelpCtx; 25 26 import org.openide.util.actions.SystemAction; 27 import org.openide.util.actions.Presenter.Menu; 28 import org.openide.util.actions.Presenter.Popup; 29 30 35 public class RSMEditorAction extends SystemAction implements Menu, Popup { 36 private final RefactoringSubMenuAction action = new RefactoringSubMenuAction(false); 38 39 public void actionPerformed(ActionEvent ev) { 40 } 42 43 public String getName() { 44 return (String ) action.getValue(Action.NAME); 45 } 46 47 public HelpCtx getHelpCtx() { 48 return HelpCtx.DEFAULT_HELP; 49 } 52 53 public JMenuItem getMenuPresenter() { 54 return action.getMenuPresenter(); 55 } 56 57 public JMenuItem getPopupPresenter() { 58 return action.getPopupPresenter(); 59 } 60 } 61 | Popular Tags |