ch.sahits.phpclassgenerator.editors
Class PhpClassGeneratorEditorContributor

java.lang.Object
  extended by org.eclipse.ui.part.EditorActionBarContributor
      extended by org.eclipse.ui.part.MultiPageEditorActionBarContributor
          extended by ch.sahits.phpclassgenerator.editors.PhpClassGeneratorEditorContributor
All Implemented Interfaces:
org.eclipse.ui.IEditorActionBarContributor

public class PhpClassGeneratorEditorContributor
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. $Revision: 1.2 $ changed by $Author: hotzst $ at $Date: 2007/08/18 16:39:05 $


Field Summary
private  org.eclipse.ui.IEditorPart activeEditorPart
           
private  org.eclipse.jface.action.Action sampleAction
           
 
Constructor Summary
PhpClassGeneratorEditorContributor()
          Creates a multi-page contributor.
 
Method Summary
 void contributeToMenu(org.eclipse.jface.action.IMenuManager manager)
          Add to the menu bar
 void contributeToToolBar(org.eclipse.jface.action.IToolBarManager manager)
          Add to the tool bar
private  void createActions()
           
protected  org.eclipse.jface.action.IAction getAction(org.eclipse.ui.texteditor.ITextEditor editor, java.lang.String actionID)
          Returns the action registed with the given text editor.
 void setActivePage(org.eclipse.ui.IEditorPart part)
          Method declared in AbstractMultiPageEditorActionBarContributor.
 
Methods inherited from class org.eclipse.ui.part.MultiPageEditorActionBarContributor
setActiveEditor
 
Methods inherited from class org.eclipse.ui.part.EditorActionBarContributor
contributeToCoolBar, contributeToStatusLine, dispose, getActionBars, getPage, init, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

activeEditorPart

private org.eclipse.ui.IEditorPart activeEditorPart

sampleAction

private org.eclipse.jface.action.Action sampleAction
Constructor Detail

PhpClassGeneratorEditorContributor

public PhpClassGeneratorEditorContributor()
Creates a multi-page contributor.

Method Detail

getAction

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

Returns:
IAction or null if editor is null.

setActivePage

public void setActivePage(org.eclipse.ui.IEditorPart part)
Method declared in AbstractMultiPageEditorActionBarContributor.

Specified by:
setActivePage in class org.eclipse.ui.part.MultiPageEditorActionBarContributor
Parameters:
part - Editor Part

createActions

private void createActions()

contributeToMenu

public void contributeToMenu(org.eclipse.jface.action.IMenuManager manager)
Add to the menu bar

Overrides:
contributeToMenu in class org.eclipse.ui.part.EditorActionBarContributor
Parameters:
manager -

contributeToToolBar

public void contributeToToolBar(org.eclipse.jface.action.IToolBarManager manager)
Add to the tool bar

Overrides:
contributeToToolBar in class org.eclipse.ui.part.EditorActionBarContributor
Parameters:
manager -