Search in sources :

Example 1 with WtpComponentFactory

use of org.gradle.plugins.ide.eclipse.model.internal.WtpComponentFactory in project gradle by gradle.

the class EclipseWtpComponent method mergeXmlComponent.

@SuppressWarnings("unchecked")
public void mergeXmlComponent(WtpComponent xmlComponent) {
    file.getBeforeMerged().execute(xmlComponent);
    ProjectInternal projectInternal = (ProjectInternal) this.project;
    IdeArtifactRegistry ideArtifactRegistry = projectInternal.getServices().get(IdeArtifactRegistry.class);
    ProjectStateRegistry projectRegistry = projectInternal.getServices().get(ProjectStateRegistry.class);
    new WtpComponentFactory(projectInternal, ideArtifactRegistry, projectRegistry).configure(this, xmlComponent);
    file.getWhenMerged().execute(xmlComponent);
}
Also used : ProjectInternal(org.gradle.api.internal.project.ProjectInternal) IdeArtifactRegistry(org.gradle.plugins.ide.internal.IdeArtifactRegistry) ProjectStateRegistry(org.gradle.api.internal.project.ProjectStateRegistry) WtpComponentFactory(org.gradle.plugins.ide.eclipse.model.internal.WtpComponentFactory)

Aggregations

ProjectInternal (org.gradle.api.internal.project.ProjectInternal)1 ProjectStateRegistry (org.gradle.api.internal.project.ProjectStateRegistry)1 WtpComponentFactory (org.gradle.plugins.ide.eclipse.model.internal.WtpComponentFactory)1 IdeArtifactRegistry (org.gradle.plugins.ide.internal.IdeArtifactRegistry)1