org.eclipse.datatools.enablement.sybase.asa.schemaobjecteditor.examples.routineeditor
Class ProceduralObjectEditorActionContributor

java.lang.Object
  extended by org.eclipse.datatools.sqltools.schemaobjecteditor.ui.core.DefaultSchemaObjectEditorActionBarContributor
      extended by org.eclipse.datatools.enablement.sybase.asa.schemaobjecteditor.examples.routineeditor.ProceduralObjectEditorActionContributor
All Implemented Interfaces:
ISchemaObjectEditorActionBarContributor

public class ProceduralObjectEditorActionContributor
extends DefaultSchemaObjectEditorActionBarContributor
implements ISchemaObjectEditorActionBarContributor

Author:
Hui Cao

Constructor Summary
ProceduralObjectEditorActionContributor()
           
 
Method Summary
 void contributeToCoolBar(org.eclipse.jface.action.ICoolBarManager coolBarManager)
          Contributes actions to cool bar.
 void contributeToMenu(org.eclipse.jface.action.IMenuManager menuManager)
          Contributes actions to menu
 void contributeToStatusLine(org.eclipse.jface.action.IStatusLineManager statusLineManager)
          Sets/clears message on status line
 void contributeToToolBar(org.eclipse.jface.action.IToolBarManager toolBarManager)
          Contribute actions to tool bar
 void init(org.eclipse.ui.IActionBars bars, org.eclipse.ui.IWorkbenchPage page)
          Initializes this contributor, which is expected to add contributions as required to the given action bars and global action handlers.
 void setActivePage(org.eclipse.ui.IEditorPart activeEditor)
          This method is called whenever the page changes.
 void setEditor(ISchemaObjectEditor editor)
          Sets the editor
 
Methods inherited from class org.eclipse.datatools.sqltools.schemaobjecteditor.ui.core.DefaultSchemaObjectEditorActionBarContributor
getActionBars, getPage
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.datatools.sqltools.schemaobjecteditor.ui.ISchemaObjectEditorActionBarContributor
getActionBars, getPage
 

Constructor Detail

ProceduralObjectEditorActionContributor

public ProceduralObjectEditorActionContributor()
Method Detail

contributeToCoolBar

public void contributeToCoolBar(org.eclipse.jface.action.ICoolBarManager coolBarManager)
Description copied from interface: ISchemaObjectEditorActionBarContributor
Contributes actions to cool bar.

Specified by:
contributeToCoolBar in interface ISchemaObjectEditorActionBarContributor
Overrides:
contributeToCoolBar in class DefaultSchemaObjectEditorActionBarContributor

contributeToMenu

public void contributeToMenu(org.eclipse.jface.action.IMenuManager menuManager)
Description copied from interface: ISchemaObjectEditorActionBarContributor
Contributes actions to menu

Specified by:
contributeToMenu in interface ISchemaObjectEditorActionBarContributor
Overrides:
contributeToMenu in class DefaultSchemaObjectEditorActionBarContributor

contributeToStatusLine

public void contributeToStatusLine(org.eclipse.jface.action.IStatusLineManager statusLineManager)
Description copied from interface: ISchemaObjectEditorActionBarContributor
Sets/clears message on status line

Specified by:
contributeToStatusLine in interface ISchemaObjectEditorActionBarContributor
Overrides:
contributeToStatusLine in class DefaultSchemaObjectEditorActionBarContributor

contributeToToolBar

public void contributeToToolBar(org.eclipse.jface.action.IToolBarManager toolBarManager)
Description copied from interface: ISchemaObjectEditorActionBarContributor
Contribute actions to tool bar

Specified by:
contributeToToolBar in interface ISchemaObjectEditorActionBarContributor
Overrides:
contributeToToolBar in class DefaultSchemaObjectEditorActionBarContributor

setActivePage

public void setActivePage(org.eclipse.ui.IEditorPart activeEditor)
Description copied from interface: ISchemaObjectEditorActionBarContributor
This method is called whenever the page changes. Subclasses must implement this method to redirect actions to the given editor (if not already directed to it).

Specified by:
setActivePage in interface ISchemaObjectEditorActionBarContributor
Overrides:
setActivePage in class DefaultSchemaObjectEditorActionBarContributor

setEditor

public void setEditor(ISchemaObjectEditor editor)
Description copied from interface: ISchemaObjectEditorActionBarContributor
Sets the editor

Specified by:
setEditor in interface ISchemaObjectEditorActionBarContributor
Overrides:
setEditor in class DefaultSchemaObjectEditorActionBarContributor

init

public void init(org.eclipse.ui.IActionBars bars,
                 org.eclipse.ui.IWorkbenchPage page)
Description copied from interface: ISchemaObjectEditorActionBarContributor
Initializes this contributor, which is expected to add contributions as required to the given action bars and global action handlers.

The page is passed to support the use of RetargetAction by the contributor. In this case the init method implementors should:

And in the dispose method the retarget actions should be removed as part listeners.

Specified by:
init in interface ISchemaObjectEditorActionBarContributor
Overrides:
init in class DefaultSchemaObjectEditorActionBarContributor
Parameters:
bars - the action bars
page - the workbench page for this contributor