|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.editor.actions.AbstractActionContributor
public abstract class AbstractActionContributor
Generic abstract action contributor for ations of type IMultiViewAction interface. Can be used anywhere.
Constructor Summary | |
---|---|
AbstractActionContributor(IDOMSelectionProvider selectionProvider,
org.eclipse.gef.commands.CommandStack commandStack)
Constructor. |
Method Summary | |
---|---|
protected Action |
checkOrCreateAction(String key)
Checks for action with id key in registry. |
protected List<Action> |
checkOrCreateActions(String[] keys)
Checks for action with id key in registry. |
protected abstract void |
configureFactory()
Configures factory. |
void |
dispose()
|
MultiViewActionFactory |
getActionFactory()
|
abstract org.eclipse.gef.ui.actions.ActionRegistry |
getActionRegistry()
Returns action registry in which created actions are registered. |
protected DocumentModifyHelper |
getDocumentModifyHelper()
Getter for document modifier. |
abstract IWorkbenchPart |
getWorkbenchPart()
Returns workbench part for which actions are created. |
XMLAccess |
getXMLAccess()
Returns XMLAccess instance. |
void |
selectionChanged(DOMSelectionChangedEvent event)
Updates all actions. |
void |
setActionFactory(MultiViewActionFactory actionFactory)
Setter for action factory. |
void |
setXMLAccess(XMLAccess xmlAccess)
|
void |
stackChanged(org.eclipse.gef.commands.CommandStackEvent event)
Updates all actions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractActionContributor(IDOMSelectionProvider selectionProvider, org.eclipse.gef.commands.CommandStack commandStack)
selectionProvider
- selection providerMethod Detail |
---|
public void dispose()
protected abstract void configureFactory()
public void selectionChanged(DOMSelectionChangedEvent event)
selectionChanged
in interface IDOMSelectionChangedListener
event
- event object describing the changepublic void stackChanged(org.eclipse.gef.commands.CommandStackEvent event)
stackChanged
in interface org.eclipse.gef.commands.CommandStackEventListener
protected Action checkOrCreateAction(String key)
key
- to identify action, must be IAction.getId()
protected List<Action> checkOrCreateActions(String[] keys)
keys
- to identify action, must be IAction.getId()
protected DocumentModifyHelper getDocumentModifyHelper()
public void setXMLAccess(XMLAccess xmlAccess)
xmlAccess
- The xmlAccess to set.public XMLAccess getXMLAccess()
public MultiViewActionFactory getActionFactory()
public void setActionFactory(MultiViewActionFactory actionFactory)
actionFactory
- to set.public abstract IWorkbenchPart getWorkbenchPart()
public abstract org.eclipse.gef.ui.actions.ActionRegistry getActionRegistry()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |