In-place Editing

The Diagram view in Together features in-place editing of an element's properties. Each diagram element has an initial string with a certain set of properties. However, some of these properties are not displayed, and must be edited using the Properties view for the element. Using in-place editing, you can modify all properties or just some of them so that Together completes the changes. An example of in-place editing is shown below:

To enable in-place editing:

  1. Double-click the selected element.


  2. Choose Rename on the element's context menu.

This opens a highlighted text string with a cursor that allows modification. The changes are applied by pressing Enter or clicking on another element, which generates the relevant code.

When editing properties manually, adhere to correct syntax. This specifically applies to code-generating diagrams. Together responds to the wrong syntax of modifiers with error messages. But proceed with caution: a misspelled attribute type is reproduced exactly in forward engineering.

In the case of an incomplete entry, the omitted visibility modifiers, attribute types, or return types of the operations are replaced with their existing values. For example, if an attribute was private and the visibility is not entered, then it will be kept private. If no value was specified before, then default values are substituted as they are specified in the appropriate template properties. For example, an attribute with an undefined visibility modifier and type will be a private integer if an operation's return type is not specified, it defaults to void.

Almost all strings can be modified at any time.