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 module dwtx.jface.text.reconciler.IReconcilingStrategyExtension;
|
|
14
|
131
|
15 import dwtx.jface.text.reconciler.IReconciler; // packageimport
|
|
16 import dwtx.jface.text.reconciler.DirtyRegionQueue; // packageimport
|
|
17 import dwtx.jface.text.reconciler.IReconcilingStrategy; // packageimport
|
|
18 import dwtx.jface.text.reconciler.AbstractReconcileStep; // packageimport
|
|
19 import dwtx.jface.text.reconciler.MonoReconciler; // packageimport
|
|
20 import dwtx.jface.text.reconciler.IReconcileStep; // packageimport
|
|
21 import dwtx.jface.text.reconciler.AbstractReconciler; // packageimport
|
|
22 import dwtx.jface.text.reconciler.Reconciler; // packageimport
|
|
23 import dwtx.jface.text.reconciler.IReconcilableModel; // packageimport
|
|
24 import dwtx.jface.text.reconciler.DirtyRegion; // packageimport
|
|
25 import dwtx.jface.text.reconciler.IReconcileResult; // packageimport
|
|
26 import dwtx.jface.text.reconciler.IReconcilerExtension; // packageimport
|
|
27
|
|
28
|
129
|
29 import dwt.dwthelper.utils;
|
|
30
|
|
31 import dwtx.core.runtime.IProgressMonitor;
|
|
32
|
|
33
|
|
34 /**
|
|
35 * Extends {@link dwtx.jface.text.reconciler.IReconcilingStrategy}
|
|
36 * with the following functions:
|
|
37 * <ul>
|
|
38 * <li>usage of a progress monitor</li>
|
|
39 * <li>initial reconciling step: if a reconciler runs as periodic activity in the background, this
|
|
40 * methods offers the reconciler a chance for initializing its strategies and achieving a
|
|
41 * reconciled state before the periodic activity starts.</li>
|
|
42 * </ul>
|
|
43 *
|
|
44 * @since 2.0
|
|
45 */
|
|
46 public interface IReconcilingStrategyExtension {
|
|
47
|
|
48 /**
|
|
49 * Tells this reconciling strategy with which progress monitor
|
|
50 * it will work. This method will be called before any other
|
|
51 * method and can be called multiple times.
|
|
52 *
|
|
53 * @param monitor the progress monitor with which this strategy will work
|
|
54 */
|
|
55 void setProgressMonitor(IProgressMonitor monitor);
|
|
56
|
|
57 /**
|
|
58 * Called only once in the life time of this reconciling strategy.
|
|
59 */
|
|
60 void initialReconcile();
|
|
61 }
|