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 IMdacAction
public void addAllowedMetaclass(Class<? extends IElement> eltName)
addAllowedMetaclass
in interface IMdacAction
public void addAllowedStereotype(IStereotype stereotype)
addAllowedStereotype
in interface IMdacAction
public org.eclipse.jface.resource.ImageDescriptor getBitmap()
getBitmap
in interface IMdacAction
public IMdacContextualCommand getCommand()
getCommand
in interface IMdacAction
@Deprecated public String getImagePath()
getImagePath
in interface IMdacAction
public String getLabel()
getLabel
in interface IMdacAction
public IMdac getMdac()
getMdac
in interface IMdacAction
public String getName()
getName
in interface IMdacAction
public org.eclipse.jface.resource.ImageDescriptor getSlotImage(int slotIndex)
getSlotImage
in interface IMdacAction
public List<String> getSlots()
getSlots
in interface IMdacAction
public String getTooltip()
getTooltip
in interface IMdacAction
public final boolean isActiveFor(IElement[] selectedElements, boolean readOnlyTool)
isActiveFor
in interface IMdacAction
public boolean needReadWriteObject()
needReadWriteObject
in interface IMdacAction