|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.graphiti.features.impl.AbstractFeature
org.eclipse.graphiti.features.custom.AbstractCustomFeature
org.eclipse.graphiti.ui.features.AbstractDrillDownFeature
public abstract class AbstractDrillDownFeature
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 java.lang.String |
getDiagramEditorId(Diagram diagram)
Returns the editor id of the diagram editor to open by default DiagramEditor.DIAGRAM_EDITOR_ID . |
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()
|
boolean |
hasDoneChanges()
Is queried by the framework after a feature has been executed to find out if this feature should appear in the undo stack of e.g. |
protected void |
openDiagramEditor(Diagram diagram)
Opens the diagram editor for the drill down. |
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, 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 |
Methods inherited from interface org.eclipse.graphiti.features.IFeatureProviderHolder |
---|
getFeatureProvider |
Field Detail |
---|
private static final java.lang.String NAME
Constructor Detail |
---|
public AbstractDrillDownFeature(IFeatureProvider fp)
AbstractDrillDownFeature
.
fp
- the feature providerMethod Detail |
---|
public java.lang.String getName()
IName
getName
in interface IName
getName
in class AbstractFeature
public void execute(ICustomContext context)
ICustomFeature
context
- the contextprotected void openDiagramEditor(Diagram diagram)
diagram
- the diagram for which the editor will be opened.protected java.lang.String getDiagramEditorId(Diagram diagram)
DiagramEditor.DIAGRAM_EDITOR_ID
. Users can override and return a
different editor id, must be the id of a subclass of
DiagramEditor
.
diagram
- the diagram for which the editor will be opened
public boolean canExecute(ICustomContext context)
ICustomFeature
canExecute
in interface ICustomFeature
canExecute
in class AbstractCustomFeature
context
- the context
public boolean hasDoneChanges()
IFeature
AbstractFeature
), but features may decide to override this
behavior. Note that this is a dynamic attribute of the feature that is
queried each time after the feature has been executed.
IMPORTANT NOTE: The implementor of the feature is responsible for
correctly implementing this method! It might lead to inconsistencies in
the command stack if this method returns false
although the
feature did changes.
hasDoneChanges
in interface IFeature
hasDoneChanges
in class AbstractFeature
true
if the feature should appear in the undo stack,
false
otherwiseprotected java.util.Collection<Diagram> getLinkedDiagrams(PictogramElement pe)
pe
- The pictogram element for which to return the connected
diagrams.
protected abstract java.util.Collection<Diagram> getDiagrams()
protected TransactionalEditingDomain getTransActionalEditingDomainForNewDiagram()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |