diff options
Diffstat (limited to 'org.eclipse.jface.text/src/org/eclipse/jface/text/IDocumentAdapterExtension.java')
-rw-r--r-- | org.eclipse.jface.text/src/org/eclipse/jface/text/IDocumentAdapterExtension.java | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/IDocumentAdapterExtension.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/IDocumentAdapterExtension.java new file mode 100644 index 00000000000..d44d18e6afd --- /dev/null +++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/IDocumentAdapterExtension.java @@ -0,0 +1,39 @@ +/********************************************************************** +Copyright (c) 2000, 2002 IBM Corp. and others. +All rights reserved. This program and the accompanying materials +are made available under the terms of the Common Public License v1.0 +which accompanies this distribution, and is available at +http://www.eclipse.org/legal/cpl-v10.html + +Contributors: + IBM Corporation - Initial implementation +**********************************************************************/ + +package org.eclipse.jface.text; + +/** + * Extension interface for <code>IDocumentAdapter</code>. Introduces the concepts of + * batching a series of document changes into one styled text content change. Batching start + * when a client calls <code>stopForwardingDocumentChanges</code>. After that call this document + * adapter does not send out any styled text content change until + * <code>resumeForwardingDocumentChanges</code> is called. Then, it sends out one styled text + * content change that covers all changes that have been applied to the document since calling + * <code>stopForwardingDocumentChanges</code>. + * + * @since 2.0 + */ +public interface IDocumentAdapterExtension { + + /** + * Stops forwarding document changes to the styled text. + */ + void stopForwardingDocumentChanges(); + + /** + * Resumes forwarding document changes to the styled text. + * Also forces the styled text to catch up with all the changes + * that have been applied since <code>stopTranslatingDocumentChanges</code> + * has been called. + */ + void resumeForwardingDocumentChanges(); +} |