Login | Register
My pages Projects Community openCollabNet

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

antelope
Discussion topic

Back to topic list

CVS update: /antelope/src/ise/antelope/app/

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

Modified:
 /antelope/src/ise/antelope/app/
  Antelope.java

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

File Changes:

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

File [changed]: Antelope.java
Url: http://antelope.tigr​is.org/source/browse​/antelope/src/ise/an​telope/app/Antelope.​java?r1=1.12&r2=​1.13
Delta lines: +4 -2
-------------------
--- Antelope.java 24 May 2004 04:10:48 -0000 1.12
+++ Antelope.java 30 Aug 2004 03:08:50 -0000 1.13
@@ -1,4 +1,4 @@
-// $Id: Antelope.java,v 1.12 2004/05/24 04:10:48 danson Exp $
+// $Id: Antelope.java,v 1.13 2004/08/30 03:08:50 danson Exp $
 
 /*
  * Based on the Apache Software License, Version 1.1
@@ -69,7 +69,7 @@
  * Main entry point for Antelope application.
  *
  * @author Dale Anson
- * @version $Revision: 1.12 $
+ * @version $Revision: 1.13 $
  */
 public class Antelope extends JFrame implements Constants, CommonHelper {
 
@@ -659,12 +659,14 @@
         if ( build_file == null )
             return ;
 
+ int caret_position = _editor.getCaretPosition();
         try {
             StringReader reader = new StringReader( _editor.getText() );
             FileWriter writer = new FileWriter( build_file );
             FileUtilities.copyToWriter( reader, writer );
             _antelope_panel.reload();
             setTitle( "Antelope: " + build_file.getAbsolutePath() );
+ _editor.setCaretPosi​tion(caret_position)​;
         }
         catch ( Exception e ) {
             e.printStackTrace();




--------------------​--------------------​--------------------​---------
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/app/ danson Dale Anson 2004-08-29 20:08:50 PDT
Messages per page: