![]() ![]() |
||||
|
||||
The
action classes AaxlReadOnlyAction and AaxlModifyAction automatically provide an
ErrorReporter. This ErrorReporter will associate AadlObjectMarkers markers with
the
resource that contains the object on which the action is invoked. These classes also provide
convenience methods for reporting that can be used in the doAaxlAction method without
explicitly naming a reporter; reportError, reportWarning, reportInfo, and reportDone.
The
last takes a model object and the plug-in name as parameters to report completion of the action.
An
example:
In
addition, the same reporter can be made available to the case methods of the switch. This
is achieved by creating the switch as subclass of AadlReportingProcessingSwitch, a
subclass of the AadlProcessingSiwtch. It takes a reporter as parameter. The action reporter
is accessible to the switch creation call in the doAaxlAction through the getErrorReporter
method. The AadlReportingProcessingSwitch provides convenience methods for reporting
that can be used in the case methods without explicitly naming a reporter. |
||||