Changeset 4607


Ignore:
Timestamp:
2003-06-12T14:59:27+12:00 (21 years ago)
Author:
mdewsnip
Message:

Cut/Copy/Paste now fails silently if a JTextComponent isn't selected (ie. if a file is selected).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/GUIManager.java

    r4599 r4607  
    224224        }
    225225        catch (Exception cce) {
    226         // If the component is not a text component ignore the cut command
    227         cce.printStackTrace();
     226        // If the component is not a text component ignore the copy command
     227        Gatherer.println(cce.toString());
    228228        }
    229229    }
     
    238238        catch (ClassCastException cce) {
    239239        // If the component is not a text component ignore the cut command
    240         cce.printStackTrace();
     240        Gatherer.println(cce.toString());
    241241        }
    242242    }
     
    250250        }
    251251        catch (ClassCastException cce) {
    252         // If the component is not a text component ignore the cut command
    253         cce.printStackTrace();
     252        // If the component is not a text component ignore the paste command
     253        Gatherer.println(cce.toString());
    254254        }
    255255    }
Note: See TracChangeset for help on using the changeset viewer.