4.2 Guidesigner Overview

Once you have opened the XMAa file with Guidesigner you will probably see the following eclipse editor and views:

eclipes views

Figure 4.13. eclipes views


Don't panic if you can't see some of the views. You only have to define the correspondent views within the Window.ShowView menu.

In the context of the XMA Guidesigner the views have the following tasks:

Package View:(Package View) package explorer from eclipse. Is used to navigate in the project resources like xmi or java files.

Outline View:(Outline View) hierarchical view from eclipse. It is used to navigate the page and widget hierarchy of the component. Furthermore there are context menus for widget manipulation.

Preview:(PreView) is responsible to draw the widgets of the actual selected Dialog- or Embedded page.

Property View:(Property View) property view from eclipse. It is used to edit properties of the actual selected widget or page.

Problem Viewer:(Problem View) problem viewer from eclipse. It is used to mark inconsistencies in the actual component.

Task Viewer:(Task View) task viewer from eclipse. It is used to mark TODOs in the generated code.

Save a XMA File works just like saving Java files or other resources in the eclipse workbench.

The Guidesinger tries to synchronize the selection state between the Outline View and the PreViewer. This means that the item selected in Outline is also marked in the Previewer, if it has a correspondent UI object. if more than one item in the Outline View is selected, only the correspondent first element is marked in PreViewer.

The Guidesigner uses the eclipse package explorer to navigate in the project resources like xml or java files.

The information of a XMA component will be stored in an XML file as XMI document. The component element is the root element of the XMI document. You can find more about XMI document in EMF User's Guide chapter 2.4. .

The Guidesigner uses the eclipse Outline View to navigate the page and widget hierarchy of the XMA component. The Outline View always contains the hole content of the underlying XMA components XMI document. You find a detailed description of the possible content of an XMA component in Topic Guidesign Model(Reference A: Guidesigner Model)

Furthermore there are exist a context menus for creating, copying, pasting, moving and deleting the document's elements.


If a new content object is created, reasonable default values are set wherever possible. Moreover in some cases there is more content created than the selected menu item shows. For example creating a new text widget also creates a correspondent label widget. Another example is when creating a page, the correspondent page composite is also created. All Guidesinger creation processes are dialog or wizard supported.

There are two possibilities to create new content with the outline contextmenu:

The following table describes possible parent / child relations:

ParentChildPurpose
ComponentDialogPagecorresponds to Dialogwindows
 Embedded PagePage that may be reused from other Dialogs in other Components
 AppShellAn application main window with menus and tasks (Application Shell)
CompositePush ButtonCorresponds to Command Buttons
 CompositeIs a pane that can recursively hold other widgets (controls)
 TextCorresponds to Text input fields
 SashformCorresponds the control that is used in the Windows explorer to separate the folder tree from the detail list
 TabFolderCorresponds the Notebook control
 GroupCorresponds to Group boxes and is used to
 ChechBoxMay hold true/false conditions
 Radio ButtonCorresponds a on/off switch. Used in Groups you may mapp Domains with few values
 LabelUsed to create read only Text ore Images.
 TreeTree Control like the folder tree in the Windows explorer.
 TableUsed to show spreadsheets
 SeperatorHorizontal/vertical Lines. Often used to simplify Formlayouts
 DomainComboUsed to show value ranges in a drop down list
 ListUsed to show value ranges in a list widget
 Hidden WidgetHas no UI Control and only used to transport further information with the Widget Models
 XMA ContainerIs used to hold embedded components
 SimpleComboUsed to show value ranges in a dropdown list without fill support on the API
 Scrolled CompositeIs a pane that can recursively hold other widgets which are shown with scroo bars at the right and bottom
 DatePickerDatepicker control from Windows
 XMAGridspecial widget. see Grid documentation for further information
TableTable columnscolumns in the Table
TabFolderNotebookPageCorresponds to a single Tab in the Folder.
SashFormLeft PartShall contain widgets like Composite.
 Right PartShall contain widgets like Composite./TD>

Table 4.1. parent child relationships


See theGuidesign Model's(Reference A: Guidesigner Model)part-of associations to learn more about possible childs under a destinct tree item.

The Preview is shown in the eclipse editor pane. For every opened xma file there will be an autonomous preview like for java files exists autonomous editors. A distinct Preview is activated through mouse click the appropriate tab.


The Guidesinger tries to synchronize the selection state between the Outline View and the PreViewer. This means that the item selected in Outline is also marked in the Previewer, if it has a correspondent UI object. if more than one item in the Outline View is selected, only the correspondent first element is marked in PreViewer.

Selection in the the preview is also supported. In the Preview only content could be selected, that directly is mapped to a SWT object. In the preview it is also possible to edit the selctable widgets. You will find the same actions as in the Outline View(Outline View) context menu:


The Preview doesn't show the later generated dialog. It only shows the underlying dialog composite. Therefore no title bar and no dialog margin are shown. The page composite shown in the Preview is resized in accordance to the given dialog height/width, such that the display in the Guidesigner suit the size in the generated Dialog.

The Preview also doesn't show hidden widget ore hidden table columns.

It is possible to start 2 actions from the action bar of eclipse that are only available if the PreView has the focus:

It is als possible to start all actions from the eclipse action bar an from the PreView context menu from the eclipse menu:



The Property view supports editing attributes (properties) of existing content objects in the xma file. Learn more about the content in a XMA file in the Model description topic(Reference A: Guidesigner Model).

A single property value in the property view could have five different property editors:

  • Boolean type editor: You can only select true or false. Example: YN Border property of different widgets

  • Numeric type editor: You can only input numeric values. Example: height property of XMA Dialog

  • String type editor: You can input strings. Example: Label property of XMA label

  • Combo for selection type: You can select a adequate value. Example: Align Text property of XMA Text

  • Edit Dialog: A dialog appears, where you can enter further information. Example: FormData Dialog of different widgets

In the context of the Guidesigner the Problem View indicates error conditions, which prevents the Generator from generating the appropriate java code. After saving a XMA file a constancy checker is started, which may write tasks in the task list. Double click a problem selects the relating content object in the Outline View and the Preview.


In the context of the Guidesigner the Task View indicates tasks what have to be considered.