org.drools.eclipse.editors
Class DRLRuleEditorActionContributor

java.lang.Object
  extended by org.eclipse.ui.part.EditorActionBarContributor
      extended by org.eclipse.ui.part.MultiPageEditorActionBarContributor
          extended by org.drools.eclipse.editors.DRLRuleEditorActionContributor
All Implemented Interfaces:
org.eclipse.ui.IEditorActionBarContributor

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

ActionContributors for DRLRuleEditor2 Currently implements contributors to zoom feature at rete viewer.


Constructor Summary
DRLRuleEditorActionContributor()
           
 
Method Summary
 void contributeToToolBar(org.eclipse.jface.action.IToolBarManager toolBarManager)
          Adds Zoom-related contributions.
 void init(org.eclipse.ui.IActionBars bars, org.eclipse.ui.IWorkbenchPage page)
           
 void setActiveEditor(org.eclipse.ui.IEditorPart part)
          In addition to @link org.eclipse.ui.part.MultiPageEditorActionBarContributor#setActiveEditor(org.eclipse.ui.IEditorPart) it sets contribution items to DRLRuleEditor2 for later use when multipageditor tabs are switched.
 void setActivePage(org.eclipse.ui.IEditorPart activeEditor)
           
 
Methods inherited from class org.eclipse.ui.part.EditorActionBarContributor
contributeToCoolBar, contributeToMenu, 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

DRLRuleEditorActionContributor

public DRLRuleEditorActionContributor()
Method Detail

init

public void init(org.eclipse.ui.IActionBars bars,
                 org.eclipse.ui.IWorkbenchPage page)
Specified by:
init in interface org.eclipse.ui.IEditorActionBarContributor
Overrides:
init in class org.eclipse.ui.part.EditorActionBarContributor

setActivePage

public void setActivePage(org.eclipse.ui.IEditorPart activeEditor)
Specified by:
setActivePage in class org.eclipse.ui.part.MultiPageEditorActionBarContributor

setActiveEditor

public void setActiveEditor(org.eclipse.ui.IEditorPart part)
In addition to @link org.eclipse.ui.part.MultiPageEditorActionBarContributor#setActiveEditor(org.eclipse.ui.IEditorPart) it sets contribution items to DRLRuleEditor2 for later use when multipageditor tabs are switched.

Specified by:
setActiveEditor in interface org.eclipse.ui.IEditorActionBarContributor
Overrides:
setActiveEditor in class org.eclipse.ui.part.MultiPageEditorActionBarContributor

contributeToToolBar

public void contributeToToolBar(org.eclipse.jface.action.IToolBarManager toolBarManager)
Adds Zoom-related contributions.

Overrides:
contributeToToolBar in class org.eclipse.ui.part.EditorActionBarContributor
See Also:
EditorActionBarContributor.contributeToToolBar(org.eclipse.jface.action.IToolBarManager)


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.