-package org.simantics.export.core.manager;\r
-\r
-import java.util.ArrayList;\r
-import java.util.List;\r
-\r
-import org.simantics.export.core.ExportContext;\r
-\r
-public class ExportPlan {\r
-\r
- public String label = "Export action";\r
- \r
- /** A list of actions */\r
- List<ExportAction> actions = new ArrayList<ExportAction>();\r
- \r
- /** Expected outcome */\r
- List<Content> manifest = new ArrayList<Content>(); \r
- \r
- public void addAction(ExportAction action) {\r
- actions.add( action );\r
- }\r
- \r
- public void addToManifest(Content content) {\r
- manifest.add( content );\r
- }\r
- \r
- public int totalWork(ExportContext ctx) {\r
- int total = 0;\r
- for (ExportAction action : actions)\r
- total += action.work(ctx);\r
- return total;\r
- }\r
- \r
- public List<Content> getManifest() {\r
- return manifest;\r
- }\r
-\r
-}\r
+package org.simantics.export.core.manager;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.simantics.export.core.ExportContext;
+
+public class ExportPlan {
+
+ public String label = "Export action";
+
+ /** A list of actions */
+ List<ExportAction> actions = new ArrayList<ExportAction>();
+
+ /** Expected outcome */
+ List<Content> manifest = new ArrayList<Content>();
+
+ public void addAction(ExportAction action) {
+ actions.add( action );
+ }
+
+ public void addToManifest(Content content) {
+ manifest.add( content );
+ }
+
+ public int totalWork(ExportContext ctx) {
+ int total = 0;
+ for (ExportAction action : actions)
+ total += action.work(ctx);
+ return total;
+ }
+
+ public List<Content> getManifest() {
+ return manifest;
+ }
+
+}