Rational Programming Patterns for System z

Using the generation context

The generation context is made available to the handler instance through the IMicroPattern instance. This instance is used as input to the IMicroPatternHandler#process() method.

The generation context gives access to the underlying IGeneratedInfo instance for the currently processed piece of source code. It also gives access to logging facilities, such as the logRecoverableError() and logWarning() methods.

From the micropattern engine point of view, each handler invocation can set a processing status in the context. This status can be IMicroPattern.STATUS_OK, IMicroPattern.WARNING_RAISED, or IMicroPattern.UNRECOVERABLE_ERROR. If an unrecoverable error is detected, the expansion process stops immediately.

The warnings are collected through the expansion process. They are displayed as IMarker instances in the Problems view of the Eclipse Workbench


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)