コード例 #1
0
 public static void addManifestFileToLayout(
     final @NotNull String path,
     final @NotNull ArtifactEditorContext context,
     final @NotNull CompositePackagingElement<?> element) {
   context.editLayout(
       context.getArtifact(),
       new Runnable() {
         public void run() {
           final VirtualFile file = findManifestFile(element, context, context.getArtifactType());
           if (file == null || !FileUtil.pathsEqual(file.getPath(), path)) {
             PackagingElementFactory.getInstance()
                 .addFileCopy(element, MANIFEST_DIR_NAME, path, MANIFEST_FILE_NAME);
           }
         }
       });
 }
コード例 #2
0
 public void editLayout(Runnable action) {
   myContext.editLayout(myOriginalArtifact, action);
 }