metasim 01/01/08 11:43:52
Modified: src/antidote/org/apache/tools/ant/gui/modules/console
BuildConsole.java
Log:
Added *internal* support multiple projects, and generalized the selection
state mechanism.
Revision Changes Path
1.4 +3 -3
jakarta-ant/src/antidote/org/apache/tools/ant/gui/modules/console/BuildConsole.java
Index: BuildConsole.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/antidote/org/apache/tools/ant/gui/modules/console/BuildConsole.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- BuildConsole.java 2001/01/04 21:11:33 1.3
+++ BuildConsole.java 2001/01/08 19:43:50 1.4
@@ -68,7 +68,7 @@
/**
* Logging console display.
*
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
* @author Simeon Fitch
*/
public class BuildConsole extends AntModule {
@@ -153,7 +153,7 @@
* it should be cancelled.
*/
public boolean eventPosted(EventObject event) {
- if(event instanceof NewProjectEvent) {
+ if(event instanceof ProjectSelectedEvent) {
clearDisplay();
return true;
}
@@ -215,7 +215,7 @@
*/
public boolean accept(EventObject event) {
return event instanceof AntBuildEvent ||
- event instanceof NewProjectEvent;
+ event instanceof ProjectSelectedEvent;
}
}