Changeset 4337


Ignore:
Timestamp:
2003-05-27T09:40:14+12:00 (21 years ago)
Author:
jmt12
Message:

Removed save confirmation dialog so save is automatic and compulsory - John

Location:
trunk/gli/src/org/greenstone/gatherer/gui
Files:
2 edited

Legend:

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

    r4307 r4337  
    701701      */
    702702     public boolean showSaveCollectionBox(boolean close_after, boolean exit_after) {
    703           SaveCollectionBox save_collection_box = new SaveCollectionBox();
    704           Rectangle bounds = save_collection_box.getBounds();
    705           int result = save_collection_box.getUserOption(Gatherer.c_man.getCollection().getName());
    706           switch(result) {
    707           case SaveCollectionBox.SAVE_YES:
    708                 Gatherer.c_man.saveCollection(close_after, exit_after);
    709                 content_pane.paintImmediately(bounds);
    710                 return true;
    711           case SaveCollectionBox.SAVE_NO:
    712                 // Close collection.
    713                 if(close_after) {
    714                     tab_pane.setSelectedComponent(collection_pane);
    715                     Gatherer.c_man.closeCollection();
    716                 }
    717                 if(exit_after) {
    718                     Gatherer.self.exit();
    719                 }
    720                 return true;
    721           default:
    722                 return false;
    723           }
     703          //SaveCollectionBox save_collection_box = new SaveCollectionBox();
     704          //Rectangle bounds = save_collection_box.getBounds();
     705          //int result = save_collection_box.getUserOption(Gatherer.c_man.getCollection().getName());
     706          //switch(result) {
     707          //case SaveCollectionBox.SAVE_YES:
     708          Gatherer.c_man.saveCollection(close_after, exit_after);
     709          //content_pane.paintImmediately(bounds);
     710          return true; 
     711          //case SaveCollectionBox.SAVE_NO:
     712          // Close collection.
     713          // if(close_after) {
     714          // tab_pane.setSelectedComponent(collection_pane);
     715          //  Gatherer.c_man.closeCollection();
     716          //  }
     717          // if(exit_after) {
     718          // Gatherer.self.exit();
     719          // }
     720          // return true;
     721          //default:
     722          // return false;
     723          //}
    724724     }
    725725     /** Any implementation of ChangeListener must include this method so we can be informed when the state of one of the registered objects changes. In this case we are listening to view changes within the tabbed pane.
  • trunk/gli/src/org/greenstone/gatherer/gui/MenuBar.java

    r4293 r4337  
    125125
    126126          file_save_as = new JMenuItem(get("File_Save_As"), KeyEvent.VK_A);
    127           file_save_as.addActionListener(Gatherer.g_man);
     127          //file_save_as.addActionListener(Gatherer.g_man);
    128128          file_save_as.setEnabled(false);         
    129129
Note: See TracChangeset for help on using the changeset viewer.