Beispiel #1
0
        private void InitialiseQuickList(ISettingsStorageMountPoint mountPoint, IMainScopePoint quickList)
        {
            var settings = new QuickListSettings {
                Name = quickList.QuickListTitle
            };

            SetIndexedKey(mountPoint, settings, new GuidIndex(quickList.QuickListUID));
        }
Beispiel #2
0
 public GodotQuickListDefaultSettings(ILogger logger, ISettingsSchema settingsSchema,
                                      GodotProjectScopeCategoryUIProvider projectScopeProvider,
                                      GodotScopeCategoryUiProvider filesScopeProvider)
     : base(settingsSchema, logger)
 {
     myLogger           = logger;
     mySettingsSchema   = settingsSchema;
     myProjectMainPoint = projectScopeProvider.MainPoint;
     myFilesMainPoint   = filesScopeProvider.MainPoint;
 }
 public UnityQuickListDefaultSettings(ILogger logger, ISettingsSchema settingsSchema,
                                      UnityProjectScopeCategoryUIProvider projectScopeProvider,
                                      UnityScopeCategoryUIProvider filesScopeProvider)
     : base(logger, settingsSchema)
 {
     myLogger           = logger;
     mySettingsSchema   = settingsSchema;
     myProjectMainPoint = projectScopeProvider.MainPoint;
     myFilesMainPoint   = filesScopeProvider.MainPoint;
 }
Beispiel #4
0
        private void AddToQuickList(ISettingsStorageMountPoint mountPoint, IMainScopePoint quickList, string name, int position, string guid)
        {
            var quickListKey = mySettingsSchema.GetIndexedKey <QuickListSettings>();
            var entryKey     = mySettingsSchema.GetIndexedKey <EntrySettings>();
            var dictionary   = new Dictionary <SettingsKey, object>
            {
                { quickListKey, new GuidIndex(quickList.QuickListUID) },
                { entryKey, new GuidIndex(new Guid(guid)) }
            };

            if (!ScalarSettingsStoreAccess.IsIndexedKeyDefined(mountPoint, entryKey, dictionary, null, myLogger))
            {
                ScalarSettingsStoreAccess.CreateIndexedKey(mountPoint, entryKey, dictionary, null, myLogger);
            }
            SetValue(mountPoint, (EntrySettings e) => e.EntryName, name, dictionary);
            SetValue(mountPoint, (EntrySettings e) => e.Position, position, dictionary);
        }