ll.add(SystemAction.get(c)); } catch (ClassNotFoundException ex) {
@Override public Action[] getActions(boolean context) { return new Action[] { SystemAction.get(OpenResourceAction.class) }; }
public Action[] getActions(boolean context){ return new SystemAction[] { SystemAction.get(UndeployModuleAction.class) }; }
public Action[] getCustomPaletteActions() { return new Action[] { SystemAction.get(NewAction.class) }; }
protected SystemAction[] createActions() { try { return new SystemAction[] { SystemAction.get(Class.forName("org.openide.actions.MoveUpAction").asSubclass(SystemAction.class)), // NOI18N SystemAction.get(Class.forName("org.openide.actions.MoveDownAction").asSubclass(SystemAction.class)), // NOI18N }; } catch (ClassNotFoundException cnfe) { // silently ignore in case we are in standalone library // without these actions } return null; }
public List<? extends Action> getActions(String projectType) { if (!MidpDocumentSupport.PROJECT_TYPE_MIDP.equals(projectType)) { return null; } return Collections.singletonList(SystemAction.get(AddToPaletteWizardAction.class)); } }
/** * Execute a single MakefileDataObject. * * @param node A single MakefileDataNode(should have a {@link MakeExecSupport} */ public static void execute(Node node) { (SystemAction.get(MakeCleanAction.class)).performAction(new Node[] {node}); }
/** * Overrides default action from DataNode. * Instantiate a template, if isTemplate() returns true. * Opens otherwise. */ @Override public Action getPreferredAction() { Action result = super.getPreferredAction(); return result == null ? SystemAction.get(OpenAction.class) : result; }
/** * Execute a single MakefileDataObject. * * @param node A single MakefileDataNode(should have a {@link MakeExecSupport} */ public static void execute(Node node, String target) { (SystemAction.get(MakeAction.class)).performAction(node, target); }
@Override public void actionPerformed(ActionEvent e) { SystemAction.get(ExportDiffChangesAction.class).performContextAction(null, true); } });
/** * Execute a single MakefileDataObject. * * @param node A single MakefileDataNode(should have a {@link MakeExecSupport} */ public static Future<Integer> execute(Node node, String target, ExecutionListener listener, Writer outputListener, Project project, List<String> additionalEnvironment, InputOutput inputOutput) { return (SystemAction.get(MakeAction.class)).performAction(node, target, listener, outputListener, project, additionalEnvironment, inputOutput); }
@Override public Action[] getActions(boolean context) { return new Action[] { new LoginAction(kenaiInstance), new RemoveInstanceAction(kenaiInstance), SystemAction.get(PropertiesAction.class) }; }
@Override public void run () { SystemAction.get(UpdateAction.class).update(repository, getSelectedTag().getRevisionInfo()); } });
@Override protected void gatherPresenters(ArrayList<Presenter> presenters) { EventSourceSupport.addActionsPresentres(presenters, false); presenters.add(ActionsPresenter.create(30, SystemAction.get(RenameCommandAction.class))); super.gatherPresenters(presenters); }
private void initialize () { setIconBaseWithExtension(getIconBase()); setDefaultAction (SystemAction.get (OpenAction.class)); if (isTagFile()) setShortDescription (NbBundle.getMessage(JspNode.class, "LBL_tagNodeShortDesc")); //NOI18N else setShortDescription (NbBundle.getMessage(JspNode.class, "LBL_jspNodeShortDesc")); //NOI18N }
private WidgetAction createActionMap() { ActionMap actionMap = refPageFlowView.get().getActionMap(); CallbackSystemAction a = (CallbackSystemAction) SystemAction.get(DeleteAction.class); actionMap.put(a.getActionMapKey(), new PageFlowDeleteAction(this)); //Temporary workaround ISSUE# 107506 return new MyActionMapAction(MapActionUtility.initInputMap(), MapActionUtility.initActionMap()); //return ActionFactory.createActionMapAction(MapActionUtility.initInputMap(), MapActionUtility.initActionMap()); }
@Override public void actionPerformed (ActionEvent e) { final File roots[] = HgUtils.getActionRoots(ctx); if (roots != null && roots.length > 0) { final File root = Mercurial.getInstance().getRepositoryRoot(roots[0]); SystemAction.get(SwitchToBranchAction.class).doSwitch(root, branchName, false, ctx); } } }
public RailsAppNode(RailsApplication application) { super(Children.LEAF); this.application = application; this.actions = new Action[]{SystemAction.get(StopAction.class)}; setDisplayName(NbBundle.getMessage(RailsAppNode.class, "LBL_ApplicationNode", application.getName(), String.valueOf(application.getPort()))); setIconBaseWithExtension("org/netbeans/modules/ruby/railsprojects/ui/resources/rails.png"); //NOI18N getCookieSet().add(new RailsAppCookie(application)); }
@Override public void ancestorAdded(AncestorEvent ae) { TopComponent tc = findTC(ae.getComponent()); if(tc != null) { ActionMap actionMap = tc.getActionMap(); CallbackSystemAction a = SystemAction.get(org.openide.actions.FindAction.class); sfa = actionMap.get(a.getActionMapKey()); actionMap.put(a.getActionMapKey(), new FindAction()); } } @Override