//IPreferencesupplier public void InitializePreference(IPreferenceBuilder builder, IPreferenceFolder folder) { _originalFolder = folder; _originalOptions = new TerminalOptions(folder); _originalOptions.DefineItems(builder); //defaultRenderProfileのリセットをする _originalFolder.AddChangeListener(this); }
public void InitializePreference(IPreferenceBuilder builder, IPreferenceFolder folder) { _originalFolder = folder; _adapter = new CoreServicePreferenceAdapter(folder); _adapter.DefineItems(builder); AboutBoxUtil.InitPreference(builder, folder); _windowTemplatePreference = builder.DefineFolderArray(folder, this, "mainwindow"); _windowArrayPreference = folder.FindChildFolderArray("mainwindow"); Debug.Assert(_windowArrayPreference != null); _windowPositionPreference = builder.DefineStringValue(_windowTemplatePreference, "position", "", null); _windowSplitFormatPreference = builder.DefineStringValue(_windowTemplatePreference, "format", "", null); _toolBarFormatPreference = builder.DefineStringValue(_windowTemplatePreference, "toolbar", "", null); _tabRowCountPreference = builder.DefineIntValue(_windowTemplatePreference, "tabrowcount", 1, null); //add listener folder.AddChangeListener(new ChangeListener(_adapter)); }
public void InitializePreference(IPreferenceBuilder builder, IPreferenceFolder folder) { _keyBindNode = builder.DefineLooseNode(folder, _keyBind, "keybinds"); folder.AddChangeListener(this); }