1 /******************************************************************************* 2 * Copyright (c) 2000, 2005 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 *******************************************************************************/ 11 12 package org.eclipse.jface.text; 13 14 15 /** 16 * Extension interface for 17 * {@link org.eclipse.jface.text.IDocumentPartitioningListener}. 18 * <p> 19 * Replaces the original notification mechanism by telling the listener the 20 * minimal region that comprises all partitioning changes. 21 * 22 * @see org.eclipse.jface.text.IDocumentPartitionerExtension 23 * @since 2.0 24 */ 25 public interface IDocumentPartitioningListenerExtension { 26 27 /** 28 * The partitioning of the given document changed in the given region. 29 * <p> 30 * In version 3.0, this method has been replaced with 31 * {@link IDocumentPartitioningListenerExtension2#documentPartitioningChanged(DocumentPartitioningChangedEvent)}. 32 * 33 * @param document the document whose partitioning changed 34 * @param region the region in which the partitioning changed 35 * @see IDocumentPartitioningListenerExtension2#documentPartitioningChanged(DocumentPartitioningChangedEvent) 36 * @see IDocument#addDocumentPartitioningListener(IDocumentPartitioningListener) 37 */ 38 void documentPartitioningChanged(IDocument document, IRegion region); 39 } 40