Diff for /FM2SQL/Attic/FM2SQL.java between versions 1.30 and 1.33

version 1.30, 2004/03/15 12:30:51 version 1.33, 2004/03/23 11:57:06
Line 1 Line 1
   /*
    * FM2SQL.java -- Main program Filemaker to SQL Converter 
    * Copyright (C) 2003 Robert Gordesch (rogo@mpiwg-berlin.mpg.de
    * This program is free software; you can redistribute it and/or modify it
    * under the terms of the GNU General Public License as published by the Free
    * Software Foundation; either version 2 of the License, or (at your option)
    * any later version.  Please read license.txt for the full details. A copy of
    * the GPL may be found at http://www.gnu.org/copyleft/lgpl.html  You should
    * have received a copy of the GNU General Public License along with this
    * program; if not, write to the Free Software Foundation, Inc., 59 Temple
    * Place, Suite 330, Boston, MA 02111-1307 USA  Created on 15.09.2003 by
    * rogo  
    */
   
 import java.awt.Cursor;  import java.awt.Cursor;
 import java.awt.Dimension;  import java.awt.Dimension;
 import java.awt.Font;  import java.awt.Font;
Line 926  public class FM2SQL extends JFrame imple Line 940  public class FM2SQL extends JFrame imple
         if(appendItem.isSelected()) mode = Convert.DataBase.APPEND_MODE;          if(appendItem.isSelected()) mode = Convert.DataBase.APPEND_MODE;
         else          else
         if(updateItem.isSelected()) mode = Convert.DataBase.UPDATE_MODE;          if(updateItem.isSelected()) mode = Convert.DataBase.UPDATE_MODE;
       else
       if(deleteItem.isSelected()) mode = Convert.DataBase.DELETE_MODE;
   
     // TODO add id vector in table and write it out      // TODO add id vector in table and write it out
     Convert.DataBase source = new Convert.DataBase(bean,vectors[0],vectors[1],vectors[2],vectors[3],vectors[4],mode);      Convert.DataBase source = new Convert.DataBase(bean,vectors[0],vectors[1],vectors[2],vectors[3],vectors[4],mode);
     Convert.DataBase destination = new Convert.DataBase(destBean,new Vector(),new Vector(),new Vector(),new Vector(),new Vector(),-1);      Convert.DataBase destination = new Convert.DataBase(destBean,new Vector(),new Vector(),new Vector(),new Vector(),new Vector(),-1);
Line 971  public class FM2SQL extends JFrame imple Line 988  public class FM2SQL extends JFrame imple
                   
         if (database.mode == Convert.DataBase.CONVERT_MODE)          if (database.mode == Convert.DataBase.CONVERT_MODE)
         {          {
           convertItem.setSelected(true);            convertItem.doClick();
           convert.setText("Convert Tables");  
           convert.setActionCommand("Convert Tables");  
           mode = Convert.DataBase.CONVERT_MODE;  
         } else if (database.mode == Convert.DataBase.APPEND_MODE)          } else if (database.mode == Convert.DataBase.APPEND_MODE)
         {          {
           appendItem.setSelected(true);            appendItem.doClick();
           convert.setText("Append Tables");  
           convert.setActionCommand("Append Tables");  
           mode = Convert.DataBase.APPEND_MODE;  
         } else if (database.mode == Convert.DataBase.UPDATE_MODE)          } else if (database.mode == Convert.DataBase.UPDATE_MODE)
         {          {
           updateItem.setSelected(true);            updateItem.doClick();
           convert.setText("Update Tables");          } else if (database.mode == Convert.DataBase.DELETE_MODE)
           convert.setActionCommand("Update Tables");  
           mode = Convert.DataBase.UPDATE_MODE;  
         } else if (database.mode == Convert.DataBase.UPDATE_MODE)  
         {          {
           deleteItem.setSelected(true);            deleteItem.doClick();
           convert.setText("Delete Tables");  
           convert.setActionCommand("Delete Tables");  
           mode = Convert.DataBase.DELETE_MODE;  
         }          }
         delimiter=database.delimiter;          delimiter=database.delimiter;
         database.bean.getConnection();          database.bean.getConnection();
Line 1296  public class FM2SQL extends JFrame imple Line 1301  public class FM2SQL extends JFrame imple
             JComboBox box = ((JComboBox) model.getValueAt(row, ID_INDEX));              JComboBox box = ((JComboBox) model.getValueAt(row, ID_INDEX));
             box.setModel(new DefaultComboBoxModel(idVec));              box.setModel(new DefaultComboBoxModel(idVec));
             box.setSelectedItem(id);              box.setSelectedItem(id);
             //box.repaint();              
            tC.tableModel.fireTableCellUpdated(row,ID_INDEX);             tC.tableModel.fireTableCellUpdated(row,ID_INDEX);
           }            }
                 

Removed from v.1.30  
changed lines
  Added in v.1.33


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>