org.eclipse.ui.actions.DeleteResourceAction Java Examples

The following examples show how to use org.eclipse.ui.actions.DeleteResourceAction. 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: DeleteXdsResourceHandler.java    From xds-ide with Eclipse Public License 1.0 4 votes vote down vote up
public DeleteXdsResourceHandler() {
	super();
	setAction(new DeleteResourceAction(shellProvider));
}
 
Example #2
Source File: DeleteEditorFileHandler.java    From eclipse-extras with Eclipse Public License 1.0 4 votes vote down vote up
protected void deleteResource( IShellProvider shellProvier, IFile file ) {
  DeleteResourceAction deleteAction = new DeleteResourceAction( shellProvier );
  deleteAction.selectionChanged( new StructuredSelection( file ) );
  deleteAction.run();
}
 
Example #3
Source File: DeleteAction.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
private IAction createWorkbenchAction(IStructuredSelection selection) {
	DeleteResourceAction action= new DeleteResourceAction(getSite());
	action.selectionChanged(selection);
	return action;
}