KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > java > source > engine > BuildProgress


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-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19 package org.netbeans.modules.java.source.engine;
20
21 /**
22  * Displays Builder status to user.
23  */

24 public interface BuildProgress {
25     /**
26      * Called at start of build.
27      */

28     void buildStarted();
29
30     /**
31      * Called before source file directory expansion starts.
32      */

33     void sourceExpansionStarting();
34
35     /**
36      * Called after source file directory expansion finishes.
37      */

38     void sourceExpansionFinished();
39
40     /**
41      * Sets the total number of source files to be parsed.
42      */

43     void setTotalSourceFiles(int count);
44     
45     /**
46      * Reports when a file has finished parsing.
47      */

48     void fileParsed();
49     
50     /**
51      * Called when parsing finishes.
52      */

53     void parsingFinished();
54     
55     /**
56      * Sets the number of trees to enter into the symbol table, as well
57      * as the number of compiler phases that will be run.
58      */

59     void setTotalTrees(int count);
60     
61     /**
62      * Reports when a tree has been entered.
63      */

64     void treeEntered();
65     
66     /**
67      * Reports when enter phase is completed.
68      */

69     void enterFinished();
70     
71     /**
72      * Sets the number of classes to be attributed.
73      */

74     void setTotalClasses(int count);
75     
76     /**
77      * Reports when a class has finished being attributed.
78      */

79     void classAttributed();
80     
81     /**
82      * Reports when the attribution phase is finished.
83      */

84     void attributionFinished();
85     
86     /**
87      * Called when attribution/building finishes.
88      */

89     void buildFinished(int errors, int warnings, long elapsedMilliseconds);
90     
91     /**
92      * Called after build to dispose of any monitor resources.
93      */

94     void dispose();
95 }
96
Popular Tags