@NotNull @Override public List<DeploymentSource> createArtifactDeploymentSources( @NotNull Project project, @NotNull Collection<? extends Artifact> artifacts) { List<DeploymentSource> sources = new ArrayList<>(); ArtifactPointerManager pointerManager = ArtifactPointerManager.getInstance(project); for (Artifact artifact : artifacts) { sources.add(createArtifactDeploymentSource(pointerManager.createPointer(artifact))); } return sources; }
public ArtifactManagerImpl(Project project) { myProject = project; myModel = new ArtifactManagerModel(); myResolvingContext = new DefaultPackagingElementResolvingContext(myProject); ((ArtifactPointerManagerImpl) ArtifactPointerManager.getInstance(project)) .setArtifactManager(this); }
public SourceItemPresentation createPresentation(@NotNull ArtifactEditorContext context) { final ArtifactPointer pointer = ArtifactPointerManager.getInstance(context.getProject()).create(myArtifact); return new DelegatedSourceItemPresentation(new ArtifactElementPresentation(pointer, context)) { @Override public int getWeight() { return SourceItemWeights.ARTIFACT_WEIGHT; } }; }