X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.modeling.ui%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2Fui%2Fsharedontology%2Fwizard%2FModelExportWizard.java;h=182c0f6fcb59a2835666687777c6fea5278d8210;hp=37996107eb9d0829fe71cd654a182d86f28d506f;hb=28383a4302178eb8aaac0c0e870fec438dbca935;hpb=0807209928f01e95669af6aeb671110209774bc6 diff --git a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/sharedontology/wizard/ModelExportWizard.java b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/sharedontology/wizard/ModelExportWizard.java index 37996107e..182c0f6fc 100644 --- a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/sharedontology/wizard/ModelExportWizard.java +++ b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/sharedontology/wizard/ModelExportWizard.java @@ -37,7 +37,7 @@ import org.simantics.utils.ui.ExceptionUtils; /** * @author Tuukka Lehtonen - * @author Teemu Mätäsniemi + * @author Teemu Mätäsniemi * @author Antti Villberg */ public class ModelExportWizard extends Wizard implements IExportWizard { @@ -46,8 +46,9 @@ public class ModelExportWizard extends Wizard implements IExportWizard { Deque recentExportPaths; boolean overwrite; + boolean includeDependencies; - ExportPlan exportModel; + ExportPlan exportModel; private boolean readPreferences() { IPreferenceStore store = new ScopedPreferenceStore(InstanceScope.INSTANCE, Activator.PLUGIN_ID); @@ -55,6 +56,7 @@ public class ModelExportWizard extends Wizard implements IExportWizard { String recentPathsPref = store.getString(Preferences.RECENT_SHARED_LIBRARY_EXPORT_LOCATIONS); recentExportPaths = Preferences.decodePaths(recentPathsPref); overwrite = store.getBoolean(Preferences.SHARED_LIBRARY_EXPORT_OVERWRITE); + includeDependencies = store.getBoolean(Preferences.EXPORT_INCLUDE_DEPENDENCIES); return true; } @@ -64,6 +66,7 @@ public class ModelExportWizard extends Wizard implements IExportWizard { store.putValue(Preferences.RECENT_SHARED_LIBRARY_EXPORT_LOCATIONS, Preferences.encodePaths(recentExportPaths)); store.setValue(Preferences.SHARED_LIBRARY_EXPORT_OVERWRITE, exportModel.overwrite); + store.setValue(Preferences.EXPORT_INCLUDE_DEPENDENCIES, exportModel.includeDependencies); if (store.needsSaving()) store.save(); @@ -89,6 +92,7 @@ public class ModelExportWizard extends Wizard implements IExportWizard { exportModel.project = project; exportModel.selection = selection; exportModel.overwrite = overwrite; + exportModel.includeDependencies = includeDependencies; } @Override