Example #1
0
 public UncommentLinesCommand(ActiproEditor editor, IViewService viewService)
     : base(editor)
 {
     this.viewService = viewService;
 }
Example #2
0
 private bool ClampToLength(ref int offset)
 {
     return(ActiproEditor.Clamp(ref offset, Math.Max(0, this.editor.Document.Length - 1)));
 }
Example #3
0
 private bool ClampToLineCount(ref int line)
 {
     return(ActiproEditor.Clamp(ref line, Math.Max(0, this.editor.Document.Lines.Count - 1)));
 }
Example #4
0
 public GoToLineCommand(ActiproEditor editor)
     : base(editor)
 {
 }
Example #5
0
 public UndoCommand(ActiproEditor editor)
     : base(editor)
 {
 }
Example #6
0
 protected ActiproCommand(ActiproEditor actiproEditor)
 {
     this.editor = actiproEditor.Editor;
 }