Package org.eclipse.ui.actions

Examples of org.eclipse.ui.actions.DeleteResourceAction


        mPasteAction = new PasteAction(shell, mClipboard);

        mRetargetPasteAction = ActionFactory.PASTE.create(window);

        // delete action
        mDeleteAction = new DeleteResourceAction(shell);

        mRetargetDeleteAction = ActionFactory.DELETE.create(window);

        // rename action
        mRenameAction = new RenameResourceAction(shell);
View Full Code Here


        return shell;
    }

    // Javadoc inherited
    protected SelectionListenerAction createUnderlyingAction(Shell shell) {
        return new DeleteResourceAction(shell);
    }
View Full Code Here

        mPasteAction = new PasteAction(shell, mClipboard);

        mRetargetPasteAction = ActionFactory.PASTE.create(window);

        // delete action
        mDeleteAction = new DeleteResourceAction(shell);

        mRetargetDeleteAction = ActionFactory.DELETE.create(window);

        // rename action
        mRenameAction = new RenameResourceAction(shell);
View Full Code Here

    else
      runNonWorkspaceAction();
  }

  private void runNormalAction(List<IResource> resources) {
    DeleteResourceAction action = new DeleteResourceAction(shellProvider);
    IStructuredSelection selection = new StructuredSelection(resources);
    action.selectionChanged(selection);
    action.run();
  }
View Full Code Here

      setEnabled(false);
    }
  }

  private IAction createWorkbenchAction(IStructuredSelection selection) {
    DeleteResourceAction action = new DeleteResourceAction(getShell());
    action.selectionChanged(selection);
    return action;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.actions.DeleteResourceAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.