The ErrorReporter
provided by default can be overwritten. For example, it may be desirable
in a generation or model transformation plug-in to associate the markers with the AADL model
being generated rather than the original modelas is the case in the instance model generator.
In this case we can create an ErrorReporter for the resource of the target model and use it as
parameter when an instance of the plug-in switch is created. It can also be used for reporting
messages in the doAaxlAction method. Note, however, that the resource being generated is
not open in an editor, nor is it the current selection in the Eclipse Navigatoras a result the
markers are not right away visible in the Problem view.