Mono.TextEditor.TextDocument.BeginAtomicUndo C# (CSharp) Method

BeginAtomicUndo() private method

private BeginAtomicUndo ( OperationType operationType = OperationType.Undefined ) : void
operationType OperationType
return void
		internal void BeginAtomicUndo (OperationType operationType = OperationType.Undefined)
		{
			currentAtomicUndoOperationType.Push (operationType);
			if (atomicUndoLevel == 0) {
				if (this.syntaxMode != null && !SuppressHighlightUpdate)
					Mono.TextEditor.Highlighting.SyntaxModeService.WaitUpdate (this);
			}
			if (currentAtomicOperation == null) {
				Debug.Assert (atomicUndoLevel == 0); 
				currentAtomicOperation = new AtomicUndoOperation (operationType);
				OnBeginUndo ();
			}
			atomicUndoLevel++;
		}

Usage Example

Ejemplo n.º 1
0
			public UndoGroup (TextDocument doc, OperationType operationType)
			{
				if (doc == null)
					throw new ArgumentNullException ("doc");
				doc.BeginAtomicUndo (operationType);
				this.doc = doc;
			}
All Usage Examples Of Mono.TextEditor.TextDocument::BeginAtomicUndo
TextDocument