org.eclipse.graphiti.palette.impl
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionCreationToolEntry
public ConnectionCreationToolEntry(String label,
String description,
String iconId,
String largeIconId)
- Create a new
ConnectionCreationToolEntry
.
- Parameters:
label
- the labeldescription
- the descriptioniconId
- the icon idlargeIconId
- the large icon id
addCreateConnectionFeature
public void addCreateConnectionFeature(ICreateConnectionFeature createFeature)
- 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
public List<IFeature> getCreateConnectionFeatures()
- Gets the create connection features.
- Specified by:
getCreateConnectionFeatures
in interface IConnectionCreationToolEntry
- Returns:
- the provided create connection features
Copyright (c) SAP AG 2005, 2010.