Ignore:
Timestamp:
2014-05-02T20:11:21+12:00 (10 years ago)
Author:
ak19
Message:

Moved out the NumberedJTextArea into its own class. It now manages the associated Undo and RedoButtons itself, so that the undo/redobutton code and their listeners are also moved out of FormatConversionDialog. Tested that it all still works, including bugfix to previous commit by overrding undo/redoLastAction() in NumberedJTextArea.java. 2. Also, cleaned up import statements, minor change to comments in the StreamGobbler classes, added the license text at the top of all these new classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/util/InputStreamGobbler.java

    r29017 r29031  
     1/**
     2 *#########################################################################
     3 *
     4 * A component of the Gatherer application, part of the Greenstone digital
     5 * library suite from the New Zealand Digital Library Project at the
     6 * University of Waikato, New Zealand.
     7 *
     8 * Copyright (C) 1999 New Zealand Digital Library Project
     9 *
     10 * This program is free software; you can redistribute it and/or modify
     11 * it under the terms of the GNU General Public License as published by
     12 * the Free Software Foundation; either version 2 of the License, or
     13 * (at your option) any later version.
     14 *
     15 * This program is distributed in the hope that it will be useful,
     16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     18 * GNU General Public License for more details.
     19 *
     20 * You should have received a copy of the GNU General Public License
     21 * along with this program; if not, write to the Free Software
     22 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
     23 *########################################################################
     24 */
     25
    126package org.greenstone.gatherer.util;
    227
     
    1136
    1237// http://www.javaworld.com/article/2071275/core-java/when-runtime-exec---won-t.html?page=2
    13 // This class is used in FormatConversionDialog to properly read from the output and error streams of a Process
     38// This class is used in FormatConversionDialog to properly read from the stdout and stderr
     39// streams of a Process, Process.getInputStream() and Process.getErrorSream()
    1440public class InputStreamGobbler extends Thread
    1541{
Note: See TracChangeset for help on using the changeset viewer.