Class ConnectionCreationToolEntry
java.lang.Object
org.eclipse.graphiti.palette.impl.AbstractPaletteEntry
org.eclipse.graphiti.palette.impl.AbstractPaletteToolEntry
org.eclipse.graphiti.palette.impl.ConnectionCreationToolEntry
- All Implemented Interfaces:
IConnectionCreationToolEntry,ICreationToolEntry,IPaletteEntry,IToolEntry
public class ConnectionCreationToolEntry
extends AbstractPaletteToolEntry
implements IConnectionCreationToolEntry
The Class ConnectionCreationToolEntry creates a tool entry for the palette
which can create connections. Connection creation features are added
separately.
-
Field Summary
Fields inherited from class org.eclipse.graphiti.palette.impl.AbstractPaletteToolEntry
features -
Constructor Summary
ConstructorsConstructorDescriptionConnectionCreationToolEntry(String label, String description, String iconId, String largeIconId) Create a newConnectionCreationToolEntry. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCreateConnectionFeature(ICreateConnectionFeature createFeature) Adds a create feature to the tool.Gets the create connection features.Methods inherited from class org.eclipse.graphiti.palette.impl.AbstractPaletteToolEntry
getDescription, getFeatures, getLargeIconIdMethods inherited from class org.eclipse.graphiti.palette.impl.AbstractPaletteEntry
getIconId, getLabelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.graphiti.palette.ICreationToolEntry
getDescription, getLargeIconIdMethods inherited from interface org.eclipse.graphiti.palette.IPaletteEntry
getIconId, getLabel
-
Constructor Details
-
ConnectionCreationToolEntry
public ConnectionCreationToolEntry(String label, String description, String iconId, String largeIconId) Create a newConnectionCreationToolEntry.- Parameters:
label- the labeldescription- the descriptioniconId- the icon idlargeIconId- the large icon id
-
-
Method Details
-
addCreateConnectionFeature
Adds a create feature to the tool. you have to provide at least one. If several features are added the tool will display a popup menu after connection creation which lets the user choose between all features which canExecute.- Parameters:
createFeature- the create feature
-
getCreateConnectionFeatures
Gets the create connection features.- Specified by:
getCreateConnectionFeaturesin interfaceIConnectionCreationToolEntry- Returns:
- the provided create connection features
-