Edit POOSL models textually

After opening a POOSL Model or creating a POOSL Model, the following features are useful during editing:

  1. Content assist
    This shows the templates for typical POOSL constructs and the elements (e.g., class, method, message, parameter, variable, port, instance) that can be referenced, at a particular position in the model.
    How? Keyboard shortcut <CTRL>-<SPACE>.
  2. Quick-fix
    This provides common solutions for typical validation warnings (icon: exclamation mark in a yellow triangle) and errors (icon: cross in a red box). It is available if a light-bulb is displayed next to the error/warning icon.
    How? Mouse click on the light-bulb next to the error/warning icon, or keyboard shortcut <CTRL>-1.
  3. Graphical viewing and editing
    There are two types of graphical views on a POOSL model: How? Right mouse click in the text editor and select "Open Composite Structure Diagram" or "Open Class Diagram", or use the keyboard shortcut <F2> (and press <F2> again to switch back).
  4. Rename element
    This consistently renames an element and all references to the element (also across files).
    How? Keyboard shortcut <ALT>-<SHIFT>-R.
  5. Formatter
    This applies a default layout to the model.
    How? Keyboard shortcut <CTRL>-<SHIFT>-F.
  6. Auto-format on save
    This applies a default layout to the model when it is saved. It is optional behavior that can be set in the Poosl preferences.
    How? If this option is turned on, save the model (for example using keyboard shortcut <CTRL>-<S>).
  7. Model documentation
    This is formed by the multi-line (/* ... */) comments (if any) before declarations (e.g., class, method, message, parameter, variable, port, instance).
    How? Hover over an element or a reference to an element, or right-click on a model and select "Generate Documentation" (the resulting HTML file appears in the documentation folder).
  8. Tasks view
    This shows tags like TODO, FIXME, and XXX that are used in single-line (//) and multi-line (/* ... */) comments.
    How? Mouse click on Tasks view in the bottom of the POOSL Edit and Debug perspectives.
After editing the POOSL model, continue with debugging. Various Eclipse shortcuts and change propagation may also be interesting to look at.