1 19 package org.netbeans.modules.refactoring.spi.impl; 20 21 import org.netbeans.modules.refactoring.api.impl.ActionsImplementationFactory; 22 import org.openide.util.HelpCtx; 23 import org.openide.util.Lookup; 24 import org.openide.util.NbBundle; 25 26 29 public class RenameAction extends RefactoringGlobalAction { 30 31 34 public RenameAction() { 35 super(NbBundle.getMessage(RenameAction.class, "LBL_RenameAction"), null); 36 putValue("noIconInMenu", Boolean.TRUE); } 38 39 public final void performAction(Lookup context) { 40 ActionsImplementationFactory.doRename(context); 41 } 42 43 public org.openide.util.HelpCtx getHelpCtx() { 44 return HelpCtx.DEFAULT_HELP; 45 } 46 47 protected boolean asynchronous() { 48 return false; 49 } 50 51 protected boolean enable(Lookup context) { 52 return ActionsImplementationFactory.canRename(context); 53 } 54 } 55 | Popular Tags |