Edit POOSL models textually
After opening a POOSL Model or creating a POOSL Model, the following features are useful during editing:
- 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>.
- 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.
- 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).
- Rename element
This consistently renames an element and all references to the element (also across files).
How? Keyboard shortcut <ALT>-<SHIFT>-R.
- Formatter
This applies a default layout to the model.
How? Keyboard shortcut <CTRL>-<SHIFT>-F.
- 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>).
- 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).
- 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.