Class Used in Custom Scan-Phase Adapter
The groovy script for your custom scan-phase adapter must define a class that extends the Code Insight class ScanPhaseAdapter. Use the following syntax to define the class for the custom scan-phase adapter, where <CustomAdaptorClass> represents this class name:
workspace.getInternalWorkspace().addScanPhaseListener(new <CustomAdapterClass>(workspace))
static class <CustomAdapterClass> extends ScanPhaseAdapter{
Workspace localWorkspace;
<CustomAdapterClass>(WorkspaceCover workspaceCover) {
localWorkspace = workspaceCover.getInternalWorkspace();
}
<code for custom scan-phase>
}