Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.util
Class DynamicActionsContribution

java.lang.Object
  extended by org.eclipse.jface.action.ContributionItem
      extended by eu.esdihumboldt.hale.ui.util.DynamicActionsContribution
All Implemented Interfaces:
org.eclipse.jface.action.IContributionItem
Direct Known Subclasses:
ExamplesContribution

public abstract class DynamicActionsContribution
extends org.eclipse.jface.action.ContributionItem

Dynamic contribution item based on a list of actions.

Author:
Simon Templer

Constructor Summary
DynamicActionsContribution()
           
 
Method Summary
 void fill(org.eclipse.swt.widgets.Composite parent)
           
 void fill(org.eclipse.swt.widgets.CoolBar parent, int index)
           
 void fill(org.eclipse.swt.widgets.Menu menu, int index)
           
 void fill(org.eclipse.swt.widgets.ToolBar parent, int index)
           
protected abstract  Iterable<org.eclipse.jface.action.IAction> getActions()
          Get the actions that are to be displayed in the contribution.
 boolean isDynamic()
           
 
Methods inherited from class org.eclipse.jface.action.ContributionItem
dispose, getId, getParent, isDirty, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setId, setParent, setVisible, toString, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DynamicActionsContribution

public DynamicActionsContribution()
Method Detail

getActions

protected abstract Iterable<org.eclipse.jface.action.IAction> getActions()
Get the actions that are to be displayed in the contribution. A null action represents a separator.

Returns:
the actions

fill

public void fill(org.eclipse.swt.widgets.Composite parent)
Specified by:
fill in interface org.eclipse.jface.action.IContributionItem
Overrides:
fill in class org.eclipse.jface.action.ContributionItem
See Also:
ContributionItem.fill(Composite)

fill

public void fill(org.eclipse.swt.widgets.Menu menu,
                 int index)
Specified by:
fill in interface org.eclipse.jface.action.IContributionItem
Overrides:
fill in class org.eclipse.jface.action.ContributionItem
See Also:
ContributionItem.fill(Menu, int)

fill

public void fill(org.eclipse.swt.widgets.ToolBar parent,
                 int index)
Specified by:
fill in interface org.eclipse.jface.action.IContributionItem
Overrides:
fill in class org.eclipse.jface.action.ContributionItem
See Also:
ContributionItem.fill(ToolBar, int)

fill

public void fill(org.eclipse.swt.widgets.CoolBar parent,
                 int index)
Specified by:
fill in interface org.eclipse.jface.action.IContributionItem
Overrides:
fill in class org.eclipse.jface.action.ContributionItem
See Also:
ContributionItem.fill(CoolBar, int)

isDynamic

public boolean isDynamic()
Specified by:
isDynamic in interface org.eclipse.jface.action.IContributionItem
Overrides:
isDynamic in class org.eclipse.jface.action.ContributionItem
See Also:
ContributionItem.isDynamic()

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d