public class OpenReportRule
extends AbstractRule
When this rule opens the dialog, the dialog will have a cancel button. If
the user presses the cancel button an OperationCanceledException
will be thrown which will cause the transformation to stop.
Clients should set properties in the transformation context to specify the title and message to be displayed in the dialog. The property ids to use are defined in this rule. If the properties are not set, default values will be used.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OPEN_DIALOG
The property id of the property that specifies if the report dialog
should be opened when the transformation completes.
|
static java.lang.String |
REPORT_DIALOG_MESSAGE
The property id of the property that specifies the message of the report
dialog.
|
static java.lang.String |
REPORT_DIALOG_TITLE
The property id of the property that specifies the title of the report
dialog.
|
static java.lang.String |
SHOW_WARNINGS
The property id of the property that specifies if warnings should be
shown in the report dialog.
|
Constructor and Description |
---|
OpenReportRule()
Constructor
|
OpenReportRule(java.lang.String id,
java.lang.String name)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
createTarget(ITransformContext context)
Opens the reporting dialog.
|
public static final java.lang.String OPEN_DIALOG
public static final java.lang.String SHOW_WARNINGS
public static final java.lang.String REPORT_DIALOG_MESSAGE
public static final java.lang.String REPORT_DIALOG_TITLE