Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /antelope/src/ise/antelope/common/

antelope
Discussion topic

Back to topic list

CVS update: /antelope/src/ise/antelope/common/

Author danson
Full name Dale Anson
Date 2004-08-29 20:25:19 PDT
Message User: danson
Date: 04/08/29 20:25:19

Modified:
 /antelope/src/ise/an​telope/common/
  CommonHelper.java, AntelopePanel.java

Log:
 Fixed.
 
 Issue number: 24
 Obtained from:
 Submitted by:
 Reviewed by:

File Changes:

Directory: /antelope/src/ise/an​telope/common/
====================​====================​=====

File [changed]: CommonHelper.java
Url: http://antelope.tigr​is.org/source/browse​/antelope/src/ise/an​telope/common/Common​Helper.java?r1=1.3​&r2=1.4
Delta lines: +9 -1
-------------------
--- CommonHelper.java 8 May 2004 02:42:55 -0000 1.3
+++ CommonHelper.java 30 Aug 2004 03:25:19 -0000 1.4
@@ -7,7 +7,7 @@
  * Objects that want to manipulate AntelopePanel must implement this
  * interface.
  *
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
  */
 public interface CommonHelper extends ActionListener {
 
@@ -72,6 +72,14 @@
     * @return The run button action
     */
    public ActionListener getRunButtonAction();
+
+ /**
+ * The action that the helper would like to have happen when the
+ * Trace button is clicked.
+ *
+ * @return The trace button action
+ */
+ public ActionListener getTraceButtonAction();
 
    /**
     * Opens the given file in an editor.

File [changed]: AntelopePanel.java
Url: http://antelope.tigr​is.org/source/browse​/antelope/src/ise/an​telope/common/Antelo​pePanel.java?r1=1.19​&r2=1.20
Delta lines: +8 -5
-------------------
--- AntelopePanel.java 30 Aug 2004 02:56:38 -0000 1.19
+++ AntelopePanel.java 30 Aug 2004 03:25:19 -0000 1.20
@@ -1,4 +1,4 @@
-// $Id: AntelopePanel.java,v 1.19 2004/08/30 02:56:38 danson Exp $
+// $Id: AntelopePanel.java,v 1.20 2004/08/30 03:25:19 danson Exp $
 /*
  * Based on the Apache Software License, Version 1.1
  *
@@ -68,7 +68,7 @@
  * progress.
  *
  * @author Dale Anson, danson at germane-software dot com
- * @version $Revision: 1.19 $
+ * @version $Revision: 1.20 $
  * @created July 23, 2002
  */
 public class AntelopePanel extends JPanel implements Constants {
@@ -231,9 +231,8 @@
             }
         );
         if ( _helper != null ) {
- ActionListener al = _helper.getRunButtonAction();
- if ( al != null )
- _run_btn.addActionListener( al );
+ if ( _helper.getRunButtonAction() != null )
+ _run_btn.addActionListener( _helper.getRunButtonAction() );
         }
         _run_btn.setSelected( true );
 
@@ -251,6 +250,10 @@
                 }
             }
         );
+ if ( _helper != null ) {
+ if (_helper.getTraceButtonAction() != null)
+ _trace_btn.addAction​Listener(_helper.get​TraceButtonAction())​;
+ }
 
         _edit_btn = new JToggleButton();
         _edit_btn.setMargin( ins );




--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: cvs-unsubscribe@ante​lope.tigris.org
For additional commands, e-mail: cvs-help at antelope dot tigris dot org

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /antelope/src/ise/antelope/common/ danson Dale Anson 2004-08-29 20:25:19 PDT
Messages per page: