Link Here
|
45 |
|
45 |
|
46 |
import org.openide.awt.ActionID; |
46 |
import org.openide.awt.ActionID; |
47 |
import org.openide.awt.ActionReference; |
47 |
import org.openide.awt.ActionReference; |
|
|
48 |
import org.openide.awt.ActionReferences; |
48 |
import org.openide.awt.ActionRegistration; |
49 |
import org.openide.awt.ActionRegistration; |
49 |
import org.openide.util.HelpCtx; |
50 |
import org.openide.util.HelpCtx; |
50 |
import org.openide.util.Lookup; |
51 |
import org.openide.util.Lookup; |
Link Here
|
55 |
*/ |
56 |
*/ |
56 |
@ActionID(id = "org.netbeans.modules.refactoring.java.api.ui.ExtractSuperclassAction", category = "Refactoring") |
57 |
@ActionID(id = "org.netbeans.modules.refactoring.java.api.ui.ExtractSuperclassAction", category = "Refactoring") |
57 |
@ActionRegistration(displayName = "#LBL_ExtractSC_Action", lazy = false) |
58 |
@ActionRegistration(displayName = "#LBL_ExtractSC_Action", lazy = false) |
58 |
@ActionReference(path = "Editors/text/x-java/RefactoringActions" , name = "ExtractSuperclassAction", position = 800) |
59 |
@ActionReferences({ |
|
|
60 |
@ActionReference(path = "Editors/text/x-java/RefactoringActions", name = "ExtractSuperclassAction", position = 800), |
61 |
@ActionReference(path = "Shortcuts", name = "OS-S") |
62 |
}) |
59 |
public final class ExtractSuperclassAction extends JavaRefactoringGlobalAction { |
63 |
public final class ExtractSuperclassAction extends JavaRefactoringGlobalAction { |
60 |
|
64 |
|
61 |
public ExtractSuperclassAction() { |
65 |
public ExtractSuperclassAction() { |
62 |
super(NbBundle.getMessage(ExtractInterfaceAction.class, "LBL_ExtractSC_Action"), null); // NOI18N |
66 |
super(NbBundle.getMessage(ExtractInterfaceAction.class, "LBL_ExtractSC_Action"), null); // NOI18N |
63 |
putValue("noIconInMenu", Boolean.TRUE); // NOI18N |
67 |
putValue("noIconInMenu", Boolean.TRUE); // NOI18N |
64 |
} |
68 |
} |
65 |
|
69 |
|
66 |
@Override |
70 |
@Override |
67 |
public final void performAction(Lookup context) { |
71 |
public final void performAction(Lookup context) { |
68 |
JavaActionsImplementationFactory.doExtractSuperclass(context); |
72 |
JavaActionsImplementationFactory.doExtractSuperclass(context); |
69 |
} |
73 |
} |
70 |
|
74 |
|
71 |
@Override |
75 |
@Override |
72 |
public org.openide.util.HelpCtx getHelpCtx() { |
76 |
public org.openide.util.HelpCtx getHelpCtx() { |
73 |
return HelpCtx.DEFAULT_HELP; |
77 |
return HelpCtx.DEFAULT_HELP; |