Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.function.contribution
Class CellFunctionContribution

java.lang.Object
  extended by org.eclipse.jface.action.ContributionItem
      extended by eu.esdihumboldt.hale.ui.function.contribution.AbstractFunctionWizardContribution
          extended by eu.esdihumboldt.hale.ui.function.contribution.CellFunctionContribution
All Implemented Interfaces:
org.eclipse.jface.action.IContributionItem

public class CellFunctionContribution
extends AbstractFunctionWizardContribution

Function wizard contribution based on a Cell

Author:
Simon Templer

Constructor Summary
CellFunctionContribution(Cell cell)
          Constructor
 
Method Summary
protected  AbstractWizardAction<?> createWizardAction(FunctionWizardDescriptor<?> descriptor, AlignmentService alignmentService)
          Create a wizard action for the given function wizard descriptor
 Cell getCell()
          Get the cell
 boolean isActive(FunctionWizardDescriptor<?> descriptor)
          Determine if a function wizard is active for the current selection
 
Methods inherited from class eu.esdihumboldt.hale.ui.function.contribution.AbstractFunctionWizardContribution
fill, fill, getFunctionWizardDescriptors, hasActiveFunctions, isDynamic
 
Methods inherited from class org.eclipse.jface.action.ContributionItem
dispose, fill, fill, 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

CellFunctionContribution

public CellFunctionContribution(Cell cell)
Constructor

Parameters:
cell - the cell
Method Detail

createWizardAction

protected AbstractWizardAction<?> createWizardAction(FunctionWizardDescriptor<?> descriptor,
                                                     AlignmentService alignmentService)
Description copied from class: AbstractFunctionWizardContribution
Create a wizard action for the given function wizard descriptor

Specified by:
createWizardAction in class AbstractFunctionWizardContribution
Parameters:
descriptor - the function wizard descriptor
alignmentService - the alignment service
Returns:
the action that launches the wizard
See Also:
AbstractFunctionWizardContribution.createWizardAction(FunctionWizardDescriptor, AlignmentService)

isActive

public boolean isActive(FunctionWizardDescriptor<?> descriptor)
Description copied from class: AbstractFunctionWizardContribution
Determine if a function wizard is active for the current selection

Specified by:
isActive in class AbstractFunctionWizardContribution
Parameters:
descriptor - the function wizard descriptor
Returns:
if the function wizard is active for the current selection
See Also:
AbstractFunctionWizardContribution.isActive(FunctionWizardDescriptor)

getCell

public Cell getCell()
Get the cell

Returns:
the cell

Humboldt Alignment Editor 2.5.0

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