12aad9a06c4bad4a21b49c48b7d4915e8111d7e4
[phpeclipse.git] /
1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package net.sourceforge.phpdt.internal.ui.text.java;
12
13 import net.sourceforge.phpdt.core.dom.CompilationUnit;
14
15 import org.eclipse.core.runtime.IProgressMonitor;
16
17 /**
18  * Interface of an object listening to Java reconciling.
19  * 
20  * @since 3.0
21  */
22 public interface IJavaReconcilingListener {
23
24         /**
25          * Called before reconciling is started.
26          */
27         void aboutToBeReconciled();
28
29         /**
30          * Called after reconciling has been finished.
31          * 
32          * @param ast
33          *            the compilation unit AST or <code>null</code> if the working
34          *            copy was consistent or reconciliation has been cancelled
35          * @param forced
36          *            <code>true</code> iff this reconciliation was forced
37          * @param progressMonitor
38          *            the progress monitor
39          */
40         void reconciled(CompilationUnit ast, boolean forced,
41                         IProgressMonitor progressMonitor);
42 }