/** * Creates a new instance of the class {@link AnalysisController} but uses the given instance of @link{Project} to construct the analysis. * * @param project * The project instance for the analysis. * @param classLoader * The class loader used for the initializing. * @throws NullPointerException * If the project is null. * @throws AnalysisConfigurationException * If the given project could not be loaded. */ public AnalysisController(final MIProject project, final ClassLoader classLoader) throws NullPointerException, AnalysisConfigurationException { if (project == null) { throw new NullPointerException("Can not load project null."); } else { this.globalConfiguration = this.validateConfiguration(new Configuration(this.getDefaultConfiguration())); this.loadFromModelProject(project, classLoader); this.projectName = project.getName(); } }
int x = 0; for (final MIPlugin plugin : this.mProject.getPlugins()) { if (plugin instanceof MIReader) { final MIReader reader = (MIReader) plugin; for (final MIRepository repo : this.mProject.getRepositories()) { final mxCell cell = this.createRepository(repo, x++); mapRepository2Graph.put(repo, cell); for (final MIPlugin outputPlugin : this.mProject.getPlugins()) { final Map<String, mxCell> mapOutputPorts2Graph = mapPluginOutputPorts2Graph.get(outputPlugin); // NOPMD (no concurrent access) for (final MIOutputPort outputPort : outputPlugin.getOutputPorts()) {
for (final MIDependency mDepdendency : mProject.getDependencies()) { final MIDependency mDepdendencyCopy = factory.createDependency(); mDepdendencyCopy.setFilePath(mDepdendency.getFilePath()); for (final MIRepository mRepository : mProject.getRepositories()) { final EList<MIPlugin> mPlugins = mProject.getPlugins(); for (final MIProperty mProperty : mProject.getProperties()) { globalConfiguration.setProperty(mProperty.getName(), mProperty.getValue());
for (final MIDependency mDepdendency : mProject.getDependencies()) { final MIDependency mDepdendencyCopy = factory.createDependency(); mDepdendencyCopy.setFilePath(mDepdendency.getFilePath()); for (final MIRepository mRepository : mProject.getRepositories()) { final EList<MIPlugin> mPlugins = mProject.getPlugins(); for (final MIProperty mProperty : mProject.getProperties()) { globalConfiguration.setProperty(mProperty.getName(), mProperty.getValue());
mProject.setName(projectName); mProject.getDependencies().addAll(dependencies); mRepository.setClassname(repository.getClass().getName()); mRepository.getProperties().addAll(MetaModelHandler.convertProperties(repository.getCurrentConfiguration(), factory)); mProject.getRepositories().add(mRepository); ((MIFilter) mPlugin).getInputPorts().add(mInputPort); mProject.getPlugins().add(mPlugin); mProperty.setValue((String) property.getValue()); mProject.getProperties().add(mProperty);
int x = 0; for (final MIPlugin plugin : this.mProject.getPlugins()) { if (plugin instanceof MIReader) { final MIReader reader = (MIReader) plugin; for (final MIRepository repo : this.mProject.getRepositories()) { final mxCell cell = this.createRepository(repo, x++); mapRepository2Graph.put(repo, cell); for (final MIPlugin outputPlugin : this.mProject.getPlugins()) { final Map<String, mxCell> mapOutputPorts2Graph = mapPluginOutputPorts2Graph.get(outputPlugin); // NOPMD (no concurrent access) for (final MIOutputPort outputPort : outputPlugin.getOutputPorts()) {
/** * Creates a new instance of the class {@link AnalysisController} but uses the given instance of @link{Project} to construct the analysis. * * @param project * The project instance for the analysis. * @param classLoader * The class loader used for the initializing. * @throws NullPointerException * If the project is null. * @throws AnalysisConfigurationException * If the given project could not be loaded. */ public AnalysisController(final MIProject project, final ClassLoader classLoader) throws NullPointerException, AnalysisConfigurationException { if (project == null) { throw new NullPointerException("Can not load project null."); } else { this.globalConfiguration = this.validateConfiguration(new Configuration(this.getDefaultConfiguration())); this.loadFromModelProject(project, classLoader); this.projectName = project.getName(); } }
mProject.setName(projectName); mProject.getDependencies().addAll(dependencies); mRepository.setClassname(repository.getClass().getName()); mRepository.getProperties().addAll(MetaModelHandler.convertProperties(repository.getCurrentConfiguration(), factory)); mProject.getRepositories().add(mRepository); ((MIFilter) mPlugin).getInputPorts().add(mInputPort); mProject.getPlugins().add(mPlugin); mProperty.setValue((String) property.getValue()); mProject.getProperties().add(mProperty);