EClass Tool (abstract)

Defines a tool. Allows interactive editing of models. Typically, use DragAndDrop to add contained objects, EdgeRouting to draw associations (directly or with a contained object), SelectionTool to modify objects. Needs to be added to a PaletteCategory. Check the individual tools for details.

ePackage:

tools

inherited by:

DragAndDrop, EdgeRouting, SelectionTool

referenced by:

PaletteCategory

contained by:

Editor, ToolGenerator

EAttributes

icon (EString)

Defines the path to the tool icon. The path is relative to the editor’s repository URL.

id (EString)

Defines an unique id for the tool.

name (EString)

Defines the tool name.

providesTemplate (EBoolean)

DragAndDrop needs TEMPLATE, referenced as DROPITEM. EdgeRouting can have TEMPLATE, referenced as EDGEITEM. SelectionTool ignores template.

In the factoryCmd, exactly 1 EOQ Command has the alias TEMPLATE. The factoryCmd is run once and the resulting TEMPLATE then is cloned every time the tool is used. So make sure to only run commands in the factory that influence the TEMPLATE. Integration commands go to DropReception/EdgeDefinition.

tooltip (EString)

Defines a tooltip for the tool.

EReferences

factoryCmd (CompoundCmd) (lowerBound=0, upperBound=1) (containment)

Defines the command to create the drop item.