X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.modeling.ui%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2Fui%2Fsharedontology%2Fwizard%2FModelImportWizard.java;h=23d3419845993d6c9e1e16109c7444b4926cea88;hb=0475b9e2a9331ef8f3dcd61567e5d071ae8ef561;hp=bb0d6f68a7958832f4221bf1738a3523cd34df1b;hpb=e6ef90c0db8ca20f622e43ffe0a0cf3fb859e356;p=simantics%2Fplatform.git 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..23d341984 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 @@ -56,7 +56,7 @@ public class ModelImportWizard extends Wizard implements IImportWizard { String recentPathsPref = store.getString(Preferences.RECENT_SHARED_LIBRARY_IMPORT_LOCATIONS); Deque recentImportPaths = Preferences.decodePaths(recentPathsPref); - ISessionContext ctx = SimanticsUI.getSessionContext(); + ISessionContext ctx = Simantics.getSessionContext(); if (ctx == null) return false; IProject project = ctx.getHint(ProjectKeys.KEY_PROJECT); @@ -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();