Changeset 8821


Ignore:
Timestamp:
2004-12-15T17:12:49+13:00 (19 years ago)
Author:
mdewsnip
Message:

Fix to deprecated function call and wrong option dialog type, by Matthew Whyte.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gems/GEMS.java

    r8809 r8821  
    4343import java.io.PrintStream;
    4444import java.io.FileInputStream;
     45import java.io.BufferedReader;
    4546import java.io.FileOutputStream;
    4647import java.io.DataInputStream;
    4748import java.io.IOException;
     49import java.io.InputStreamReader;
     50import java.io.PrintWriter;
    4851import java.util.*;
    4952import javax.swing.*;
     
    603606        if(atLeastOneSetChanged == true) {
    604607           
    605             int result = JOptionPane.showOptionDialog(self, Dictionary.get("GEMS.Menu.Confirm_Exit_Save", Dictionary.get("GEMS.Element")), Dictionary.get("GEMS.Menu.Confirm_Exit_Save_Title"), JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, dialog_options, dialog_options[0]);
     608            int result = JOptionPane.showConfirmDialog(self, Dictionary.get("GEMS.Menu.Confirm_Exit_Save", Dictionary.get("GEMS.Element")), Dictionary.get("GEMS.Menu.Confirm_Exit_Save_Title"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); //, null, dialog_options, dialog_options[0]);
    606609
    607610         //   System.out.println("Exit: "+result);
     
    20312034                        try {
    20322035
    2033                         FileInputStream fstream = new FileInputStream(items[1].trim());
    2034                         DataInputStream in = new DataInputStream(fstream);
     2036            FileInputStream fstream = new FileInputStream(items[1].trim());
     2037            BufferedReader in = new BufferedReader(new InputStreamReader(fstream, "UTF-8"));
     2038                        //DataInputStream in = new DataInputStream(fstream);
    20352039                        ///////////////
    20362040
     
    20432047
    20442048                        //cycle through all lines in IN and print to OUT
    2045                         while(in.available() != 0){
     2049                        //while(in.available() != 0){
     2050            while(in.ready()){
    20462051
    20472052                            //System.out.println(in.readLine()+ "\n"
    2048                             String nextline = in.readLine();
     2053                            //String nextline = in.readLine();
     2054                String nextline = in.readLine();
    20492055
    20502056                            if(nextline.matches(".+namespace=\".+\".*") == true){
Note: See TracChangeset for help on using the changeset viewer.