com.ibm.jdg2e.activex.editor
Class ActiveXMultiPageEditorContributor

java.lang.Object
  extended byorg.eclipse.ui.part.EditorActionBarContributor
      extended byorg.eclipse.ui.part.MultiPageEditorActionBarContributor
          extended bycom.ibm.jdg2e.activex.editor.ActiveXMultiPageEditorContributor
All Implemented Interfaces:
org.eclipse.ui.IEditorActionBarContributor

public class ActiveXMultiPageEditorContributor
extends org.eclipse.ui.part.MultiPageEditorActionBarContributor

Manages the installation/deinstallation of global actions for multi-page editors. Responsible for the redirection of global actions to the active editor. Multi-page contributor replaces the contributors for the individual editors in the multi-page editor.


Constructor Summary
ActiveXMultiPageEditorContributor()
          Creates a multi-page contributor.
 
Method Summary
 void contributeToMenu(org.eclipse.jface.action.IMenuManager manager)
          Adds bold, italic and underline actions.
 void contributeToToolBar(org.eclipse.jface.action.IToolBarManager manager)
          Adds bold, italic, and underline actions
protected  org.eclipse.jface.action.IAction getAction(org.eclipse.ui.texteditor.ITextEditor editor, java.lang.String actionID)
          Returns the action registered with the given text editor.
 void init(org.eclipse.ui.IActionBars bars, org.eclipse.ui.IWorkbenchPage page)
           
 void setActiveEditor(org.eclipse.ui.IEditorPart targetEditor)
          This method saves the active browser editor the user is working with.
 void setActivePage(org.eclipse.ui.IEditorPart part)
          Sets up the standard (global ) editor menus
 
Methods inherited from class org.eclipse.ui.part.EditorActionBarContributor
contributeToCoolBar, contributeToStatusLine, dispose, getActionBars, getPage, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActiveXMultiPageEditorContributor

public ActiveXMultiPageEditorContributor()
Creates a multi-page contributor.

Method Detail

contributeToMenu

public void contributeToMenu(org.eclipse.jface.action.IMenuManager manager)
Adds bold, italic and underline actions.

See Also:
EditorActionBarContributor.contributeToMenu(IMenuManager)

contributeToToolBar

public void contributeToToolBar(org.eclipse.jface.action.IToolBarManager manager)
Adds bold, italic, and underline actions

See Also:
EditorActionBarContributor.contributeToToolBar(IToolBarManager)

getAction

protected org.eclipse.jface.action.IAction getAction(org.eclipse.ui.texteditor.ITextEditor editor,
                                                     java.lang.String actionID)
Returns the action registered with the given text editor.

Returns:
IAction or null if editor is null.

init

public void init(org.eclipse.ui.IActionBars bars,
                 org.eclipse.ui.IWorkbenchPage page)
See Also:
IEditorActionBarContributor.init(IActionBars, IWorkbenchPage)

setActiveEditor

public void setActiveEditor(org.eclipse.ui.IEditorPart targetEditor)
This method saves the active browser editor the user is working with.

See Also:
IEditorActionBarContributor.setActiveEditor(IEditorPart)

setActivePage

public void setActivePage(org.eclipse.ui.IEditorPart part)
Sets up the standard (global ) editor menus

See Also:
MultiPageEditorActionBarContributor.setActivePage(IEditorPart)