sk.uniba.euromath.plugin.views.outline.actions
Class XMLOutlineActionContributor

java.lang.Object
  extended by sk.uniba.euromath.editor.actions.AbstractActionContributor
      extended by sk.uniba.euromath.plugin.views.outline.actions.XMLOutlineActionContributor
All Implemented Interfaces:
org.eclipse.gef.commands.CommandStackEventListener, IDOMSelectionChangedListener

public class XMLOutlineActionContributor
extends AbstractActionContributor

Author:
Tomáš Studva 16.10.2005

Field Summary
protected  org.eclipse.gef.ui.actions.ActionRegistry actionRegistry
           
protected  IWorkbenchPart workbenchPart
           
protected  XMLOutlinePage xmlOutlinePage
           
 
Constructor Summary
XMLOutlineActionContributor(XMLOutlinePage page)
          Constructor.
 
Method Summary
protected  void configureFactory()
          Configures factory.
 void dispose()
           
 void fillLocalMenu(IMenuManager manager)
          Fills menu shown after click on arrow in right upper corner.
 void fillLocalToolBar(IToolBarManager manager)
           
 org.eclipse.gef.ui.actions.ActionRegistry getActionRegistry()
          Returns action registry in which created actions are registered.
 XMLAccessContentProvider getContentProvider()
           
 IWorkbenchPart getWorkbenchPart()
          Returns workbench part for which actions are created.
 void hookGlobalActions()
           
protected  void populateContextMenu(IMenuManager manager)
           
protected  void populateInsertSubMenu(InsertPosition position, IMenuManager manager)
          Fills up insert before/child/after menu to right content.
 void setActionRegistry(org.eclipse.gef.ui.actions.ActionRegistry actionRegistry)
           
 void setWorkbechPart(IWorkbenchPart workbenchPart)
           
protected  void setWorkbenchPart(IWorkbenchPart workbenchPart)
           
 
Methods inherited from class sk.uniba.euromath.editor.actions.AbstractActionContributor
checkOrCreateAction, checkOrCreateActions, getActionFactory, getDocumentModifyHelper, getXMLAccess, selectionChanged, setActionFactory, setXMLAccess, stackChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

workbenchPart

protected IWorkbenchPart workbenchPart

xmlOutlinePage

protected XMLOutlinePage xmlOutlinePage

actionRegistry

protected org.eclipse.gef.ui.actions.ActionRegistry actionRegistry
Constructor Detail

XMLOutlineActionContributor

public XMLOutlineActionContributor(XMLOutlinePage page)
Constructor.

Parameters:
wokbenchPart -
Method Detail

dispose

public void dispose()
Overrides:
dispose in class AbstractActionContributor

configureFactory

protected void configureFactory()
Description copied from class: AbstractActionContributor
Configures factory. Registers action in factory by their ids to their classes.

Specified by:
configureFactory in class AbstractActionContributor

populateContextMenu

protected void populateContextMenu(IMenuManager manager)

populateInsertSubMenu

protected void populateInsertSubMenu(InsertPosition position,
                                     IMenuManager manager)
Fills up insert before/child/after menu to right content. Insert menu must be empty prior.

Parameters:
manager - of insert menu
position - one of InsertPosition.Before, InsertPosition.AsFirstChild, InsertPosition.After

fillLocalMenu

public void fillLocalMenu(IMenuManager manager)
Fills menu shown after click on arrow in right upper corner.


fillLocalToolBar

public void fillLocalToolBar(IToolBarManager manager)

hookGlobalActions

public void hookGlobalActions()

getWorkbenchPart

public IWorkbenchPart getWorkbenchPart()
Description copied from class: AbstractActionContributor
Returns workbench part for which actions are created.

Specified by:
getWorkbenchPart in class AbstractActionContributor
Returns:
workbech part

getActionRegistry

public org.eclipse.gef.ui.actions.ActionRegistry getActionRegistry()
Description copied from class: AbstractActionContributor
Returns action registry in which created actions are registered.

Specified by:
getActionRegistry in class AbstractActionContributor
Returns:
action registry

setActionRegistry

public void setActionRegistry(org.eclipse.gef.ui.actions.ActionRegistry actionRegistry)
Parameters:
actionRegistry - The actionRegistry to set.

getContentProvider

public XMLAccessContentProvider getContentProvider()

setWorkbechPart

public void setWorkbechPart(IWorkbenchPart workbenchPart)
Parameters:
workbechPart - The workbechPart to set.

setWorkbenchPart

protected void setWorkbenchPart(IWorkbenchPart workbenchPart)
Parameters:
workbenchPart - The workbenchPart to set.


Copyright © 2003-2006 null. All Rights Reserved.