String recentPathsPref = store.getString(Preferences.RECENT_SHARED_LIBRARY_IMPORT_LOCATIONS);
Deque<String> recentImportPaths = Preferences.decodePaths(recentPathsPref);
- ISessionContext ctx = SimanticsUI.getSessionContext();
+ ISessionContext ctx = Simantics.getSessionContext();
if (ctx == null)
return false;
IProject project = ctx.getHint(ProjectKeys.KEY_PROJECT);
importModel = new ImportPlan(ctx, recentImportPaths);
importModel.project = project;
importModel.selection = selection.getFirstElement();
+ importModel.includeDependencies = store.getBoolean(Preferences.IMPORT_INCLUDE_DEPENDENCIES);
return true;
}
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();