X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=org.simantics.g3d%2Fsrc%2Forg%2Fsimantics%2Fg3d%2Fwizard%2FIExportModel.java;fp=org.simantics.g3d%2Fsrc%2Forg%2Fsimantics%2Fg3d%2Fwizard%2FIExportModel.java;h=f313d23d5b7da8e1a39934df180390c2fd95fb98;hb=87b3241ec277ba3d8e414b26186a032c9cdcaeed;hp=0000000000000000000000000000000000000000;hpb=1f0bcd66274375f2278d2e6c486cb28257a5f7b2;p=simantics%2F3d.git diff --git a/org.simantics.g3d/src/org/simantics/g3d/wizard/IExportModel.java b/org.simantics.g3d/src/org/simantics/g3d/wizard/IExportModel.java new file mode 100644 index 00000000..f313d23d --- /dev/null +++ b/org.simantics.g3d/src/org/simantics/g3d/wizard/IExportModel.java @@ -0,0 +1,60 @@ +package org.simantics.g3d.wizard; + +import java.io.File; +import java.util.Deque; + +import org.simantics.db.common.NamedResource; + +public abstract class IExportModel { + + File exportLocation; + NamedResource model; + boolean overwrite; + + Deque recentLocations; + + Object selection; + + public void setModel(NamedResource model) { + this.model = model; + } + + public NamedResource getModel() { + return model; + } + + public void setOverwrite(boolean overwrite) { + this.overwrite = overwrite; + } + + public boolean isOverwrite() { + return overwrite; + } + + + public void setExportLocation(File exportLocation) { + this.exportLocation = exportLocation; + } + + public File getExportLocation() { + return exportLocation; + } + + public abstract boolean usesFile(); + + public Deque getRecentLocations() { + return recentLocations; + } + + public void setRecentLocations(Deque recentLocations) { + this.recentLocations = recentLocations; + } + + public Object getSelection() { + return selection; + } + + public void setSelection(Object selection) { + this.selection = selection; + } +}