public class DefaultMdacAction extends Object implements IMdacAction
| Constructor and Description |
|---|
DefaultMdacAction(IMdac mdac,
int id,
String name,
String label,
String tooltip,
String bitmapPath,
String slotName,
String hint,
boolean needReadWriteObject,
boolean editTheModel,
IMdacContextualCommand command)
Deprecated.
|
DefaultMdacAction(IMdac mdac,
String name,
String label,
String tooltip,
String bitmapPath,
boolean needReadWriteObject,
boolean editTheModel,
IMdacContextualCommand command)
Creates an mdac action with an empty slot.
|
DefaultMdacAction(IMdac mdac,
String name,
String label,
String tooltip,
String bitmapPath,
String slotPattern,
String slotImagePaths,
boolean needReadWriteObject,
boolean editTheModel,
IMdacContextualCommand command) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(IElement[] selectedElements) |
void |
addAllowedMetaclass(Class<? extends IElement> eltName) |
void |
addAllowedStereotype(IStereotype stereotype) |
org.eclipse.jface.resource.ImageDescriptor |
getBitmap() |
IMdacContextualCommand |
getCommand() |
String |
getImagePath()
Deprecated.
|
String |
getLabel() |
IMdac |
getMdac() |
String |
getName() |
org.eclipse.jface.resource.ImageDescriptor |
getSlotImage(int slotIndex) |
List<String> |
getSlots() |
String |
getTooltip() |
boolean |
isActiveFor(IElement[] selectedElements,
boolean readOnlyTool) |
boolean |
needReadWriteObject() |
public DefaultMdacAction(IMdac mdac, String name, String label, String tooltip, String bitmapPath, boolean needReadWriteObject, boolean editTheModel, IMdacContextualCommand command)
public DefaultMdacAction(IMdac mdac, String name, String label, String tooltip, String bitmapPath, String slotPattern, String slotImagePaths, boolean needReadWriteObject, boolean editTheModel, IMdacContextualCommand command)
@Deprecated public DefaultMdacAction(IMdac mdac, int id, String name, String label, String tooltip, String bitmapPath, String slotName, String hint, boolean needReadWriteObject, boolean editTheModel, IMdacContextualCommand command)
public final boolean accept(IElement[] selectedElements)
accept in interface IMdacActionpublic void addAllowedMetaclass(Class<? extends IElement> eltName)
addAllowedMetaclass in interface IMdacActionpublic void addAllowedStereotype(IStereotype stereotype)
addAllowedStereotype in interface IMdacActionpublic org.eclipse.jface.resource.ImageDescriptor getBitmap()
getBitmap in interface IMdacActionpublic IMdacContextualCommand getCommand()
getCommand in interface IMdacAction@Deprecated public String getImagePath()
getImagePath in interface IMdacActionpublic String getLabel()
getLabel in interface IMdacActionpublic IMdac getMdac()
getMdac in interface IMdacActionpublic String getName()
getName in interface IMdacActionpublic org.eclipse.jface.resource.ImageDescriptor getSlotImage(int slotIndex)
getSlotImage in interface IMdacActionpublic List<String> getSlots()
getSlots in interface IMdacActionpublic String getTooltip()
getTooltip in interface IMdacActionpublic final boolean isActiveFor(IElement[] selectedElements, boolean readOnlyTool)
isActiveFor in interface IMdacActionpublic boolean needReadWriteObject()
needReadWriteObject in interface IMdacAction