class Delete extends BasicItem {

    @Override
    public void execute() {<FILL_FUNCTION_BODY>}

    @Override
    public String getName() {
        return NbBundle.getMessage(Delete.class, "GraphContextMenu_Delete");
    }

    @Override
    public boolean canExecute() {
        return nodes.length > 0;
    }

    @Override
    public int getType() {
        return 200;
    }

    @Override
    public int getPosition() {
        return 0;
    }

    @Override
    public Icon getIcon() {
        return ImageUtilities.loadImageIcon("VisualizationImpl/delete.png", false);
    }

    @Override
    public Integer getMnemonicKey() {
        return KeyEvent.VK_D;
    }
}

        NotifyDescriptor.Confirmation notifyDescriptor = new NotifyDescriptor.Confirmation(
            NbBundle.getMessage(Delete.class, "GraphContextMenu.Delete.message"),
            NbBundle.getMessage(Delete.class, "GraphContextMenu.Delete.message.title"), NotifyDescriptor.YES_NO_OPTION);
        if (DialogDisplayer.getDefault().notify(notifyDescriptor).equals(NotifyDescriptor.YES_OPTION)) {
            GraphElementsController gec = Lookup.getDefault().lookup(GraphElementsController.class);
            gec.deleteNodes(nodes);
        }
    
<methods>public non-sealed void <init>() ,public java.lang.String getDescription() ,public java.lang.Integer getMnemonicKey() ,public org.gephi.datalab.spi.ContextMenuItemManipulator[] getSubItems() ,public org.gephi.datalab.spi.ManipulatorUI getUI() ,public boolean isAvailable() ,public void setup(Node[], Node) ,public void setup(Graph, Node[]) <variables>protected Graph graph,protected Node[] nodes