コード例 #1
0
 @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;
 }
コード例 #2
0
 public ArtifactManagerImpl(Project project) {
   myProject = project;
   myModel = new ArtifactManagerModel();
   myResolvingContext = new DefaultPackagingElementResolvingContext(myProject);
   ((ArtifactPointerManagerImpl) ArtifactPointerManager.getInstance(project))
       .setArtifactManager(this);
 }
コード例 #3
0
ファイル: ArtifactSourceItem.java プロジェクト: jexp/idea2
 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;
     }
   };
 }