@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;
 }
Exemplo n.º 2
0
 public ArtifactManagerImpl(Project project) {
   myProject = project;
   myModel = new ArtifactManagerModel();
   myResolvingContext = new DefaultPackagingElementResolvingContext(myProject);
   ((ArtifactPointerManagerImpl) ArtifactPointerManager.getInstance(project))
       .setArtifactManager(this);
 }
Exemplo n.º 3
0
 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;
     }
   };
 }