Removed
Link Here
|
1 |
/* |
2 |
* The contents of this file are subject to the terms of the Common Development |
3 |
* and Distribution License (the License). You may not use this file except in |
4 |
* compliance with the License. |
5 |
* |
6 |
* You can obtain a copy of the License at http://www.netbeans.org/cddl.html |
7 |
* or http://www.netbeans.org/cddl.txt. |
8 |
* |
9 |
* When distributing Covered Code, include this CDDL Header Notice in each file |
10 |
* and include the License file at http://www.netbeans.org/cddl.txt. |
11 |
* If applicable, add the following below the CDDL Header, with the fields |
12 |
* enclosed by brackets [] replaced by your own identifying information: |
13 |
* "Portions Copyrighted [year] [name of copyright owner]" |
14 |
* |
15 |
* The Original Software is NetBeans. The Initial Developer of the Original |
16 |
* Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun |
17 |
* Microsystems, Inc. All Rights Reserved. |
18 |
*/ |
19 |
|
20 |
package org.netbeans.api.java.source; |
21 |
|
22 |
import java.util.EventListener; |
23 |
|
24 |
/** |
25 |
* Listener for changes in {@link ClassIndex}. |
26 |
* <P> |
27 |
* When attached to a {ClassIndex} it listens for addition, |
28 |
* removal and modification of declared types. |
29 |
* <P> |
30 |
* |
31 |
* @see ClassIndex#addClassIndexListener |
32 |
* @author Tomas Zezula |
33 |
*/ |
34 |
public interface ClassIndexListener extends EventListener { |
35 |
|
36 |
/** |
37 |
* Called when the new declared types are added |
38 |
* into the {@link ClassIndex} |
39 |
* @param event specifying the added types |
40 |
*/ |
41 |
public void typesAdded (TypesEvent event); |
42 |
|
43 |
/** |
44 |
* Called when declared types are removed |
45 |
* from the {@link ClassIndex} |
46 |
* @param event specifying the removed types |
47 |
*/ |
48 |
public void typesRemoved (TypesEvent event); |
49 |
|
50 |
/** |
51 |
* Called when some declared types are changed. |
52 |
* @param event specifying the changed types |
53 |
*/ |
54 |
public void typesChanged (TypesEvent event); |
55 |
|
56 |
/** |
57 |
* Called when new roots are added |
58 |
* into the {@link ClassPath} for which the {@link ClassIndex} |
59 |
* was created. |
60 |
* @param event specifying the added roots |
61 |
*/ |
62 |
public void rootsAdded (RootsEvent event); |
63 |
|
64 |
/** |
65 |
* Called when root are removed |
66 |
* from the {@link ClassPath} for which the {@link ClassIndex} |
67 |
* was created. |
68 |
* @param event specifying the removed roots |
69 |
*/ |
70 |
public void rootsRemoved (RootsEvent event); |
71 |
|
72 |
} |