WordWrapInit(IAppWindow appWindow, TextEditorSettingsImpl textEditorSettings, IAppSettings appSettings, IMessageBoxManager messageBoxManager) { this.textEditorSettings = textEditorSettings; this.appSettings = appSettings; this.messageBoxManager = messageBoxManager; appWindow.MainWindowCommands.Add(WordWrap, (s, e) => ToggleWordWrap(), (s, e) => e.CanExecute = true, ModifierKeys.Control | ModifierKeys.Alt, Key.W); }
WordWrapCommand(TextEditorSettingsImpl textEditorSettings) : base(WordWrapInit.WordWrap) { this.textEditorSettings = textEditorSettings; }
HighlightCurrentLineCommand(TextEditorSettingsImpl textEditorSettings) { this.textEditorSettings = textEditorSettings; }
DisplayAppSettingsTabCreator(TextEditorSettingsImpl textEditorSettings, FileTreeViewSettingsImpl fileTreeViewSettings, FileTabManagerSettingsImpl fileTabManagerSettings) { this.textEditorSettings = textEditorSettings; this.fileTreeViewSettings = fileTreeViewSettings; this.fileTabManagerSettings = fileTabManagerSettings; }