public ScriptToolTipProvider(ScriptTextEditorControl Editor) {
			mEditor = Editor;
			mEditor.ActiveTextAreaControl.TextArea.ToolTipRequest += OnToolTipRequest;
		}
Beispiel #2
0
		private void DoEditAction(ScriptTextEditorControl editor, GodLesZ.eAthenaEditor.Library.Actions.IEditAction action) {
			if (editor != null && action != null) {
				var area = editor.ActiveTextAreaControl.TextArea;
				editor.BeginUpdate();
				try {
					lock (editor.Document) {
						action.Execute(area);
						if (area.SelectionManager.HasSomethingSelected && area.AutoClearSelection /*&& caretchanged*/) {
							if (area.Document.TextEditorProperties.DocumentSelectionMode == DocumentSelectionMode.Normal) {
								area.SelectionManager.ClearSelection();
							}
						}
					}
				} finally {
					editor.EndUpdate();
					area.Caret.UpdateCaretPosition();
				}
			}
		}