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%2FModelImportWizard.java;h=011ce12ff538f1764d194ba5c2ef74c644382bc5;hp=bb0d6f68a7958832f4221bf1738a3523cd34df1b;hb=28383a4302178eb8aaac0c0e870fec438dbca935;hpb=0807209928f01e95669af6aeb671110209774bc6 diff --git a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/sharedontology/wizard/ModelImportWizard.java b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/sharedontology/wizard/ModelImportWizard.java index bb0d6f68a..011ce12ff 100644 --- a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/sharedontology/wizard/ModelImportWizard.java +++ b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/sharedontology/wizard/ModelImportWizard.java @@ -66,6 +66,7 @@ public class ModelImportWizard extends Wizard implements IImportWizard { importModel = new ImportPlan(ctx, recentImportPaths); importModel.project = project; importModel.selection = selection.getFirstElement(); + importModel.includeDependencies = store.getBoolean(Preferences.IMPORT_INCLUDE_DEPENDENCIES); return true; } @@ -74,6 +75,7 @@ public class ModelImportWizard extends Wizard implements IImportWizard { IPersistentPreferenceStore store = new ScopedPreferenceStore(InstanceScope.INSTANCE, Activator.PLUGIN_ID); store.putValue(Preferences.RECENT_SHARED_LIBRARY_IMPORT_LOCATIONS, Preferences.encodePaths(importModel.recentLocations)); + store.setValue(Preferences.IMPORT_INCLUDE_DEPENDENCIES, importModel.includeDependencies); if (store.needsSaving()) store.save();