metasim 01/01/12 11:02:36
Modified: src/antidote/org/apache/tools/ant/gui/core
ActionManager.java AppContext.java
Log:
Added ability to add new targets.
Revision Changes Path
1.4 +3 -2
jakarta-ant/src/antidote/org/apache/tools/ant/gui/core/ActionManager.java
Index: ActionManager.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/antidote/org/apache/tools/ant/gui/core/ActionManager.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ActionManager.java 2001/01/04 21:11:12 1.3
+++ ActionManager.java 2001/01/12 19:02:32 1.4
@@ -63,7 +63,7 @@
* Manager of antidote actions. Receives its configuration from the action
* ResourceBundle.
*
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
* @author Simeon Fitch
*/
public class ActionManager {
@@ -232,7 +232,8 @@
for(int i = 0; i < actionIDs.length; i++) {
AntAction action = (AntAction) _actions.get(actionIDs[i]);
if(action != null) {
- retval.add(action);
+ AbstractButton button = retval.add(action);
+ addNiceStuff(button, action);
}
}
1.5 +10 -1
jakarta-ant/src/antidote/org/apache/tools/ant/gui/core/AppContext.java
Index: AppContext.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/antidote/org/apache/tools/ant/gui/core/AppContext.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- AppContext.java 2001/01/08 19:43:30 1.4
+++ AppContext.java 2001/01/12 19:02:34 1.5
@@ -63,7 +63,7 @@
* A container for the state information for the application. Provides
* a centeralized place to gain access to resources and data.
*
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
* @author Simeon Fitch
*/
public class AppContext {
@@ -158,6 +158,15 @@
*/
public SelectionManager getSelectionManager() {
return _selectionManager;
+ }
+
+ /**
+ * Determine if debug mode is turned on.
+ *
+ * @return True if in debug mode, false otherwise.
+ */
+ public boolean isDebugOn() {
+ return _resources.getBoolean("debug");
}
}