org.openide.actions.DeleteAction Java Examples
The following examples show how to use
org.openide.actions.DeleteAction.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PropertiesLocaleNode.java From netbeans with Apache License 2.0 | 6 votes |
/** Lazily initialize set of node's actions. * Overrides superclass method. * * @return array of actions for this node */ @Override protected SystemAction[] createActions () { return new SystemAction[] { SystemAction.get(EditAction.class), SystemAction.get(OpenAction.class), null, SystemAction.get(CutAction.class), SystemAction.get(CopyAction.class), SystemAction.get(PasteAction.class), null, SystemAction.get(DeleteAction.class), SystemAction.get(LangRenameAction.class), null, SystemAction.get(NewAction.class), SystemAction.get(SaveAsTemplateAction.class), null, SystemAction.get(FileSystemAction.class), null, SystemAction.get(ToolsAction.class), SystemAction.get(PropertiesAction.class) }; }
Example #2
Source File: JaxWsNode.java From netbeans with Apache License 2.0 | 6 votes |
@Override public Action[] getActions(boolean context) { ArrayList<Action> actions = new ArrayList<Action>(Arrays.asList( SystemAction.get(OpenAction.class), // SystemAction.get(JaxWsRefreshAction.class), // null, SystemAction.get(AddOperationAction.class), null, SystemAction.get(WsTesterPageAction.class), // null, SystemAction.get(WSEditAttributesAction.class), SystemAction.get(ConfigureHandlerAction.class), // null, // SystemAction.get(JaxWsGenWSDLAction.class), // null, // SystemAction.get(ConvertToRestAction.class), null, SystemAction.get(DeleteAction.class), null, SystemAction.get(PropertiesAction.class))); addFromLayers(actions, "WebServices/Services/Actions"); return actions.toArray(new Action[actions.size()]); }
Example #3
Source File: JaxWsClientNode.java From netbeans with Apache License 2.0 | 6 votes |
@Override public Action[] getActions(boolean context) { ArrayList<Action> actions = new ArrayList<Action>(Arrays.asList( SystemAction.get(OpenAction.class), SystemAction.get(JaxWsRefreshAction.class), null, SystemAction.get(WSEditAttributesAction.class), null, SystemAction.get(ConfigureHandlerAction.class), null, SystemAction.get(DeleteAction.class), null, SystemAction.get(PropertiesAction.class))); addFromLayers(actions, "WebServices/Clients/Actions"); return actions.toArray(new Action[actions.size()]); }
Example #4
Source File: JaxWsNode.java From netbeans with Apache License 2.0 | 6 votes |
@Override public Action[] getActions(boolean context) { //DataObject dobj = getCookie(DataObject.class); ArrayList<Action> actions = new ArrayList<Action>(Arrays.asList( SystemAction.get(OpenAction.class), SystemAction.get(JaxWsRefreshAction.class), null, SystemAction.get(AddOperationAction.class), null, SystemAction.get(WsTesterPageAction.class), null, SystemAction.get(WSEditAttributesAction.class), null, SystemAction.get(ConfigureHandlerAction.class), null, SystemAction.get(JaxWsGenWSDLAction.class), null, SystemAction.get(ConvertToRestAction.class), null, SystemAction.get(DeleteAction.class), null, SystemAction.get(PropertiesAction.class))); addFromLayers(actions, "WebServices/Services/Actions"); return actions.toArray(new Action[actions.size()]); }
Example #5
Source File: FavoritesNode.java From netbeans with Apache License 2.0 | 6 votes |
/** Add action 'Remove from Favorites'. */ private Action [] createActionsForFavoriteFile (Action [] arr) { boolean added = false; List<Action> newArr = new ArrayList<Action>(); for (int i = 0; i < arr.length; i++) { //Add before CopyAction or CutAction if (!added && ((arr[i] instanceof CopyAction) || (arr[i] instanceof CutAction))) { added = true; newArr.add(Actions.remove()); newArr.add(null); } //Do not add Delete action if (!(arr[i] instanceof DeleteAction)) { newArr.add(arr[i]); } } if (!added) { added = true; newArr.add(null); newArr.add(Actions.remove()); } return newArr.toArray (new Action[newArr.size()]); }
Example #6
Source File: FavoritesNode.java From netbeans with Apache License 2.0 | 6 votes |
/** Add action 'Remove from Favorites'. */ private Action [] createActionsForFavoriteFolder (Action [] arr) { boolean added = false; List<Action> newArr = new ArrayList<Action>(); for (int i = 0; i < arr.length; i++) { //Add before CopyAction or CutAction if (!added && ((arr[i] instanceof CopyAction) || (arr[i] instanceof CutAction))) { added = true; newArr.add(Actions.remove()); newArr.add(null); } //Do not add Delete action if (!(arr[i] instanceof DeleteAction)) { newArr.add(arr[i]); } } if (!added) { added = true; newArr.add(null); newArr.add(Actions.remove()); } return newArr.toArray (new Action[newArr.size()]); }
Example #7
Source File: JmeSpatial.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 6 votes |
@Override public Action[] getActions(boolean context) { // return super.getActions(context); if (((JmeSpatialChildren) jmeChildren).readOnly) { return new Action[]{ SystemAction.get(CopyAction.class),}; } else { return new Action[]{ new NewControlPopup(this), new NewLightPopup(this), Actions.alwaysEnabled(new AddUserDataAction(this), "Add User Data", "", false), new ToolPopup(this), SystemAction.get(RenameAction.class), SystemAction.get(CopyAction.class), SystemAction.get(CutAction.class), SystemAction.get(PasteAction.class), SystemAction.get(DeleteAction.class) }; } }
Example #8
Source File: AnnotationProviderTest.java From netbeans with Apache License 2.0 | 6 votes |
/** Gets default system actions. Overrides superclass method. */ protected SystemAction[] defaultActions() { return new SystemAction[] { SystemAction.get(OpenAction.class), SystemAction.get (FileSystemAction.class), null, SystemAction.get(CutAction.class), SystemAction.get(CopyAction.class), SystemAction.get(PasteAction.class), null, SystemAction.get(DeleteAction.class), SystemAction.get(RenameAction.class), null, SystemAction.get(SaveAsTemplateAction.class), null, SystemAction.get(ToolsAction.class), SystemAction.get(PropertiesAction.class), }; }
Example #9
Source File: JmeNode.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 6 votes |
@Override public Action[] getActions(boolean context) { // return super.getActions(context); if (((JmeSpatialChildren) jmeChildren).readOnly) { return new Action[]{ SystemAction.get(CopyAction.class),}; } else { return new Action[]{ new NewSpatialPopup(this), new NewControlPopup(this), new NewLightPopup(this), Actions.alwaysEnabled(new AddUserDataAction(this), "Add User Data", "", false), new ToolPopup(this), SystemAction.get(RenameAction.class), SystemAction.get(CopyAction.class), SystemAction.get(CutAction.class), SystemAction.get(PasteAction.class), SystemAction.get(DeleteAction.class) }; } }
Example #10
Source File: ServerNode.java From netbeans with Apache License 2.0 | 6 votes |
@Override public Action[] getActions(boolean context) { if ( context ) { return super.getActions(context); } else { return new SystemAction[] { SystemAction.get(CreateDatabaseAction.class), SystemAction.get(StartAction.class), SystemAction.get(StopAction.class), SystemAction.get(ConnectServerAction.class), SystemAction.get(DisconnectServerAction.class), SystemAction.get(DeleteAction.class), SystemAction.get(RefreshServerAction.class), SystemAction.get(AdministerAction.class), SystemAction.get(PropertiesAction.class) }; } }
Example #11
Source File: AbstractFilterNode.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 5 votes |
@Override public Action[] getActions(boolean context) { return new Action[]{ Actions.alwaysEnabled(new EnableFiterAction(this), "Toggle enabled", "", false), SystemAction.get(MoveUpAction.class), SystemAction.get(MoveDownAction.class), null, SystemAction.get(DeleteAction.class), }; }
Example #12
Source File: StatisticNode.java From BART with MIT License | 5 votes |
@Override public Action[] getActions(boolean context) { Action[] a = { Actions.forID("StatisticNode", "it.unibas.bartgui.controlegt.actions.node.Statistics.Open"), Actions.forID("StatisticNode", "it.unibas.bartgui.controlegt.actions.node.Statistics.Export"), null, SystemAction.get(RenameAction.class), SystemAction.get(DeleteAction.class), null, SystemAction.get(PropertiesAction.class), }; return a; }
Example #13
Source File: AuthoritativeSourceNode.java From BART with MIT License | 5 votes |
@Override public Action[] getActions(boolean context) { Action[] result = new Action[]{ SystemAction.get(DeleteAction.class), }; return result; }
Example #14
Source File: JmeGhostControl.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 5 votes |
@Override public Action[] getActions(boolean context) { return new SystemAction[]{ // SystemAction.get(CopyAction.class), // SystemAction.get(CutAction.class), // SystemAction.get(PasteAction.class), SystemAction.get(DeleteAction.class) }; }
Example #15
Source File: EntityChildFactory.java From jeddict with Apache License 2.0 | 5 votes |
@Override protected Node createNodeForKey(EntityWidget entityWidget) { AbstractNode node = new AttributeRootNode(Children.create(new AttributeChildFactory(entityWidget), true)) { @Override public Action[] getActions(boolean context) { Action[] result = new Action[]{ SystemAction.get(DeleteAction.class), SystemAction.get(PropertiesAction.class) }; return result; } @Override public boolean canDestroy() { EntityWidget customer = this.getLookup().lookup(EntityWidget.class); return customer != null; } @Override public void destroy() throws IOException { // if (deleteEntity(this.getLookup().lookup(Entity.class).getEntityId())) { // super.destroy(); // EntityTopComponent.refreshNode(); // } } }; node.setDisplayName(entityWidget.getNodeName()); node.setShortDescription(entityWidget.getNodeName()); node.setIconBaseWithExtension(entityWidget.getIconPath()); return node; }
Example #16
Source File: ApkDataObject.java From NBANDROID-V2 with Apache License 2.0 | 5 votes |
@Override public Action[] getActions(boolean context) { return new Action[]{ SystemAction.get(SaveAsAction.class), SystemAction.get(InstallApkAction.class), SystemAction.get(CopyAction.class), SystemAction.get(DeleteAction.class), SystemAction.get(PropertiesAction.class) }; }
Example #17
Source File: JmeGenericControl.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 5 votes |
@Override public Action[] getActions(boolean context) { return new SystemAction[]{ // SystemAction.get(CopyAction.class), // SystemAction.get(CutAction.class), // SystemAction.get(PasteAction.class), SystemAction.get(DeleteAction.class) }; }
Example #18
Source File: QueryBuilder.java From netbeans with Apache License 2.0 | 5 votes |
/** Called when the selection is removed: disable delete */ void disableDelete() { if (!isActivated()) { return; } deleteActionPerformer.setEnabled(false); DeleteAction da = SystemAction.get(DeleteAction.class); da.setEnabled(false); }
Example #19
Source File: JmeAnimControl.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 5 votes |
@Override public Action[] getActions(boolean context) { return new SystemAction[]{ // SystemAction.get(CopyAction.class), // SystemAction.get(CutAction.class), // SystemAction.get(PasteAction.class), SystemAction.get(DeleteAction.class) }; }
Example #20
Source File: JmeMesh.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 5 votes |
@Override public Action[] getActions(boolean context) { return new SystemAction[]{ // SystemAction.get(CopyAction.class), // SystemAction.get(CutAction.class), // SystemAction.get(PasteAction.class), SystemAction.get(DeleteAction.class) }; }
Example #21
Source File: JmeRigidBodyControl.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 5 votes |
@Override public Action[] getActions(boolean context) { return new SystemAction[]{ // SystemAction.get(CopyAction.class), // SystemAction.get(CutAction.class), // SystemAction.get(PasteAction.class), SystemAction.get(DeleteAction.class) }; }
Example #22
Source File: JmeVehicleControl.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 5 votes |
@Override public Action[] getActions(boolean context) { return new SystemAction[]{ // SystemAction.get(CopyAction.class), // SystemAction.get(CutAction.class), // SystemAction.get(PasteAction.class), SystemAction.get(DeleteAction.class) }; }
Example #23
Source File: JmeCharacterControl.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 5 votes |
@Override public Action[] getActions(boolean context) { return new SystemAction[]{ // SystemAction.get(CopyAction.class), // SystemAction.get(CutAction.class), // SystemAction.get(PasteAction.class), SystemAction.get(DeleteAction.class) }; }
Example #24
Source File: JmeVehicleWheel.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 5 votes |
@Override public Action[] getActions(boolean context) { return new SystemAction[]{ // SystemAction.get(CopyAction.class), // SystemAction.get(CutAction.class), // SystemAction.get(PasteAction.class), SystemAction.get(DeleteAction.class) }; }
Example #25
Source File: JmeLight.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 5 votes |
@Override public Action[] getActions(boolean context) { return new SystemAction[]{ // SystemAction.get(CopyAction.class), // SystemAction.get(CutAction.class), // SystemAction.get(PasteAction.class), SystemAction.get(DeleteAction.class) }; }
Example #26
Source File: SceneExplorerTopComponent.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 5 votes |
private void initActions() { CutAction cut = SystemAction.get(CutAction.class); getActionMap().put(cut.getActionMapKey(), ExplorerUtils.actionCut(explorerManager)); CopyAction copy = SystemAction.get(CopyAction.class); getActionMap().put(copy.getActionMapKey(), ExplorerUtils.actionCopy(explorerManager)); PasteAction paste = SystemAction.get(PasteAction.class); getActionMap().put(paste.getActionMapKey(), ExplorerUtils.actionPaste(explorerManager)); DeleteAction delete = SystemAction.get(DeleteAction.class); getActionMap().put(delete.getActionMapKey(), ExplorerUtils.actionDelete(explorerManager, true)); }
Example #27
Source File: DataLoaderGetActionsTest.java From netbeans with Apache License 2.0 | 5 votes |
@Override protected SystemAction[] defaultActions() { return new SystemAction[] { SystemAction.get(CutAction.class), null, SystemAction.get(CopyAction.class), null, SystemAction.get(DeleteAction.class), }; }
Example #28
Source File: RepositoryNode.java From netbeans with Apache License 2.0 | 5 votes |
@Override public Action[] getActions(boolean arg0) { return new Action[]{ // XXX Find new RefreshIndexAction(), // XXX allow multiselections new EditAction(), DeleteAction.get(DeleteAction.class), null, PropertiesAction.get(PropertiesAction.class) }; }
Example #29
Source File: OnePropNode.java From netbeans with Apache License 2.0 | 5 votes |
public Action[] getActions(boolean context) { Action[] result = new Action[] { SystemAction.get(DeleteAction.class), SystemAction.get(RenameAction.class), null, SystemAction.get(ToolsAction.class), SystemAction.get(PropertiesAction.class), }; return result; }
Example #30
Source File: JAXBWizardSchemaNode.java From netbeans with Apache License 2.0 | 5 votes |
private void initActions() { if ( actions == null ) { actions = new Action[] { SystemAction.get(OpenJAXBCustomizerAction.class), null, SystemAction.get(DeleteAction.class) }; } }