129
|
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 * Port to the D programming language:
|
|
11 * Frank Benoit <benoit@tionex.de>
|
|
12 *******************************************************************************/
|
|
13
|
|
14 module dwtx.jface.text.IDocumentPartitioningListenerExtension;
|
|
15
|
|
16 import dwt.dwthelper.utils;
|
|
17
|
|
18
|
|
19 /**
|
|
20 * Extension interface for
|
|
21 * {@link dwtx.jface.text.IDocumentPartitioningListener}.
|
|
22 * <p>
|
|
23 * Replaces the original notification mechanism by telling the listener the
|
|
24 * minimal region that comprises all partitioning changes.
|
|
25 *
|
|
26 * @see dwtx.jface.text.IDocumentPartitionerExtension
|
|
27 * @since 2.0
|
|
28 */
|
|
29 public interface IDocumentPartitioningListenerExtension {
|
|
30
|
|
31 /**
|
|
32 * The partitioning of the given document changed in the given region.
|
|
33 * <p>
|
|
34 * In version 3.0, this method has been replaced with
|
|
35 * {@link IDocumentPartitioningListenerExtension2#documentPartitioningChanged(DocumentPartitioningChangedEvent)}.
|
|
36 *
|
|
37 * @param document the document whose partitioning changed
|
|
38 * @param region the region in which the partitioning changed
|
|
39 * @see IDocumentPartitioningListenerExtension2#documentPartitioningChanged(DocumentPartitioningChangedEvent)
|
|
40 * @see IDocument#addDocumentPartitioningListener(IDocumentPartitioningListener)
|
|
41 */
|
|
42 void documentPartitioningChanged(IDocument document, IRegion region);
|
|
43 }
|