Command identification

  • Label: Enter the command label. The label is displayed in GUI.

  • Tooltip: Enter a little text to explain the command.

  • Id: It is the Id command. It is pre-filled from using "Label" field.

  • Icon: Select an 16x16 icon for the command. This icon will be used in the contextual menu and the property page.

image

Command behavior

There are some preconfigued actions available.

  • Create an element

  • Create a diagram

  • Create a matrix

  • Create a document

  • Apply a pattern

  • Execute a java command

  • Apply a jython script

Action: Create an element
  • Metaclass: Select the "Metaclass" of the element to create

  • Stereotype: Select the stereotype will be applied on the element to create. Leave bank if there is not stereotype.

  • Created element name: Enter the name by default of the element to create.

  • Parameters: Optionally, some parameters can be passed. See ElementCreationStandardHandler class on Modelio API javadoc for more information.

  • User a custom java class: If checked, a java class defined in the module is called when the command is executed

    • Java class: This must be a java identifier, matching the following conditions:

      • alphanumeric characters

      • currency symbol (such as ‘$’)

      • connection punctuation character (such as ‘_’)

      • .’ are accepted only as separators for the namespacing

image

Action: Create a diagram
  • Diagram type: Select a diagram type.

  • Style: Enter the style applied to the diagram to create.

  • Created element name: Enter the name by default of the diagram to create.

  • Parameters: Optionally, some parameters can be passed. See DiagramCreationStandardHandler class on Modelio API javadoc for more information.

  • User a custom java class: If checked, a java class defined in the module is called when the command is executed

    • Java class: This must be a java identifier, matching the following conditions:

      • alphanumeric characters

      • currency symbol (such as ‘$’)

      • connection punctuation character (such as ‘_’)

      • .’ are accepted only as separators for the namespacing

image

Action: Create a matrix
  • Matrix to create: Select a matrix type.

  • Created element name: Enter the name by default of the diagram to create.

  • Parameters: Optionally, some parameters can be passed. See CreateMatrixStandardCommandHandler class on Modelio API javadoc for more information.

  • User a custom java class: If checked, a java class defined in the module is called when the command is executed

    • Java class: This must be a java identifier, matching the following conditions:

      • alphanumeric characters

      • currency symbol (such as ‘$’)

      • connection punctuation character (such as ‘_’)

      • .’ are accepted only as separators for the namespacing

image

Action: Create a document
  • Document to generate: Select a document template.

  • Parameters: Optionally, some parameters can be passed. See GenDocCommandStandardHandler class on Modelio API javadoc for more information.

  • User a custom java class: If checked, a java class defined in the module is called when the command is executed

    • Java class: This must be a java identifier, matching the following conditions:

      • alphanumeric characters

      • currency symbol (such as ‘$’)

      • connection punctuation character (such as ‘_’)

      • .’ are accepted only as separators for the namespacing

image

Action: Apply a pattern
  • Document to generate: Select a pattern.

  • Parameters: Optionally, some parameters can be passed. See ApplyPatternStandardHandler class on Modelio API javadoc for more information.

  • User a custom java class: If checked, a java class defined in the module is called when the command is executed

    • Java class: This must be a java identifier, matching the following conditions:

      • alphanumeric characters

      • currency symbol (such as ‘$’)

      • connection punctuation character (such as ‘_’)

      • .’ are accepted only as separators for the namespacing

image

Action: Execute a java command
  • Java class: This must be a java identifier, matching the following conditions:

    • alphanumeric characters

    • currency symbol (such as ‘$’)

    • connection punctuation character (such as ‘_’)

    • .’ are accepted only as separators for the namespacing

  • Parameters: Optionally, some parameters can be passed.

image

Action: Apply a jython script
  • Script to run: Select the Jython script

  • Parameters: Optionally, some parameters can be passed. See RunJythonScriptBasicHandler class on Modelio API javadoc for more information.

  • User a custom java class: If checked, a java class defined in the module is called when the command is executed.

    • Java class: This must be a java identifier, matching the following conditions:

      • alphanumeric characters

      • currency symbol (such as ‘$’)

      • connection punctuation character (such as ‘_’)

      • .’ are accepted only as separators for the namespacing

image

Can be applied on

Indicate the Metaclass which the command will be available.
To add a Metaclass click the image button and edit the Metaclass column.
To remove a Metaclass entry, select the entry and click the image button

image