public void InitializePreference(IPreferenceBuilder builder, IPreferenceFolder folder) { _originalFolder = folder; _originalOptions = new MRUOptions(_originalFolder); _originalOptions.DefineItems(builder); MRUList mruList = MRUPlugin.Instance.MRUList; builder.DefineLooseNode(folder, mruList, "list"); }
public void InitializePreference(IPreferenceBuilder builder, IPreferenceFolder folder) { IIntPreferenceItem limitCount = builder.DefineIntValue(folder, "limitcount", 5, PreferenceValidatorUtil.PositiveIntegerValidator); //上限値 builder.DefineLooseNode(folder, _mruList, "list"); }
public void InitializePreference(IPreferenceBuilder builder, IPreferenceFolder folder) { _keyBindNode = builder.DefineLooseNode(folder, _keyBind, "keybinds"); folder.AddChangeListener(this); }