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

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(IWorkbenchPart wokbenchPart, XMLOutlinePage page)
          Constructor.
 
Method Summary
protected  void configureFactory()
          Configures factory.
 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.
protected  sk.uniba.euromath.plugin.views.outline.actions.XMLOutlineActionContributor.OutlineContentSwitcher getAttributeSwitcher()
           
protected  sk.uniba.euromath.plugin.views.outline.actions.XMLOutlineActionContributor.OutlineContentSwitcher getCdataSwitcher()
           
protected  sk.uniba.euromath.plugin.views.outline.actions.XMLOutlineActionContributor.OutlineContentSwitcher getCommentSwitcher()
           
 XMLAccessContentProvider getContentProvider()
           
protected  sk.uniba.euromath.plugin.views.outline.actions.XMLOutlineActionContributor.OutlineContentSwitcher getProciSwitcher()
           
protected  sk.uniba.euromath.plugin.views.outline.actions.XMLOutlineActionContributor.OutlineSourceSwitcher getSourceSwitcher()
           
protected  sk.uniba.euromath.plugin.views.outline.actions.XMLOutlineActionContributor.OutlineContentSwitcher getTextNodeSwitcher()
           
 IWorkbenchPart getWorkbenchPart()
          Returns workbench part for which actions are created.
protected  XMLOutlinePage getXMLOutlinePage()
           
protected  void populateContextMenu(IMenuManager manager)
           
protected  void populateInsertSubMenu(sk.baka.ikslibs.ptr.DomPointer p, IMenuManager manager)
           
 void setActionRegistry(org.eclipse.gef.ui.actions.ActionRegistry actionRegistry)
           
protected  void setAttributeSwitcher(sk.uniba.euromath.plugin.views.outline.actions.XMLOutlineActionContributor.OutlineContentSwitcher attributeSwitcher)
           
protected  void setCdataSwitcher(sk.uniba.euromath.plugin.views.outline.actions.XMLOutlineActionContributor.OutlineContentSwitcher cdataSwitcher)
           
protected  void setCommentSwitcher(sk.uniba.euromath.plugin.views.outline.actions.XMLOutlineActionContributor.OutlineContentSwitcher commentSwitcher)
           
protected  void setProciSwitcher(sk.uniba.euromath.plugin.views.outline.actions.XMLOutlineActionContributor.OutlineContentSwitcher prociSwitcher)
           
protected  void setSourceSwitcher(sk.uniba.euromath.plugin.views.outline.actions.XMLOutlineActionContributor.OutlineSourceSwitcher sourceSwitcher)
           
protected  void setTextNodeSwitcher(sk.uniba.euromath.plugin.views.outline.actions.XMLOutlineActionContributor.OutlineContentSwitcher textNodeSwitcher)
           
 void setWorkbechPart(IWorkbenchPart workbenchPart)
           
protected  void setWorkbenchPart(IWorkbenchPart workbenchPart)
           
 void setXMLOutlinePage(XMLOutlinePage xmlOutlinePage)
           
 
Methods inherited from class sk.uniba.euromath.editor.actions.AbstractActionContributor
checkOrCreateAction, checkOrCreateActions, getActionFactory, getDocumentModifyHelper, getSelectionActions, getXMLAccess, selectionChangedHandle, setActionFactory, setSelectionActions, setXMLAccess
 
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(IWorkbenchPart wokbenchPart,
                                   XMLOutlinePage page)
Constructor.

Parameters:
wokbenchPart -
Method Detail

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(sk.baka.ikslibs.ptr.DomPointer p,
                                     IMenuManager manager)

fillLocalMenu

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


fillLocalToolBar

public void fillLocalToolBar(IToolBarManager manager)

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

setXMLOutlinePage

public void setXMLOutlinePage(XMLOutlinePage xmlOutlinePage)
Parameters:
outlinePage - The outlinePage to set.

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.

getAttributeSwitcher

protected sk.uniba.euromath.plugin.views.outline.actions.XMLOutlineActionContributor.OutlineContentSwitcher getAttributeSwitcher()
Returns:
Returns the attributeSwitcher.

setAttributeSwitcher

protected void setAttributeSwitcher(sk.uniba.euromath.plugin.views.outline.actions.XMLOutlineActionContributor.OutlineContentSwitcher attributeSwitcher)
Parameters:
attributeSwitcher - The attributeSwitcher to set.

getCdataSwitcher

protected sk.uniba.euromath.plugin.views.outline.actions.XMLOutlineActionContributor.OutlineContentSwitcher getCdataSwitcher()
Returns:
Returns the cdataSwitcher.

setCdataSwitcher

protected void setCdataSwitcher(sk.uniba.euromath.plugin.views.outline.actions.XMLOutlineActionContributor.OutlineContentSwitcher cdataSwitcher)
Parameters:
cdataSwitcher - The cdataSwitcher to set.

getCommentSwitcher

protected sk.uniba.euromath.plugin.views.outline.actions.XMLOutlineActionContributor.OutlineContentSwitcher getCommentSwitcher()
Returns:
Returns the commentSwitcher.

setCommentSwitcher

protected void setCommentSwitcher(sk.uniba.euromath.plugin.views.outline.actions.XMLOutlineActionContributor.OutlineContentSwitcher commentSwitcher)
Parameters:
commentSwitcher - The commentSwitcher to set.

getProciSwitcher

protected sk.uniba.euromath.plugin.views.outline.actions.XMLOutlineActionContributor.OutlineContentSwitcher getProciSwitcher()
Returns:
Returns the prociSwitcher.

setProciSwitcher

protected void setProciSwitcher(sk.uniba.euromath.plugin.views.outline.actions.XMLOutlineActionContributor.OutlineContentSwitcher prociSwitcher)
Parameters:
prociSwitcher - The prociSwitcher to set.

getSourceSwitcher

protected sk.uniba.euromath.plugin.views.outline.actions.XMLOutlineActionContributor.OutlineSourceSwitcher getSourceSwitcher()
Returns:
Returns the sourceSwitcher.

setSourceSwitcher

protected void setSourceSwitcher(sk.uniba.euromath.plugin.views.outline.actions.XMLOutlineActionContributor.OutlineSourceSwitcher sourceSwitcher)
Parameters:
sourceSwitcher - The sourceSwitcher to set.

getTextNodeSwitcher

protected sk.uniba.euromath.plugin.views.outline.actions.XMLOutlineActionContributor.OutlineContentSwitcher getTextNodeSwitcher()
Returns:
Returns the textNodeSwitcher.

setTextNodeSwitcher

protected void setTextNodeSwitcher(sk.uniba.euromath.plugin.views.outline.actions.XMLOutlineActionContributor.OutlineContentSwitcher textNodeSwitcher)
Parameters:
textNodeSwitcher - The textNodeSwitcher to set.

getXMLOutlinePage

protected XMLOutlinePage getXMLOutlinePage()
Returns:
Returns the xmlOutlinePage.

setWorkbenchPart

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


Copyright © 2003-2006 null. All Rights Reserved.