1 package org.simantics.export.core.manager;
3 import java.util.ArrayList;
6 import org.simantics.export.core.ExportContext;
8 public class ExportPlan {
10 public String label = "Export action";
12 /** A list of actions */
13 List<ExportAction> actions = new ArrayList<ExportAction>();
15 /** Expected outcome */
16 List<Content> manifest = new ArrayList<Content>();
18 public void addAction(ExportAction action) {
19 actions.add( action );
22 public void addToManifest(Content content) {
23 manifest.add( content );
26 public int totalWork(ExportContext ctx) {
28 for (ExportAction action : actions)
29 total += action.work(ctx);
33 public List<Content> getManifest() {