org.eclipse.graphiti.ui.features
Class AbstractDrillDownFeature

java.lang.Object
  extended by org.eclipse.graphiti.features.impl.AbstractFeature
      extended by org.eclipse.graphiti.features.custom.AbstractCustomFeature
          extended by org.eclipse.graphiti.ui.features.AbstractDrillDownFeature
All Implemented Interfaces:
ICustomFeature, IFeature, IFeatureProviderHolder, IDescription, IName

public abstract class AbstractDrillDownFeature
extends AbstractCustomFeature

The Class AbstractDrillDownFeature.


Nested Class Summary
private  class AbstractDrillDownFeature.DiagramLabelProvider
          The Class DiagramLabelProvider.
 
Field Summary
private static java.lang.String NAME
           
 
Constructor Summary
AbstractDrillDownFeature(IFeatureProvider fp)
          Creates a new AbstractDrillDownFeature.
 
Method Summary
 boolean canExecute(ICustomContext context)
          Can execute.
 void execute(ICustomContext context)
          Execute.
protected abstract  java.util.Collection<Diagram> getDiagrams()
          Returns all diagrams which are considered for navigation.
protected  java.util.Collection<Diagram> getLinkedDiagrams(PictogramElement pe)
          Returns a list of all diagrams, which are connected to the given pictogram element.
 java.lang.String getName()
          Gets the name.
protected  TransactionalEditingDomain getTransActionalEditingDomainForNewDiagram()
           
 
Methods inherited from class org.eclipse.graphiti.features.custom.AbstractCustomFeature
canExecute, execute, getDescription, getImageId, isAvailable
 
Methods inherited from class org.eclipse.graphiti.features.impl.AbstractFeature
addGraphicalRepresentation, canUndo, getAllBusinessObjectsForPictogramElement, getBusinessObjectForPictogramElement, getDiagram, getDiagramEditor, getFeatureProvider, getProgressCallback, getUserDecision, hasDoneChanges, layoutPictogramElement, link, link, manageColor, manageColor, setProgressCallback, toString, updatePictogramElement
 
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
 
Methods inherited from interface org.eclipse.graphiti.features.IFeatureProviderHolder
getFeatureProvider
 

Field Detail

NAME

private static final java.lang.String NAME
Constructor Detail

AbstractDrillDownFeature

public AbstractDrillDownFeature(IFeatureProvider fp)
Creates a new AbstractDrillDownFeature.

Parameters:
fp - the feature provider
Method Detail

getName

public java.lang.String getName()
Description copied from interface: IName
Gets the name.

Specified by:
getName in interface IName
Overrides:
getName in class AbstractFeature
Returns:
the name

execute

public void execute(ICustomContext context)
Description copied from interface: ICustomFeature
Execute.

Parameters:
context - the context

canExecute

public boolean canExecute(ICustomContext context)
Description copied from interface: ICustomFeature
Can execute.

Specified by:
canExecute in interface ICustomFeature
Overrides:
canExecute in class AbstractCustomFeature
Parameters:
context - the context
Returns:
true, if successful

getLinkedDiagrams

protected java.util.Collection<Diagram> getLinkedDiagrams(PictogramElement pe)
Returns a list of all diagrams, which are connected to the given pictogram element. This means, that the diagrams and the pictogram element have at least one linked business object in common.

Parameters:
pe - The pictogram element for which to return the connected diagrams.
Returns:
A list of all diagrams, which are connected to the given pictogram element.

getDiagrams

protected abstract java.util.Collection<Diagram> getDiagrams()
Returns all diagrams which are considered for navigation.

Returns:
the diagrams

getTransActionalEditingDomainForNewDiagram

protected TransactionalEditingDomain getTransActionalEditingDomainForNewDiagram()


Copyright (c) SAP AG 2005, 2010.