public override void InitializePreference(IPreferenceBuilder builder, IPreferenceFolder folder)
            {
                base.InitializePreference(builder, folder);
                IPreferenceFolder foo = builder.DefineFolderArray(folder, this, "foo");

                _i = builder.DefineIntValue(foo, "i", 10, null);
                _s = builder.DefineStringValue(foo, "s", "bobo", null);
            }
示例#2
0
 public void InitializePreference(IPreferenceBuilder builder, IPreferenceFolder folder) {
     _schemeTemplate = builder.DefineFolderArray(folder, this, "scheme");
     _preferenceFolderArray = folder.FindChildFolderArray("scheme");
     Debug.Assert(_preferenceFolderArray != null);
     _namePreference = builder.DefineStringValue(_schemeTemplate, "name", "", null);
     _promptPreference = builder.DefineStringValue(_schemeTemplate, "prompt", GenericShellScheme.DEFAULT_PROMPT_REGEX, null);
     _backspacePreference = builder.DefineStringValue(_schemeTemplate, "backspace", "", null);
     _commandListPreference = builder.DefineStringValue(_schemeTemplate, "commands", "", null);
 }
示例#3
0
 public void InitializePreference(IPreferenceBuilder builder, IPreferenceFolder folder)
 {
     _schemeTemplate        = builder.DefineFolderArray(folder, this, "scheme");
     _preferenceFolderArray = folder.FindChildFolderArray("scheme");
     Debug.Assert(_preferenceFolderArray != null);
     _namePreference        = builder.DefineStringValue(_schemeTemplate, "name", "", null);
     _promptPreference      = builder.DefineStringValue(_schemeTemplate, "prompt", GenericShellScheme.DEFAULT_PROMPT_REGEX, null);
     _backspacePreference   = builder.DefineStringValue(_schemeTemplate, "backspace", "", null);
     _commandListPreference = builder.DefineStringValue(_schemeTemplate, "commands", "", null);
 }
示例#4
0
        public void InitializePreference(IPreferenceBuilder builder, IPreferenceFolder folder)
        {
            _rootPreference = folder;

            _moduleDefinitionTemplate = builder.DefineFolderArray(folder, this, "modules");
            _pathPreferenceTemplate   = builder.DefineStringValue(_moduleDefinitionTemplate, "path", "", null);
            _titlePreferenceTemplate  = builder.DefineStringValue(_moduleDefinitionTemplate, "title", "", null);
            _additionalAssembliesPreferenceTemplate = builder.DefineStringValue(_moduleDefinitionTemplate, "additionalAssemblies", "", null);
            _tracePreferenceTemplate = builder.DefineBoolValue(_moduleDefinitionTemplate, "trace", false, null);
        }
示例#5
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        public void InitializePreference(IPreferenceBuilder builder, IPreferenceFolder folder)
        {
            ITerminalEmulatorOptions terminalOptions = ConnectProfilePlugin.Instance.TerminalEmulatorService.TerminalEmulatorOptions;

            _rootPreference    = folder;
            _profileDefinition = builder.DefineFolderArray(folder, this, "profile");
            _hostName          = builder.DefineStringValue(_profileDefinition, "hostName", "", null);
            _protocol          = builder.DefineStringValue(_profileDefinition, "protocol", "", null);
            _port                   = builder.DefineIntValue(_profileDefinition, "port", 0, null);
            _authType               = builder.DefineStringValue(_profileDefinition, "authType", "", null);
            _keyFile                = builder.DefineStringValue(_profileDefinition, "keyFile", "", null);
            _userName               = builder.DefineStringValue(_profileDefinition, "userName", "", null);
            _password               = builder.DefineStringValue(_profileDefinition, "password", "", null);
            _autoLogin              = builder.DefineBoolValue(_profileDefinition, "autoLogin", false, null);
            _loginPrompt            = builder.DefineStringValue(_profileDefinition, "loginPrompt", "", null);
            _passwordPrompt         = builder.DefineStringValue(_profileDefinition, "passwordPrompt", "", null);
            _execCommand            = builder.DefineStringValue(_profileDefinition, "execCommand", "", null);
            _suUserName             = builder.DefineStringValue(_profileDefinition, "suUserName", "", null);
            _suPassword             = builder.DefineStringValue(_profileDefinition, "suPassword", "", null);
            _suType                 = builder.DefineStringValue(_profileDefinition, "suType", "", null);
            _charCode               = builder.DefineStringValue(_profileDefinition, "charCode", "", null);
            _newLine                = builder.DefineStringValue(_profileDefinition, "newLine", "", null);
            _telnetNewLine          = builder.DefineBoolValue(_profileDefinition, "telnetNewLine", true, null);
            _terminalType           = builder.DefineStringValue(_profileDefinition, "terminalType", "", null);
            _terminalFontColor      = new ColorPreferenceItem(builder.DefineStringValue(_profileDefinition, "terminalFontColor", terminalOptions.TextColor.Name, null), KnownColor.White);
            _terminalBGColor        = new ColorPreferenceItem(builder.DefineStringValue(_profileDefinition, "terminalBGColor", terminalOptions.BGColor.Name, null), KnownColor.Black);
            _terminalESCColor0      = new ColorPreferenceItem(builder.DefineStringValue(_profileDefinition, "terminalESCColor0", terminalOptions.EscapeSequenceColorSet[0].Color.Name, null), KnownColor.Black);
            _terminalESCColor1      = new ColorPreferenceItem(builder.DefineStringValue(_profileDefinition, "terminalESCColor1", terminalOptions.EscapeSequenceColorSet[1].Color.Name, null), KnownColor.Red);
            _terminalESCColor2      = new ColorPreferenceItem(builder.DefineStringValue(_profileDefinition, "terminalESCColor2", terminalOptions.EscapeSequenceColorSet[2].Color.Name, null), KnownColor.Green);
            _terminalESCColor3      = new ColorPreferenceItem(builder.DefineStringValue(_profileDefinition, "terminalESCColor3", terminalOptions.EscapeSequenceColorSet[3].Color.Name, null), KnownColor.Yellow);
            _terminalESCColor4      = new ColorPreferenceItem(builder.DefineStringValue(_profileDefinition, "terminalESCColor4", terminalOptions.EscapeSequenceColorSet[4].Color.Name, null), KnownColor.Blue);
            _terminalESCColor5      = new ColorPreferenceItem(builder.DefineStringValue(_profileDefinition, "terminalESCColor5", terminalOptions.EscapeSequenceColorSet[5].Color.Name, null), KnownColor.Magenta);
            _terminalESCColor6      = new ColorPreferenceItem(builder.DefineStringValue(_profileDefinition, "terminalESCColor6", terminalOptions.EscapeSequenceColorSet[6].Color.Name, null), KnownColor.Cyan);
            _terminalESCColor7      = new ColorPreferenceItem(builder.DefineStringValue(_profileDefinition, "terminalESCColor7", terminalOptions.EscapeSequenceColorSet[7].Color.Name, null), KnownColor.White);
            _terminalAsciiFont      = builder.DefineStringValue(_profileDefinition, "terminalAsciiFont", terminalOptions.Font.Name, null);
            _terminalCjkFont        = builder.DefineStringValue(_profileDefinition, "terminalCjkFont", terminalOptions.CJKFont.Name, null);
            _terminalFontSize       = builder.DefineIntValue(_profileDefinition, "terminalFontSize", (int)terminalOptions.Font.Size, null);
            _terminalClearType      = builder.DefineBoolValue(_profileDefinition, "terminalClearType", terminalOptions.UseClearType, null);
            _terminalBoldStyle      = builder.DefineBoolValue(_profileDefinition, "terminalBoldStyle", terminalOptions.EnableBoldStyle, null);
            _terminalForceBoldStyle = builder.DefineBoolValue(_profileDefinition, "terminalForceBoldStyle", terminalOptions.ForceBoldStyle, null);
            _terminalBGImage        = builder.DefineStringValue(_profileDefinition, "terminalBGImage", terminalOptions.BackgroundImageFileName, null);
            _terminalBGImagePos     = builder.DefineStringValue(_profileDefinition, "terminalBGImagePos", terminalOptions.ImageStyle.ToString(), null);
            _commandSendInterval    = builder.DefineIntValue(_profileDefinition, "commandSendInterval", ConnectProfileStruct.DEFAULT_CMD_SEND_INTERVAL, null);
            _promptRecvTimeout      = builder.DefineIntValue(_profileDefinition, "promptRecvTimeout", ConnectProfileStruct.DEFAULT_PROMPT_RECV_TIMEOUT, null);
            _profileItemColor       = new ColorPreferenceItem(builder.DefineStringValue(_profileDefinition, "profileItemColor", "Black", null), KnownColor.Black);
            _description            = builder.DefineStringValue(_profileDefinition, "description", "", null);
        }
        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));
        }
示例#7
0
 public override void InitializePreference(IPreferenceBuilder builder, IPreferenceFolder folder)
 {
     base.InitializePreference(builder, folder);
     IPreferenceFolder foo = builder.DefineFolderArray(folder, this, "foo");
     _i = builder.DefineIntValue(foo, "i", 10, null);
     _s = builder.DefineStringValue(foo, "s", "bobo", null);
 }
示例#8
0
        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));
        }
        /// <summary>
        /// コンストラクタ
        /// </summary>
        public void InitializePreference(IPreferenceBuilder builder, IPreferenceFolder folder)
        {
            ITerminalEmulatorOptions terminalOptions = ConnectProfilePlugin.Instance.TerminalEmulatorService.TerminalEmulatorOptions;

            _rootPreference = folder;
            _profileDefinition = builder.DefineFolderArray(folder, this, "profile");
            _hostName = builder.DefineStringValue(_profileDefinition, "hostName", "", null);
            _protocol = builder.DefineStringValue(_profileDefinition, "protocol", "", null);
            _port = builder.DefineIntValue(_profileDefinition, "port", 0, null);
            _authType = builder.DefineStringValue(_profileDefinition, "authType", "", null);
            _keyFile = builder.DefineStringValue(_profileDefinition, "keyFile", "", null);
            _userName = builder.DefineStringValue(_profileDefinition, "userName", "", null);
            _password = builder.DefineStringValue(_profileDefinition, "password", "", null);
            _autoLogin = builder.DefineBoolValue(_profileDefinition, "autoLogin", false, null);
            _loginPrompt = builder.DefineStringValue(_profileDefinition, "loginPrompt", "", null);
            _passwordPrompt = builder.DefineStringValue(_profileDefinition, "passwordPrompt", "", null);
            _execCommand = builder.DefineStringValue(_profileDefinition, "execCommand", "", null);
            _suUserName = builder.DefineStringValue(_profileDefinition, "suUserName", "", null);
            _suPassword = builder.DefineStringValue(_profileDefinition, "suPassword", "", null);
            _suType = builder.DefineStringValue(_profileDefinition, "suType", "", null);
            _charCode = builder.DefineStringValue(_profileDefinition, "charCode", "", null);
            _newLine = builder.DefineStringValue(_profileDefinition, "newLine", "", null);
            _telnetNewLine = builder.DefineBoolValue(_profileDefinition, "telnetNewLine", true, null);
            _terminalType = builder.DefineStringValue(_profileDefinition, "terminalType", "", null);
            _terminalFontColor = new ColorPreferenceItem(builder.DefineStringValue(_profileDefinition, "terminalFontColor", terminalOptions.TextColor.Name, null), KnownColor.White);
            _terminalBGColor = new ColorPreferenceItem(builder.DefineStringValue(_profileDefinition, "terminalBGColor", terminalOptions.BGColor.Name, null), KnownColor.Black);
            _terminalESCColor0 = new ColorPreferenceItem(builder.DefineStringValue(_profileDefinition, "terminalESCColor0", terminalOptions.EscapeSequenceColorSet[0].Color.Name, null), KnownColor.Black);
            _terminalESCColor1 = new ColorPreferenceItem(builder.DefineStringValue(_profileDefinition, "terminalESCColor1", terminalOptions.EscapeSequenceColorSet[1].Color.Name, null), KnownColor.Red);
            _terminalESCColor2 = new ColorPreferenceItem(builder.DefineStringValue(_profileDefinition, "terminalESCColor2", terminalOptions.EscapeSequenceColorSet[2].Color.Name, null), KnownColor.Green);
            _terminalESCColor3 = new ColorPreferenceItem(builder.DefineStringValue(_profileDefinition, "terminalESCColor3", terminalOptions.EscapeSequenceColorSet[3].Color.Name, null), KnownColor.Yellow);
            _terminalESCColor4 = new ColorPreferenceItem(builder.DefineStringValue(_profileDefinition, "terminalESCColor4", terminalOptions.EscapeSequenceColorSet[4].Color.Name, null), KnownColor.Blue);
            _terminalESCColor5 = new ColorPreferenceItem(builder.DefineStringValue(_profileDefinition, "terminalESCColor5", terminalOptions.EscapeSequenceColorSet[5].Color.Name, null), KnownColor.Magenta);
            _terminalESCColor6 = new ColorPreferenceItem(builder.DefineStringValue(_profileDefinition, "terminalESCColor6", terminalOptions.EscapeSequenceColorSet[6].Color.Name, null), KnownColor.Cyan);
            _terminalESCColor7 = new ColorPreferenceItem(builder.DefineStringValue(_profileDefinition, "terminalESCColor7", terminalOptions.EscapeSequenceColorSet[7].Color.Name, null), KnownColor.White);
            _terminalAsciiFont = builder.DefineStringValue(_profileDefinition, "terminalAsciiFont", terminalOptions.Font.Name, null);
            _terminalCjkFont = builder.DefineStringValue(_profileDefinition, "terminalCjkFont", terminalOptions.CJKFont.Name, null);
            _terminalFontSize = builder.DefineIntValue(_profileDefinition, "terminalFontSize", (int)terminalOptions.Font.Size, null);
            _terminalClearType = builder.DefineBoolValue(_profileDefinition, "terminalClearType", terminalOptions.UseClearType, null);
            _terminalBoldStyle = builder.DefineBoolValue(_profileDefinition, "terminalBoldStyle", terminalOptions.EnableBoldStyle, null);
            _terminalForceBoldStyle = builder.DefineBoolValue(_profileDefinition, "terminalForceBoldStyle", terminalOptions.ForceBoldStyle, null);
            _terminalBGImage = builder.DefineStringValue(_profileDefinition, "terminalBGImage", terminalOptions.BackgroundImageFileName, null);
            _terminalBGImagePos = builder.DefineStringValue(_profileDefinition, "terminalBGImagePos", terminalOptions.ImageStyle.ToString(), null);
            _commandSendInterval = builder.DefineIntValue(_profileDefinition, "commandSendInterval", ConnectProfileStruct.DEFAULT_CMD_SEND_INTERVAL, null);
            _promptRecvTimeout = builder.DefineIntValue(_profileDefinition, "promptRecvTimeout", ConnectProfileStruct.DEFAULT_PROMPT_RECV_TIMEOUT, null);
            _profileItemColor = new ColorPreferenceItem(builder.DefineStringValue(_profileDefinition, "profileItemColor", "Black", null), KnownColor.Black);
            _description = builder.DefineStringValue(_profileDefinition, "description", "", null);
        }
示例#10
0
        public void InitializePreference(IPreferenceBuilder builder, IPreferenceFolder folder)
        {
            _rootPreference = folder;

            _moduleDefinitionTemplate = builder.DefineFolderArray(folder, this, "modules");
            _pathPreferenceTemplate = builder.DefineStringValue(_moduleDefinitionTemplate, "path", "", null);
            _titlePreferenceTemplate = builder.DefineStringValue(_moduleDefinitionTemplate, "title", "", null);
            _additionalAssembliesPreferenceTemplate = builder.DefineStringValue(_moduleDefinitionTemplate, "additionalAssemblies", "", null);
            _tracePreferenceTemplate = builder.DefineBoolValue(_moduleDefinitionTemplate, "trace", false, null);
        }