org.topbraidcomposer.navigation
Class DeleteResourcesAction

java.lang.Object
  extended by org.topbraidcomposer.ui.views.AbstractViewAction
      extended by org.topbraidcomposer.ui.views.AbstractSelectionViewAction
          extended by org.topbraidcomposer.navigation.AbstractChangeViewAction
              extended by org.topbraidcomposer.navigation.DeleteResourcesAction
All Implemented Interfaces:
org.eclipse.ui.IActionDelegate, org.eclipse.ui.IViewActionDelegate

public class DeleteResourcesAction
extends AbstractChangeViewAction

A generic action to delete the resources in a viewer that shows ResourceTreeNodes or Resources.

Author:
Holger Knublauch

Constructor Summary
DeleteResourcesAction()
           
 
Method Summary
 IChange createChange(java.util.Set<com.hp.hpl.jena.rdf.model.Resource> resources)
           
protected  void showCannotExecuteMessage(IChange operation)
           
protected  void updateEnabled(org.eclipse.jface.action.IAction action)
           
 
Methods inherited from class org.topbraidcomposer.navigation.AbstractChangeViewAction
run, selectionChanged, showCannotExecuteMessage
 
Methods inherited from class org.topbraidcomposer.ui.views.AbstractSelectionViewAction
getFirstSelectedResource, getSelectedResources, listSelectedResources, run
 
Methods inherited from class org.topbraidcomposer.ui.views.AbstractViewAction
asyncExec, getAction, getSelection, getShell, getViewPart, init, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteResourcesAction

public DeleteResourcesAction()
Method Detail

createChange

public IChange createChange(java.util.Set<com.hp.hpl.jena.rdf.model.Resource> resources)
Specified by:
createChange in class AbstractChangeViewAction

showCannotExecuteMessage

protected void showCannotExecuteMessage(IChange operation)
Overrides:
showCannotExecuteMessage in class AbstractChangeViewAction

updateEnabled

protected void updateEnabled(org.eclipse.jface.action.IAction action)
Overrides:
updateEnabled in class AbstractChangeViewAction