Poseidon for UML: User Guide
Prev |  | Next

# Chapter 7. Setting Properties

The behavior of Poseidon is defined by a number of properties. You can adjust the behavior of Poseidon to your personal needs by changing the corresponding properties using the settings dialog. Once the settings dialog is open (choose Settings from the Edit menu), you will see a number of tabs.

# General Tab

The properties set in this tab are stored in the Poseidon.properties file, located in your user home directory under .poseidon/<version>.

## General

Figure 7-1. The General settings tab.

- Language - This is the language used for the Poseidon user interface. You can switch the interface to a different language by choosing your preferred language from this selection list. Poseidon currently supports English, German, French, Spanish, Italian and Chinese. By default, the system language is used - or English, if the system language is not available. In other words, if you start Poseidon on a Spanish system, for example, the program will start in Spanish - but on a Swedish system the program will start in English, as Swedish is not currently supported.

- Re-Open Last Project on Startup - If checked, Poseidon opens the most recently used project on startup.

- Skip confirmation dialog when deleting elements - If checked, the dialog asking if you really want to delete selected elements will not appear.

- Skip confirmation dialog when cutting elements completely - If checked, the dialog asking if you really want to cut the element selected (not just its representation) will not appear.

- Skip confirmation dialog when copying elements completely - If checked, the dialog asking if you really want to copy the element selected (not just its representation) will not appear.

- Browser - This sets the default web browser used by Poseidon. To change the browser, click on the ellipse button and navigate to the location of your favorite web browser. This does not currently work on Macs.

## Appearance

Figure 7-2. The Appearance settings tab.

- Look and Feel - Determines the look and feel of the Poseidon user interface. You can change the interface appearance by choosing an entry from this list. The list of options is determined by the operating system under which Poseidon is running.

  It may sometimes be necessary to change the Look and Feel from outside of the Settings dialog (as with MacOS X and Java combinations). To change this, use the following procedure:

  1. Start Poseidon, then shut it down again.

  2. Open the Poseidon.properties file in a text editor. In Windows, this is found in: `C:\Documents and Settings\<User>\.poseidon\<Poseidon Version>`

  3. Change the line

         poseidon.init.laf=...

     to

         poseidon.init.laf=com.incors.plaf.alloy.AlloyLookAndFeel

  4. Save this file and restart Poseidon.

- Show tips on program start - If checked, a `Tip of the Day` dialog appears when you start up the program.

- Show birdview perspective - If checked, the Overview pane shows the bird's-eye perspective. The speed of Poseidon increases when the bird's-eye perspective is disabled.

- Adjust birdview to diagram size - If checked, the bird's-eye view is scaled to show all elements of the currently selected diagram.

- Tabs in diagram view - If checked, the diagram view shows the most recently viewed diagrams as tabs over the Diagram pane. This allows for faster navigation between the diagrams.

- Max. number of tabs - If checked, the maximum number of tabs in the Diagram pane is limited to the specified value.

- Use new icons - When checked, the menu will use icons from Poseidon 3.x. When unchecked, Poseidon 2.x icons will be used. When setting and unsetting this option, you must restart Poseidon for the changes to take effect.

- Scroll diagram when setting new target - When selecting a different element within the same diagram, the diagram will pan smoothly if this option is enabled. Disabling this option can enhance the speed of Poseidon.

- Use comfortable documentation editor - Enables the WYSIWYG editor in the Documentation tab of the Details pane. Leaving this unchecked speeds up the performance of Poseidon.

- Diagram Anti Aliasing - Enables the anti-aliasing of the selected diagram components.

## Modeling

Figure 7-3. The Modeling settings tab.

- Copy Javadoc down to accessor methods - If checked, the documentation of the attribute is passed to its accessor methods.

- Ask before copying down Javadoc - If unchecked, Poseidon will prompt before overwriting existing documentation of an attribute with the documentation of its accessor methods.

- Generate accessor methods for attributes - If checked, accessor methods (get/set) will be automatically created when a new attribute is created.

- When removing attributes - Defines what to do with associated accessor methods when an attribute is removed from the model. The possible options are to keep the methods in place, to delete them but ask first (this is the default setting), or to delete them immediately.

- Warn when doing changes to the model that might harm generated sourcecode - If checked, a warning will appear to remind you that the change you are attempting could cause problems with code generation.

## Environment

Figure 7-4. The Environment settings tab.

The Environment tab contains properties regarding the local environment and the directories used for loading and saving files.

- Poseidon Home folder - The folder Poseidon stores user-related information into, e.g. log files and the saved properties. This property cannot be changed.

- Project folder - Projects are loaded from and saved into this preferred folder.

- Export folder - Exported files (like graphics) are saved into this preferred folder.

- Java Home folder - The folder in which the currently-used version of Java is installed. This property usually points to the runtime part of the installation, even if the used Java is a SDK installation. This property cannot be changed.

- User Home folder - The folder your operating system uses as your personal folder. This property cannot be changed.

- User folder - The folder into which Poseidon is installed. This property cannot be changed.

- Startup folder - The folder your system points to at the startup of Poseidon. This property cannot be changed.

- Temporary Files folder - The folder used when any temporary files are created.

## User

Figure 7-5. The User settings tab.

The User tab contains properties regarding information about the user. These properties cannot be changed from the settings dialog, because they are part of the product registration. They can be changed using the license manager, but any change would require a new registration of the product.

- Full Name - Full name of the user who registered this copy of Poseidon.

- E-mail Address - E-mail address of the user who registered this copy of Poseidon. The presented email address must be a real one, or registration of Poseidon will fail.

## Profiles

Figure 7-6. The Profile settings tab.

Profiles generically extend the UML through the use of stereotypes that are most often language-specific, provide a common graphical notation and vocabulary, and define a subset ot the UML metamodel (that could possibly be the entire UML metamodel).

- Default Activated Profiles - Indicates profiles which will be applied to all projects.

## Key Mappings

Figure 7-7. The Key Mappings settings tab.

The Key Mappings tab allows you to determine the behavior of particular keys.

- Multiline Editing - This option tells Poseidon whether to use the 'Enter' key to commit an edit or create a new line while entering the name of an element or any other field that accepts multiline text.

## Printing

### Page Setup

Figure 7-8. The Printing Page Setup settings tab

- Size - List of paper sizes.

- Source - Paper drawer or other source Poseidon should use for paper.

- Orientation - Position of the graphic on the page.

- Measurement Units - The units to be used for all specified measurements.

- Margins - Size of the margins on the paper.

- Alignment - Determines the placement of the graphic on the page.

- Gaps of footer and header - The amount of space between the header or footer and the diagram graphics.

### Appearance

Figure 7-9. The Printing Appearance settings tab

- Color Appearance - Sets the print to color or black and white.

- Quality - Caliber of printing to be used. In general, lower quality results in faster printing. Three options are available: Draft, Normal, and High.

- Sides - Sets single or double-sided printing

  - Simplex - single-sided

  - Tumble - double-sided, flip on short edge

  - Duplex - double-sided

- Job Attributes

  - Banner Page - When checked, the print job will be preceded by a page with the job information, such as date, time, and machine name.

  - Priority - Sets the priorty of the print job in the print queue.

  - Job Name - Identifies the job.

  - User Name - Identifies who initiated the print job.

- Watermark - Uses the indicated graphic file as a background for the printed diagrams. The graphic is stretched to fit the background, and is partitioned if the diagram is printed on multiple pages.

  - Transparency - Determines the transparency of the diagrams. A value of 0 indicates that the diagram is completely opaque and the background is not visible. A value of 1 indicates that the diagram is invisible and only the background can be seen.

### Scaling

Figure 7-10. The Printing Scale settings tab

- Fit to Page - Scales the current diagram to fit on exactly one page.

- Scale to Pages - Scales the diagram to fit on the specified number of pages.

- Scale - Scales the diagram to the specified percentage.

  - Fit to Page - Determines the scale for the entire project based on the 'fit to page' scale of the current diagram. For example, if the current diagram fits one page when scaled to 74%, all diagrams will be printed at 74%.

## Diagram Display

Figure 7-11. The Diagram display settings tab.

The Diagram Display tab contains properties regarding the display of information within the diagrams. Currently, most of the properties refer to Class Diagrams only.

- Hide accessor methods - If checked, accessor methods will not be displayed in the operation compartment.

- Hide operation's parameters - If checked, parameters will not be displayed. Operations with parameters will then be displayed like `operation1(...)`.

- Hide private class features - If checked, private attributes and operations will not be displayed.

- Hide package class features - If checked, package attributes and operations will not be displayed.

- Hide protected class features - If checked, protected attributes and operations will not be displayed.

- Hide public class features - If checked, public attributes and operations will not be displayed.

- Add dependent edges automatically - If checked, dependent edges are added to a node which has been created via cut-and-paste or drag-and-drop. No dialog or warning is used.

## Code Generation

Previous to version 2.6, generation settings were contained within their own tabs, accessible from the Generation dialog. Versions 2.6 and later have collected these settings in the central settings dialog, although they are still accessible from the Generation dialog.

### Java

Figure 7-12. The Java Code Generation settings tab

- Generate accessor methods for associations - Creates accessor methods for every attribute that is created. If the attribute has a multiplicity of 1..1 or 0..1, simple getAttribute() and setAttribute() methods are created. For attributes with a finite multiplicity, an array is generated and the accessor methods include addAttribute() and setAttribute(). For an unbounded multiplicity, a Collection is generated, and the appropriate access methods like addAttribute() and removeAttribute() are produced.

  You should unset the check box Generate accessor methods after you have generated accessors once. Otherwise, they would be generated again, and would clutter up your classes. The preferred way to create set/get methods is by adding them in an attribute's Properties tab, and by checking Create accessor methods for new attributes in the dialog Edit-Settings.

- Compiler - Indicates the path to the desired compiler

- Type for unordered associations - Determines how unordered associations will be represented

- Type for ordered associations - Determines how ordered associations will be represented

### UMLdoc4HTML

Figure 7-13. The UMLdoc4HTML settings tab

- Generate authors doc - With this setting disabled, @author tags are skipped in the output.

- External Link Base - The site noted here will be used as the base link for all external links within the document.

  - Set Default - The default points to Sun's Java site, and this site can be restored after modifications by clicking 'Set Default'.

  - Generate External Links - With this option enabled, @link destinations that are external will be activated within the document.

Prev | Home | Next
Overview Pane |  | Project Tab