Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /antelope/src/docs/manual/, /antelope/src/ise/antelope/common/, /antelope/src/ise/library/

antelope
Discussion topic

Back to topic list

CVS update: /antelope/src/docs/manual/, /antelope/src/ise/antelope/common/, /antelope/src/ise/library/

Author danson
Full name Dale Anson
Date 2004-02-23 21:47:14 PST
Message User: danson
Date: 04/02/23 21:47:14

Modified:
 /antelope/src/docs/manual/
  antelope_guide.xml, style.css, tasks.xml
 /antelope/src/ise/an​telope/common/
  AntelopeProperties.java, version.txt
 /antelope/src/ise/library/
  UserPreferences.java

Log:
 general checkin
 

File Changes:

Directory: /antelope/src/docs/manual/
====================​=================

File [changed]: antelope_guide.xml
Url: http://antelope.tigr​is.org/source/browse​/antelope/src/docs/m​anual/antelope_guide​.xml?r1=1.1&r2=1​.2
Delta lines: +13 -0
--------------------
--- antelope_guide.xml 15 Feb 2004 22:19:41 -0000 1.1
+++ antelope_guide.xml 24 Feb 2004 05:47:12 -0000 1.2
@@ -12,6 +12,7 @@
 </bookinfo>
 
 <chapter id="legal">
+@@style@@
     <title>Legalit​ies</title>
     <para>
     Per the Apache license (see below):
@@ -136,6 +137,7 @@
 </chapter>
 
 <chapter id="intro">
+@@style@@
 <title>Introdu​ction</title>
 
 <para>
@@ -178,6 +180,7 @@
 </chapter>
 
 <chapter id="installation">
+@@style@@
 <title>Install​ation</title>
 <section id="install_ant">
 <title>Install Ant</title>
@@ -282,6 +285,7 @@
 </chapter>
 
 <chapter id="requirements">
+@@style@@
 <title>Require​ments</title>
 
 <para>
@@ -304,6 +308,7 @@
 </chapter>
 
 <chapter id="runningantelope">
+@@style@@
 <title>Running Antelope</title>
 
 <section id="options">
@@ -601,6 +606,7 @@
 </chapter>
 
 <chapter id="runningtargets">
+@@style@@
 
 <title>Running Ant Targets</title>
 
@@ -624,6 +630,7 @@
 </chapter>
 
 <chapter id="propertydisplay">
+@@style@@
 <title>Displaying Ant Properties</title>
 <para>
 The "Properties" button displays the current properties and references known to Ant from the current build file and the system environment. This is handy for determining exactly what Ant thinks a specific property value is. "Properties" and "References" are for viewing only, not for editing. The "Properties" shows all properties known to the Ant project: system properties, user properties, and global properties set in the build file. The "References" tab shows all global references known to the Ant project.
@@ -671,6 +678,7 @@
 </chapter>
 
 <chapter id="editing">
+@@style@@
 <title>Editing the Build File</title>
 
 <para>
@@ -714,6 +722,7 @@
 </chapter>
 
 <chapter id="tracing">
+@@style@@
 <title>Tracing Target Execution</title>
 <para>
 Antelope is put into 'tracing mode' when the "Trace" button is clicked. When in tracing mode, the background of the button panel will be blue. When in tracing mode, clicking the target buttons will not actually execute the target. Instead, the output will show the specific order of execution of tasks performed by the target and targets that the selected target depends on. This is useful for figuring out exactly what a specific target does and the order of operations. To turn off tracing mode, click the "Trace" button a second time.
@@ -786,6 +795,7 @@
 
 
 <chapter id="antlogger">
+@@style@@
 <title>AntLogg​er</title>
 
 <para>
@@ -920,6 +930,7 @@
 </chapter>
 
 <chapter id="for-developers">
+@@style@@
    <title>API for jEdit Plugin Developers</title>
    
 <para>
@@ -1077,6 +1088,7 @@
 </chapter>
 
 <chapter id="faq">
+@@style@@
 <title>Frequently Asked Questions</title>
 <para>
 <itemizedlist>
@@ -1207,6 +1219,7 @@
 </chapter>
 
 <chapter id="support">
+@@style@@
 <title>Support​</title>
 
 <para>

File [changed]: style.css
Url: http://antelope.tigr​is.org/source/browse​/antelope/src/docs/m​anual/style.css?r1=1​.1&r2=1.2
Delta lines: +2 -1
-------------------
--- style.css 15 Feb 2004 22:19:41 -0000 1.1
+++ style.css 24 Feb 2004 05:47:12 -0000 1.2
@@ -66,7 +66,8 @@
 
 TEXTAREA {cursor: text}
 
-TD {padding: 3}
+TD {padding: 3;
+ background: lightgray}
 
 TH {
    font-weight: bold;

File [changed]: tasks.xml
Url: http://antelope.tigr​is.org/source/browse​/antelope/src/docs/m​anual/tasks.xml?r1=1​.1&r2=1.2
Delta lines: +18 -0
--------------------
--- tasks.xml 15 Feb 2004 22:19:41 -0000 1.1
+++ tasks.xml 24 Feb 2004 05:47:12 -0000 1.2
@@ -13,6 +13,7 @@
 </bookinfo>
 
 <chapter id="introduction">
+@@style@@
 <title>Introdu​ction</title>
 
 <para>
@@ -50,6 +51,7 @@
 </chapter>
 
 <chapter id="license">
+@@style@@
     <title>License​</title>
     
     <para>
@@ -117,6 +119,7 @@
 </chapter>
 
 <chapter id="installation">
+@@style@@
     <title>Install​ation</title>
     <para>
         If you are running your build files from Antelope, these tasks are already installed and nothing more needs to be done. The following discusses installing the tasks by hand for use outside of Antelope.
@@ -175,6 +178,7 @@
 </chapter>
 
 <chapter id="Assert">
+@@style@@
     <title>Assert Task</title>
     
 <para>
@@ -339,6 +343,7 @@
 </chapter>
 
 <chapter id="IfTask">
+@@style@@
     <title>If Task</title>
 
 <section>
@@ -973,6 +978,7 @@
 </chapter>
 
 <chapter id="switch">
+@@style@@
     <title>SwitchT​ask</title>
 <para>
 The "Switch" task works much like the Java "switch" construct. It supports nested "case" elements, which in turn, support nested "break" elements. There is also a "default" case element, so this should be very natural for Java developers to use.
@@ -1066,6 +1072,7 @@
 </chapter>
 
 <chapter id="TryTask">
+@@style@@
     <title>Try Task</title>
     
 <para>
@@ -1247,6 +1254,7 @@
 </chapter>
 
 <chapter id="Variable">
+@@style@@
     <title>Variable Task</title>
     
 <para>
@@ -1396,6 +1404,7 @@
 </chapter>
 
 <chapter id="stopwatch">
+@@style@@
     <title>Stopwat​ch</title>
 <para>
 The Stopwatch task makes it easy to add performance timing to Ant targets. Stopwatches are named so that multiple watches can run simultaneously.
@@ -1469,6 +1478,7 @@
 
 
 <chapter id="Limit">
+@@style@@
    <title>Limit​</title>
    
 <para>
@@ -1555,6 +1565,7 @@
 
 
 <chapter id="math">
+@@style@@
     <title>Math</title>
     
 <para>
@@ -1818,6 +1829,7 @@
 
 </chapter>
 <chapter id="post">
+@@style@@
     <title>HTTP Post</title>
     
 <para>
@@ -2037,6 +2049,7 @@
 
 
 <chapter id="ssh">
+@@style@@
 
 <title>SSH and SCP</title>
 
@@ -2046,6 +2059,7 @@
 </chapter>
 
 <chapter id="antfetch">
+@@style@@
     <title>AntFetc​h</title>
     
 <para>
@@ -2139,6 +2153,7 @@
 
 
 <chapter id="antcallback">
+@@style@@
     <title>AntCall​Back</title>
     
 <para>
@@ -2242,6 +2257,7 @@
 </chapter>
 
 <chapter id="calltask">
+@@style@@
     <title>Call Task</title>
 <para>
 This is the simplest and possibly the most obvious of the "call" type of tasks. It simply calls a target in the current build file and provides exactly the functionality expected by many users of "antcall".
@@ -2305,6 +2321,7 @@
 </chapter>
 
 <chapter id="performance">
+@@style@@
     <title>Performance Monitoring</title>
     
 <para>
@@ -2416,6 +2433,7 @@
 </chapter>
 
 <chapter id="feedback">
+@@style@@
     <title>Feedbac​k</title>
 
 <para>

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

File [changed]: AntelopeProperties.java
Url: http://antelope.tigr​is.org/source/browse​/antelope/src/ise/an​telope/common/Antelo​peProperties.java?r1​=1.1&r2=1.2
Delta lines: +35 -4
--------------------
--- AntelopeProperties.java 15 Feb 2004 22:15:18 -0000 1.1
+++ AntelopeProperties.java 24 Feb 2004 05:47:12 -0000 1.2
@@ -1,4 +1,4 @@
-// $Id: AntelopeProperties.java,v 1.1 2004/02/15 22:15:18 danson Exp $
+// $Id: AntelopeProperties.java,v 1.2 2004/02/24 05:47:12 danson Exp $
 
 /*
  * Based on the Apache Software License, Version 1.1
@@ -71,7 +71,7 @@
  * A panel to display Ant properties.
  *
  * @author Dale Anson
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
  */
 public class AntelopeProperties {
    /**
@@ -151,9 +151,9 @@
             // one is.
          }
       }
+ props_table.addMouseListener( new TableCellViewer( props_table ) );
 
       // project references
-
       map = new TreeMap( project.getReferences() );
       JTable ref_table = new JTable();
       model = new DefaultTableModel( new String[] {"Name", "Value"}, map.size() );
@@ -168,9 +168,9 @@
          }
          catch ( Exception ignored ) {}
       }
+ ref_table.addMouseListener( new TableCellViewer( ref_table ) );
 
       // user (mutable) properties
-
       final Hashtable user_props = project.getUserProperties();
       map = new TreeMap( user_props );
       JTable user_table = new JTable();
@@ -187,9 +187,9 @@
          }
          catch ( Exception ignored ) {}
       }
+ user_table.addMouseListener( new TableCellViewer( user_table ) );
 
       // project description
-
       StringBuffer sb = new StringBuffer();
       sb.append( getProjectDescription( project ) ).append( lSep );
       sb.append( printTargets( project, true ) );
@@ -449,5 +449,36 @@
       }
       return res;
    }
+
+ /**
+ * Grabs the string value of the contents of a table cell and shows it
+ * in a popup.
+ */
+ public class TableCellViewer extends MouseAdapter {
+ private JTable table = null;
+ private JTextArea ta;
+ private JPopupMenu pm;
+ public TableCellViewer( JTable table ) {
+ this.table = table;
+ ta = new JTextArea( 10, 40 );
+ ta.setLineWrap( true );
+ ta.setEditable( false );
+ pm = new JPopupMenu();
+ pm.add( new JScrollPane( ta ) );
+ }
+ public void mousePressed( MouseEvent me ) {
+ if ( me.isPopupTrigger() ) {
+ Point p = me.getPoint();
+ int col = table.columnAtPoint( p );
+ int row = table.rowAtPoint( p );
+ Object value = table.getModel().getValueAt( row, col );
+ if ( value != null ) {
+ ta.setText( value.toString() );
+ GUIUtils.showPopupMenu( pm, table, me.getX(), me.getY() );
+ }
+ }
+ }
+ }
+
 }
 

File [changed]: version.txt
Url: http://antelope.tigr​is.org/source/browse​/antelope/src/ise/an​telope/common/versio​n.txt?r1=1.3&r2=​1.4
Delta lines: +2 -2
-------------------
--- version.txt 23 Feb 2004 20:50:00 -0000 1.3
+++ version.txt 24 Feb 2004 05:47:12 -0000 1.4
@@ -1,2 +1,2 @@
-VERSION=3.0.0
-DATE=February 23 2004
\ No newline at end of file
+VERSION=3.0.1
+DATE=February 21 2004

Directory: /antelope/src/ise/library/
====================​=================

File [changed]: UserPreferences.java
Url: http://antelope.tigr​is.org/source/browse​/antelope/src/ise/li​brary/UserPreference​s.java?r1=1.1&r2​=1.2
Delta lines: +13 -7
--------------------
--- UserPreferences.java 15 Feb 2004 22:15:19 -0000 1.1
+++ UserPreferences.java 24 Feb 2004 05:47:12 -0000 1.2
@@ -130,7 +130,7 @@
          File f = new File( getDirectory(), "prefs" );
          if ( !f.exists() )
             return ;
- ObjectInputStream decoder = new ObjectInputStream(new FileInputStream(f));
+ ObjectInputStream decoder = new ObjectInputStream( new FileInputStream( f ) );
          Hashtable map = ( Hashtable ) decoder.readObject();
          decoder.close();
          root.putAll( map );
@@ -149,13 +149,19 @@
             parent().flush();
             return ;
          }
- File f = new File( getDirectory(), "prefs" );
- ObjectOutputStream encoder = new ObjectOutputStream(new FileOutputStream(f));
+ File dir = getDirectory();
+ if ( dir == null )
+ throw new BackingStoreException( "Can't open directory." );
+ File f = new File( dir, "prefs" );
+ ObjectOutputStream encoder = new ObjectOutputStream( new FileOutputStream( f ) );
          encoder.writeObject( root );
          encoder.close();
       }
+ catch ( BackingStoreException bse ) {
+ throw bse;
+ }
       catch ( Exception e ) {
- //e.printStackTrace();
+ // ignore
       }
    }
 




--------------------​--------------------​--------------------​---------
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/docs/manual/, /antelope/src/ise/antelope/common/, /antelope/src/ise/library/ danson Dale Anson 2004-02-23 21:47:14 PST
Messages per page: