new version with WorkingCopy Management
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / core / IJavaElementRequestor.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2003 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.core;
12
13 import net.sourceforge.phpdt.core.IField;
14 import net.sourceforge.phpdt.core.IMethod;
15 import net.sourceforge.phpdt.core.IPackageFragment;
16 import net.sourceforge.phpdt.core.IType;
17
18 /**
19  * This interface is used by IRequestorNameLookup. As results
20  * are found by IRequestorNameLookup, they are reported to this
21  * interface. An IJavaElementRequestor is able to cancel
22  * at any time (that is, stop receiving results), by responding
23  * <code>true</code> to <code>#isCancelled</code>.
24  */
25 public interface IJavaElementRequestor {
26 public void acceptField(IField field);
27 //public void acceptInitializer(IInitializer initializer);
28 public void acceptMemberType(IType type);
29 public void acceptMethod(IMethod method);
30 public void acceptPackageFragment(IPackageFragment packageFragment);
31 public void acceptType(IType type);
32 /**
33  * Returns <code>true</code> if this IJavaElementRequestor does
34  * not want to receive any more results.
35  */
36 boolean isCanceled();
37 }