org.eclipse.graphiti.pattern
Class UpdateFeatureForPattern

java.lang.Object
  extended by org.eclipse.graphiti.features.impl.AbstractFeature
      extended by org.eclipse.graphiti.features.impl.AbstractUpdateFeature
          extended by org.eclipse.graphiti.pattern.UpdateFeatureForPattern
All Implemented Interfaces:
IFeature, IFeatureProviderHolder, IUpdateFeature, IUpdate, IDescription, IName

public class UpdateFeatureForPattern
extends AbstractUpdateFeature

The Class UpdateFeatureForPattern.


Field Summary
private  IUpdate pattern
           
 
Constructor Summary
UpdateFeatureForPattern(IFeatureProvider featureProvider, IUpdate pattern)
          Creates a new UpdateFeatureForPattern.
 
Method Summary
 boolean canUpdate(IUpdateContext context)
          Checks whether the values of the current pictogram element of the given context can be updated.
 boolean update(IUpdateContext context)
          Updates the pictogram element.
 IReason updateNeeded(IUpdateContext context)
          Check whether the values in the pictogram element are up to date, that means whether the graphics algorithm of this pictogram element contain the latest values from the business objects.
 
Methods inherited from class org.eclipse.graphiti.features.impl.AbstractUpdateFeature
canExecute, canUpdatePictogramElement, execute, getName, resizeShape, updatePictogramElement, updatePictogramElementNeeded
 
Methods inherited from class org.eclipse.graphiti.features.impl.AbstractFeature
addGraphicalRepresentation, canUndo, getAllBusinessObjectsForPictogramElement, getBusinessObjectForPictogramElement, getDescription, getDiagram, getDiagramEditor, getFeatureProvider, getProgressCallback, getUserDecision, hasDoneChanges, isAvailable, layoutPictogramElement, link, link, manageColor, manageColor, setProgressCallback, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.graphiti.features.IFeature
canUndo, hasDoneChanges, isAvailable
 
Methods inherited from interface org.eclipse.graphiti.IDescription
getDescription
 
Methods inherited from interface org.eclipse.graphiti.features.IFeatureProviderHolder
getFeatureProvider
 

Field Detail

pattern

private IUpdate pattern
Constructor Detail

UpdateFeatureForPattern

public UpdateFeatureForPattern(IFeatureProvider featureProvider,
                               IUpdate pattern)
Creates a new UpdateFeatureForPattern.

Parameters:
featureProvider - the feature provider
pattern - the pattern
Method Detail

canUpdate

public boolean canUpdate(IUpdateContext context)
Description copied from interface: IUpdate
Checks whether the values of the current pictogram element of the given context can be updated.

Parameters:
context - the context
Returns:
true if update is possible

updateNeeded

public IReason updateNeeded(IUpdateContext context)
Description copied from interface: IUpdate
Check whether the values in the pictogram element are up to date, that means whether the graphics algorithm of this pictogram element contain the latest values from the business objects.

Parameters:
context - the context
Returns:
true if parts of the pictogram model needs to be updated with the latest values from the business model

update

public boolean update(IUpdateContext context)
Description copied from interface: IUpdate
Updates the pictogram element. It copies the latest values from the business model to the graphics algorithm of this pictogram elements.

Parameters:
context - the context
Returns:
true, if update process was successfull


Copyright (c) SAP AG 2005, 2010.