public class DefaultModuleAction extends java.lang.Object implements IModuleAction
IModuleAction interface.| Constructor and Description |
|---|
DefaultModuleAction(IModule module,
java.lang.String name,
java.lang.String label,
java.lang.String tooltip,
java.lang.String bitmapPath,
java.lang.String slotPattern,
java.lang.String slotImagePaths,
boolean needReadWriteObject,
boolean editTheModel,
IModuleCommandHandler command) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(MObject[] selectedElements) |
java.nio.file.Path |
getBitmapPath() |
IModuleCommandHandler |
getHandler() |
java.lang.String |
getLabel() |
IModule |
getModule() |
java.lang.String |
getName() |
java.nio.file.Path |
getSlotImagePath(int slotIndex) |
java.util.List<java.lang.String> |
getSlots() |
java.lang.String |
getTooltip() |
boolean |
isActiveFor(MObject[] selectedElements,
boolean readOnlyTool) |
boolean |
needReadWriteObject() |
void |
parseSlotImagePaths(java.lang.String slotImagePathPatterns) |
void |
parseSlotPattern(java.lang.String slotPattern) |
public DefaultModuleAction(IModule module, java.lang.String name, java.lang.String label, java.lang.String tooltip, java.lang.String bitmapPath, java.lang.String slotPattern, java.lang.String slotImagePaths, boolean needReadWriteObject, boolean editTheModel, IModuleCommandHandler command)
module - the modulename - the action namelabel - the labeltooltip - the tooltipbitmapPath - the iconslotPattern - the sub menu pathslotImagePaths - the slot images pathneedReadWriteObject - whether the target must be writeableeditTheModel - whether the command modifies the modelcommand - the command handlerpublic final boolean accept(MObject[] selectedElements)
accept in interface IModuleActionpublic java.nio.file.Path getBitmapPath()
getBitmapPath in interface IModuleActionpublic IModuleCommandHandler getHandler()
getHandler in interface IModuleActionpublic java.lang.String getLabel()
getLabel in interface IModuleActionpublic IModule getModule()
getModule in interface IModuleActionpublic java.lang.String getName()
getName in interface IModuleActionpublic java.nio.file.Path getSlotImagePath(int slotIndex)
getSlotImagePath in interface IModuleActionpublic java.util.List<java.lang.String> getSlots()
getSlots in interface IModuleActionpublic java.lang.String getTooltip()
getTooltip in interface IModuleActionpublic final boolean isActiveFor(MObject[] selectedElements, boolean readOnlyTool)
isActiveFor in interface IModuleActionpublic boolean needReadWriteObject()
needReadWriteObject in interface IModuleActionpublic void parseSlotPattern(java.lang.String slotPattern)
parseSlotPattern in interface IModuleActionpublic void parseSlotImagePaths(java.lang.String slotImagePathPatterns)
parseSlotImagePaths in interface IModuleAction