org.topbraidcomposer.ui.views
Class AbstractSelectionViewAction

java.lang.Object
  extended by org.topbraidcomposer.ui.views.AbstractViewAction
      extended by org.topbraidcomposer.ui.views.AbstractSelectionViewAction
All Implemented Interfaces:
org.eclipse.ui.IActionDelegate, org.eclipse.ui.IViewActionDelegate
Direct Known Subclasses:
AbstractChangeViewAction, AddChildAction, AddPropertyAction, ChangeMetaClassAction, CreateChildAction, CreateInstanceAction, CreateInstanceAction, CreateInversePropertyAction, CreatePropertyAction, CreatePropertyOfTypeAction, CreateSiblingClassAction, CreateSubClassAction, CreateSubPropertyAction, DownloadModelAction, ImportFileAction, ImportURLAction, RemoveImportAction, RenameAction, SetPropertyAction, ShowArbiTreeAction

public abstract class AbstractSelectionViewAction
extends AbstractViewAction

A generic action to delete the resources in a tree consisting of ResourceTreeNodes.

Author:
Holger Knublauch

Constructor Summary
AbstractSelectionViewAction()
           
 
Method Summary
protected  com.hp.hpl.jena.rdf.model.Resource getFirstSelectedResource()
           
protected  java.util.Set<com.hp.hpl.jena.rdf.model.Resource> getSelectedResources()
           
protected  java.util.Iterator<com.hp.hpl.jena.rdf.model.Resource> listSelectedResources()
           
 void run()
           
protected abstract  void run(java.util.Set<com.hp.hpl.jena.rdf.model.Resource> resources)
           
 
Methods inherited from class org.topbraidcomposer.ui.views.AbstractViewAction
asyncExec, getAction, getSelection, getShell, getViewPart, init, run, selectionChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSelectionViewAction

public AbstractSelectionViewAction()
Method Detail

getFirstSelectedResource

protected com.hp.hpl.jena.rdf.model.Resource getFirstSelectedResource()

getSelectedResources

protected java.util.Set<com.hp.hpl.jena.rdf.model.Resource> getSelectedResources()

listSelectedResources

protected java.util.Iterator<com.hp.hpl.jena.rdf.model.Resource> listSelectedResources()

run

public void run()
Specified by:
run in class AbstractViewAction

run

protected abstract void run(java.util.Set<com.hp.hpl.jena.rdf.model.Resource> resources)