package org.plantuml.idea.action.save;

import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.project.DumbAwareAction;
import org.jetbrains.annotations.NotNull;
import org.plantuml.idea.adapter.FacadeImpl;
import org.plantuml.idea.plantuml.ImageFormat;
import org.plantuml.idea.plantuml.SourceExtractor;
import org.plantuml.idea.toolwindow.Zoom;

import java.io.File;
import java.util.Locale;

public class SaveTestAction extends DumbAwareAction {
    @Override
    public void actionPerformed(@NotNull AnActionEvent anActionEvent) {
        for (ImageFormat value : ImageFormat.values()) {
            try {
                new FacadeImpl().renderAndSave(SourceExtractor.TESTDOT, new File("testData/version.puml"), value, "F:\\workspace\\_projekty\\plantuml4idea\\out\\" + value.name() + "." + value.name().toLowerCase(Locale.ROOT), null, new Zoom(100), 0);
            } catch (Throwable e) {
                e.printStackTrace();
            }
        }

    }
}

@@ -213,26 +213,31 @@
 dea.
-adapter.
+external.PlantUml
 Facade
-Impl
 ;%0Aim
@@ -657,22 +657,26 @@
     
-new 
+PlantUml
 Facade
-Impl
+.get
 ().r

build fix