1 19 package org.netbeans.modules.refactoring.java.ui; 20 21 import org.netbeans.modules.refactoring.java.ui.JavaActionsImplementationFactory; 22 import org.openide.util.HelpCtx; 23 import org.openide.util.Lookup; 24 import org.openide.util.NbBundle; 25 26 30 public class PullUpAction extends JavaRefactoringGlobalAction { 31 32 35 public PullUpAction() { 36 super(NbBundle.getMessage(PullUpAction.class, "LBL_PullUp_Action"), null); 37 putValue("noIconInMenu", Boolean.TRUE); } 39 40 public final void performAction(Lookup context) { 41 JavaActionsImplementationFactory.doPullUp(context); 42 } 43 44 public org.openide.util.HelpCtx getHelpCtx() { 45 return HelpCtx.DEFAULT_HELP; 46 } 47 48 protected boolean asynchronous() { 49 return false; 50 } 51 52 protected boolean enable(Lookup context) { 53 return JavaActionsImplementationFactory.canPullUp(context); 54 } 55 } 56 | Popular Tags |