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 MoveAction extends RefactoringGlobalAction { 30 31 34 public MoveAction() { 35 super (NbBundle.getMessage(MoveAction.class, "LBL_MoveAction"), null); 36 putValue("noIconInMenu", Boolean.TRUE); } 38 39 public final void performAction(Lookup context) { 40 ActionsImplementationFactory.doMove(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.canMove(context); 53 } 54 } 55 | Popular Tags |