/** * Each Plugin requires a constructor with a Configuration object and a IProjectContext. * * @param configuration * The configuration for this component. * @param projectContext * The project context for this component. The component will be registered. */ public AbstractReaderPlugin(final Configuration configuration, final IProjectContext projectContext) { super(configuration, projectContext); // Register the reader if (projectContext instanceof AnalysisController) { ((AnalysisController) projectContext).registerReader(this); } else { throw new InvalidProjectContextException("Invalid analysis controller in constructor"); } }
/** * Each Plugin requires a constructor with a Configuration object and a IProjectContext. * * @param configuration * The configuration for this component. * @param projectContext * The project context for this component. The component will be registered. */ public AbstractReaderPlugin(final Configuration configuration, final IProjectContext projectContext) { super(configuration, projectContext); // Register the reader if (projectContext instanceof AnalysisController) { ((AnalysisController) projectContext).registerReader(this); } else { throw new InvalidProjectContextException("Invalid analysis controller in constructor"); } }