metasim     00/11/27 21:06:37

  Modified:    src/antidote/org/apache/tools/ant/gui AntEditor.java
                        ProjectProxy.java SourceEditor.java
                        TargetMonitor.java
  Log:
  Changed AntEditor.getAppContext() to getContext() to be consistent
  with other classes.
  
  Revision  Changes    Path
  1.3       +2 -2      
jakarta-ant/src/antidote/org/apache/tools/ant/gui/AntEditor.java
  
  Index: AntEditor.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-ant/src/antidote/org/apache/tools/ant/gui/AntEditor.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AntEditor.java    2000/11/06 12:52:42     1.2
  +++ AntEditor.java    2000/11/28 05:06:33     1.3
  @@ -60,7 +60,7 @@
    * Abstract base class for an "editor", which is really anything that
    * can send or receive events, or edit or view the model.
    * 
  - * @version $Revision: 1.2 $ 
  + * @version $Revision: 1.3 $ 
    * @author Simeon Fitch 
    */
   public abstract class AntEditor extends JPanel {
  @@ -87,7 +87,7 @@
         * 
         * @return Application context.
         */
  -    public AppContext getAppContext() {
  +    public AppContext getContext() {
           return _context;
       }
        /** 
  
  
  
  1.9       +2 -2      
jakarta-ant/src/antidote/org/apache/tools/ant/gui/ProjectProxy.java
  
  Index: ProjectProxy.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-ant/src/antidote/org/apache/tools/ant/gui/ProjectProxy.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- ProjectProxy.java 2000/11/23 16:37:55     1.8
  +++ ProjectProxy.java 2000/11/28 05:06:34     1.9
  @@ -72,7 +72,7 @@
    * (or other external datamodel) occurs. This class also provides various
    * views into the data model, such as TreeModel, Documenet, etc.
    * 
  - * @version $Revision: 1.8 $ 
  + * @version $Revision: 1.9 $ 
    * @author Simeon Fitch 
    */
   public class ProjectProxy {
  @@ -285,7 +285,7 @@
       /** Forwards selection events to the event bus. */
       private class SelectionForwarder implements TreeSelectionListener {
           public void valueChanged(TreeSelectionEvent e) {
  -            _context.getEventBus().postEvent(new ElementSelectionEvent(
  +            
_context.getEventBus().postEvent(ElementSelectionEvent.createEvent(
                   _context, _selections.getSelectedElements()));
           }
       }
  
  
  
  1.3       +2 -2      
jakarta-ant/src/antidote/org/apache/tools/ant/gui/SourceEditor.java
  
  Index: SourceEditor.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-ant/src/antidote/org/apache/tools/ant/gui/SourceEditor.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SourceEditor.java 2000/11/15 21:25:33     1.2
  +++ SourceEditor.java 2000/11/28 05:06:34     1.3
  @@ -64,7 +64,7 @@
   /*
    * AntEditor for the XML source. XXX Stubbed version.
    *
  - * @version $Revision: 1.2 $ 
  + * @version $Revision: 1.3 $ 
    * @author Simeon Fitch 
    */
   class SourceEditor extends AntEditor {
  @@ -106,7 +106,7 @@
            * it should be cancelled.
            */
           public boolean eventPosted(EventObject event) {
  -            ProjectProxy project = getAppContext().getProject();
  +            ProjectProxy project = getContext().getProject();
   
               _text.setDocument(project == null ? new PlainDocument() :
                                 project.getDocument());
  
  
  
  1.3       +2 -2      
jakarta-ant/src/antidote/org/apache/tools/ant/gui/TargetMonitor.java
  
  Index: TargetMonitor.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-ant/src/antidote/org/apache/tools/ant/gui/TargetMonitor.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TargetMonitor.java        2000/11/15 21:25:33     1.2
  +++ TargetMonitor.java        2000/11/28 05:06:35     1.3
  @@ -65,7 +65,7 @@
   /**
    * A widget for displaying the currently selected targets.
    * 
  - * @version $Revision: 1.2 $ 
  + * @version $Revision: 1.3 $ 
    * @author Simeon Fitch 
    */
   public class TargetMonitor extends AntEditor {
  @@ -131,7 +131,7 @@
               ElementSelectionEvent e = (ElementSelectionEvent) event;
               String text = _defText;
   
  -            ProjectProxy p =  getAppContext().getProject();
  +            ProjectProxy p =  getContext().getProject();
               if(p != null) {
                   ElementSelectionModel selections = p.getTreeSelectionModel();
                   ACSTargetElement[] targets = selections.getSelectedTargets();
  
  
  

Reply via email to