Changeset 7161
- Timestamp:
- 2004-03-31T09:13:16+12:00 (20 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java
r7115 r7161 107 107 /** The monitor resposible for parsing the build process. */ 108 108 private GShellProgressMonitor build_monitor = null; 109 /** The monitor resposible for parsing the copy process. */110 private GShellProgressMonitor copy_monitor = null;111 109 /** The monitor resposible for parsing the import process. */ 112 110 private GShellProgressMonitor import_monitor = null; … … 1134 1132 public void registerBuildMonitor(GShellProgressMonitor monitor) { 1135 1133 build_monitor = monitor; 1136 }1137 /** This method associates the collection copy monitor with the copy monitor created in CreatePane.1138 * @param monitor A <strong>GShellProgressMonitor</strong> which we will use as the copy monitor.1139 */1140 public void registerCopyMonitor(GShellProgressMonitor monitor) {1141 copy_monitor = monitor;1142 1134 } 1143 1135 /** This method associates the collection import monitor with the import monitor created in CreatePane. -
trunk/gli/src/org/greenstone/gatherer/gui/CreatePane.java
r7151 r7161 114 114 /** This monitor tracks the build processes progress. */ 115 115 private GShellProgressMonitor build_monitor = null; 116 /** This monitor tracks the copy processes progress. */117 private GShellProgressMonitor copy_monitor = null;118 116 /** This monitor tracks the import processes progress. */ 119 117 private GShellProgressMonitor import_monitor = null; … … 131 129 /** The label alongside the build progress bar gets some special treatment so... */ 132 130 private JLabel progress_build_label = null; 133 /** The label alongside the copy progress bar gets some special treatment so... */134 private JLabel progress_copy_label = null;135 131 /** The label alongside the import progress bar gets some special treatment so... */ 136 132 private JLabel progress_import_label = null; … … 200 196 bar_area = new JPanel(); // This component will be shared about 201 197 202 // what is this???203 progress_copy_label = new JLabel();204 Dictionary.registerText(progress_copy_label, "CreatePane.Copy_Progress");205 206 copy_monitor = new GBasicProgressMonitor();207 Gatherer.c_man.registerCopyMonitor(copy_monitor);208 209 198 progress_import_label = new JLabel(); 210 199 Dictionary.registerText(progress_import_label, "CreatePane.Import_Progress"); … … 370 359 JPanel labels_pane = new JPanel(); 371 360 labels_pane.setLayout(new GridLayout(2,1,0,5)); 372 //labels_pane.add(progress_copy_label);373 361 labels_pane.add(progress_import_label); 374 362 labels_pane.add(progress_build_label); … … 376 364 JPanel monitors_pane = new JPanel(); 377 365 monitors_pane.setLayout(new GridLayout(2,1,0,5)); 378 //monitors_pane.add(copy_monitor.getProgress());379 366 monitors_pane.add(import_monitor.getProgress()); 380 367 monitors_pane.add(build_monitor.getProgress()); … … 653 640 // Reset the stop flag in all the process monitors, just incase. 654 641 ((GBuildProgressMonitor)build_monitor).reset(); 655 copy_monitor.setStop(false);656 642 import_monitor.setStop(false); 657 643 // Set removeold automatically.
Note:
See TracChangeset
for help on using the changeset viewer.