org.topbraidcomposer.navigation
Class AbstractChangeViewAction

java.lang.Object
  extended by org.topbraidcomposer.ui.views.AbstractViewAction
      extended by org.topbraidcomposer.ui.views.AbstractSelectionViewAction
          extended by org.topbraidcomposer.navigation.AbstractChangeViewAction
All Implemented Interfaces:
org.eclipse.ui.IActionDelegate, org.eclipse.ui.IViewActionDelegate
Direct Known Subclasses:
CreateCloneAction, DeleteResourcesAction, RemoveFromParentAction, RemovePropertyAction

public abstract class AbstractChangeViewAction
extends AbstractSelectionViewAction


Constructor Summary
AbstractChangeViewAction()
           
 
Method Summary
abstract  IChange createChange(java.util.Set<com.hp.hpl.jena.rdf.model.Resource> resources)
           
protected  void run(java.util.Set<com.hp.hpl.jena.rdf.model.Resource> resources)
           
 void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
           
protected  void showCannotExecuteMessage(IChange operation)
           
protected  void showCannotExecuteMessage(java.lang.String message)
           
protected  void updateEnabled(org.eclipse.jface.action.IAction action)
           
 
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

AbstractChangeViewAction

public AbstractChangeViewAction()
Method Detail

createChange

public abstract IChange createChange(java.util.Set<com.hp.hpl.jena.rdf.model.Resource> resources)

run

protected void run(java.util.Set<com.hp.hpl.jena.rdf.model.Resource> resources)
Specified by:
run in class AbstractSelectionViewAction

showCannotExecuteMessage

protected void showCannotExecuteMessage(IChange operation)

showCannotExecuteMessage

protected void showCannotExecuteMessage(java.lang.String message)

selectionChanged

public void selectionChanged(org.eclipse.jface.action.IAction action,
                             org.eclipse.jface.viewers.ISelection selection)
Specified by:
selectionChanged in interface org.eclipse.ui.IActionDelegate
Overrides:
selectionChanged in class AbstractViewAction

updateEnabled

protected void updateEnabled(org.eclipse.jface.action.IAction action)