1 /******************************************************************************* 2 * Copyright (c) 2000, 2006 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 package org.eclipse.jface.text; 12 13 /** 14 * Extension interface to 15 * {@link org.eclipse.jface.text.IDocumentPartitioningListener}. 16 * <p> 17 * 18 * Replaces the previous notification mechanisms by introducing an explicit 19 * document partitioning changed event. 20 * 21 * @see org.eclipse.jface.text.DocumentPartitioningChangedEvent 22 * @since 3.0 23 */ 24 public interface IDocumentPartitioningListenerExtension2 { 25 26 /** 27 * Signals the change of document partitionings. 28 * <p> 29 * This method replaces 30 * {@link IDocumentPartitioningListener#documentPartitioningChanged(IDocument)} 31 * and 32 * {@link IDocumentPartitioningListenerExtension#documentPartitioningChanged(IDocument, IRegion)} 33 * 34 * @param event the event describing the change 35 * @see IDocument#addDocumentPartitioningListener(IDocumentPartitioningListener) 36 */ 37 void documentPartitioningChanged(DocumentPartitioningChangedEvent event); 38 } 39