Java Reference
In-Depth Information
Preferences
Although no limit exists for the number and type of preferences you can add, a
number of default preferences are provided. Those discussed here are available
to all generated editors.
Each diagram has its own root entry in the Preferences dialog, although a
family of diagrams, such as the UML, should probably be placed under a com-
mon root. In the root of the diagram preferences are global options for enabling
connection handles, pop-up bars, animated zoom and layout, and anti-aliasing,
as seen in Figure 10-17.
Figure 10-17
Diagram general preferences
In the Appearance category, options for colors and fonts are available, as
seen in Figure 10-18. Note that changes made to default colors for a diagram
apply to subsequently created elements only. Default connection style is set in the
Connections category, with the options being Oblique and Rectilinear. This page
is not shown because it's simply a drop-down list.
The Pathmaps page enables you to define a set of path variables for the dia-
gram, as seen in Figure 10-19. Those registered using the org.eclipse.gmf.
runtime.emf.core.PathMap extension-point are shown with a lock icon
because you cannot modify them.
Printing itself is supported only by the GMF runtime for the Windows plat-
form; printing preferences are available for all diagrams. The contents of this
preference page are the same as the page setup options discussed in Section
10.1.1, “Diagram Menu.”
Search WWH ::




Custom Search