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