Project Tab

The properties set in this tab are stored within the project itself in the .proj file within the .zuml bundle.


Figure 7-16. The General Project settings tab.


Figure 7-17. The Project Profile settings tab.


Java/Jar Import

Figure 7-18. The Project Java/Jar Import settings tab.

  • Java attributes modelled as - Select either attributes or associations. If you select associations, be aware that primitive types and types from the packages,, java.util, and java.lang are always imported as attributes.

  • Arrays are modelled - Select either as data types or with a multiplicity of 1..n

  • Import classpath - Add classpaths by clicking the 'Add' button and navigating to the classpath in the browser that opens automatically.

  • Classes generally imported as attributes - Classes from this list will be imported as attributes, regardless of the setting of 'Java attributes modelled as'.

MDL Import

The options available in the import tab depend on the type of project to be imported. Below is an example of the import settings when an mdl file is being imported.

  • Show classifiers' packages - Hides or displays the package of a classifier

  • Create diagrams - When unchecked, only the elements will be imported. When checked, all corresponding diagrams will be created.

  • Create Root View Nodes - When checked, nodes are created for top level Rose views.

  • Use Poseidon default size for imported objects - When checked, an imported element will be of the same size as a new element of the same type created in Poseidon.

  • Scale down diagrams to [%] - Automatically resizes diagrams to the specified percentage for easier readability


Roundtrip Settings

Figure 7-19. The Roundtrip settings tab

  • Roundtrip is enabled - This checkbox toggles roundtripping on and off. This is the same as using the roundtrip button on the toolbar.

  • Roundtrip imports are undoable - When selected, actions in history before and including a roundtrip import may be undone with the undo command. A dialog will open to inform you that the model and sourcecode will be inconsistent after the undo. When deselected, only those actions occuring in history after the roundtrip import may be reverted with the undo button.

  • Show information about roundtrip settings while trying to enable roundtrip - When checked, an informational dialog will appear to display the current roundtrip settings.

  • Automatically hide code generation log dialog after generation - When checked, the code generation status dialog will close when generation is complete.

  • Project Root - Specifies the root location of the project.

  • Roundtrip sourcepaths - Indicates where Poseidon will generate the source code. Projects may have more than one sourcepath, and these are assigned to classifiers in the the Section called Classifier Mapping tab. Source directories are relative to the project root and must initially be empty.

    • Add folder

    • Change folder

    • Deactivate folder

    • Browse files

Classifier Mapping

Figure 7-20. The Roundtrip Classifier Mapping settings tab

From this tab you can assign a sourcepath for each of the classifiers appearing in the project. Assignations are made by first selecting the classifier from the list in the upper field, then double-clicking on the desired sourcepath in the lower field. When a classifier has been assigned, it will change from red to black. The list of available sourcepaths is editable from the the Section called Roundtrip Settings tab.

Import and Code Generation Settings

These statements are merely informational and let you know where roundtrip is getting certain parameters. The buttons next to each statement open the appropriate tab in order to edit these parameters.

Figure 7-21. The Roundtrip Import and Code Generation settings tab

  • Roundtrip is re-using all Java Import settings, e.g. classpath - Click the 'Import Settings...' button to open the 'Settings | Project | Import | Java/Jar' tab to make changes.

  • Roundtrip is re-using Java code generation settings, except the compiler - Click the 'Generation Settings...' button to open the 'Settings | General | Code Generation | Java Settings' tab to make changes.