Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes

de.fraunhofer.isst.axbench.dialogs.transaction.AXLMessageDialog Class Reference

This class implements an aXLang message dialog. More...

List of all members.

Public Member Functions

 AXLMessageDialog (Shell theParentShell, String newTitle, IAXLOperation newMessageStore)
 Constructor.

Static Public Member Functions

static int openDialog (Shell theParentShell, String sTitle, IAXLOperation newMessageStore)
 Convenience method for opening and showing a dialog.

Protected Member Functions

void configureShell (Shell theShell)
 Configures shell (sets title).
void createButtonsForButtonBar (Composite theParent)
 Adds buttons to this dialog's button bar.
Control createDialogArea (Composite theParent)
 Creates and returns the contents of the upper part of this dialog (above the button bar).
Point getInitialSize ()
 Returns the initial size to use for the dialog.

Private Attributes

String sTitle = null
 title of the dialog
IAXLOperation theMessageStore = null
 message store of the dialog

Static Private Attributes

static final int DIALOG_HEIGHT = 400
 standard height of the dialog
static final int DIALOG_WIDTH = 600
 standard width of the dialog
static final int ICON_HEIGHT = 64
 standard height of one icon
static final int TEXT_HEIGHT = 100
 standard height of one text element

Detailed Description

This class implements an aXLang message dialog.

The dialog has three parts: for messages, warnings, and errors. The parts are shown only if they are needed.

Author:
ekleinod
Version:
0.7.1
Since:
0.7.0

Constructor & Destructor Documentation

de.fraunhofer.isst.axbench.dialogs.transaction.AXLMessageDialog.AXLMessageDialog ( Shell  theParentShell,
String  newTitle,
IAXLOperation  newMessageStore 
)

Constructor.

Parameters:
theParentShell parent shell
newTitle title of the dialog
newMessageStore message store (aXLang operation)

Member Function Documentation

void de.fraunhofer.isst.axbench.dialogs.transaction.AXLMessageDialog.configureShell ( Shell  theShell  )  [protected]

Configures shell (sets title).

Parameters:
theShell shell to configure
See also:
org.eclipse.jface.window.Window.configureShell(org.eclipse.swt.widgets.Shell)
void de.fraunhofer.isst.axbench.dialogs.transaction.AXLMessageDialog.createButtonsForButtonBar ( Composite  theParent  )  [protected]

Adds buttons to this dialog's button bar.

This method is overwritten for only the OK button should be visible.

Parameters:
theParent the button bar composite
Control de.fraunhofer.isst.axbench.dialogs.transaction.AXLMessageDialog.createDialogArea ( Composite  theParent  )  [protected]

Creates and returns the contents of the upper part of this dialog (above the button bar).

Parameters:
theParent the parent composite to contain the dialog area
Returns:
the dialog area control
Point de.fraunhofer.isst.axbench.dialogs.transaction.AXLMessageDialog.getInitialSize (  )  [protected]

Returns the initial size to use for the dialog.

Returns:
the initial size of the dialog
static int de.fraunhofer.isst.axbench.dialogs.transaction.AXLMessageDialog.openDialog ( Shell  theParentShell,
String  sTitle,
IAXLOperation  newMessageStore 
) [static]

Convenience method for opening and showing a dialog.

Parameters:
theParentShell parent shell
sTitle title of the dialog
newMessageStore message store (aXLang operation)
Returns:
the return code

Member Data Documentation

standard height of the dialog

standard width of the dialog

standard height of one icon

title of the dialog

standard height of one text element

message store of the dialog