Changeset 6006
- Timestamp:
- 2003-11-25T16:32:41+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/shell/GBuildProgressMonitor.java
r5581 r6006 40 40 import javax.swing.JProgressBar; 41 41 import org.greenstone.gatherer.Gatherer; 42 import org.greenstone.gatherer.cdm.CollectionDesignManager; 42 43 import org.greenstone.gatherer.shell.GImportProgressMonitor; 43 44 import org.greenstone.gatherer.shell.GShellProgressMonitor; … … 83 84 static final int CTID_PS = 16; // Creating the info database - parsed successfully 84 85 static final int CAF = 17; // Creating auxiliary files 86 static final int PHIND = 18; // Running Phind 87 static final int SUFFIX = 19; // Running Suffix 88 static final int SUFFIX_DONE = 20; // Suffix Complete 85 89 86 90 static final String BI_STR = "*** building index"; … … 97 101 static final String ITT_STR = "inverting the text"; 98 102 static final String PS_STR = "hash"; 103 static final String PHIND_STR = "*** Phind.pm"; 104 static final String PHIND_SUFFIX_STR = "suffix:"; 105 static final String PHIND_DONE_STR = "Done:"; 99 106 100 107 public GBuildProgressMonitor(GImportProgressMonitor import_progress) { … … 169 176 ///ystem.err.println("CTID [" + state + "] - " + ((progress_bar.getValue() * 100) / MAX) + "%"); 170 177 } 178 else if(line.startsWith(PHIND_STR)) { 179 180 } 171 181 else if(line.indexOf(CAF_STR) != -1) { 172 182 // Skip the progres up to this point … … 320 330 */ 321 331 public void start() { 332 CollectionDesignManager cdm = Gatherer.c_man.getCollection().cdm; 322 333 progress_bar.setValue(MIN); 323 num_indexes = Gatherer.c_man.getCollection().cdm.index_manager.getSize(); 334 num_indexes = cdm.index_manager.getSize(); 335 int num_partitions = cdm.subcollectionindex_manager.getSize(); 336 if(num_partitions > 0) { 337 num_indexes = num_indexes * num_partitions; 338 } 339 int num_languages = cdm.language_manager.getSize(); 340 if(num_languages > 0) { 341 num_indexes = num_indexes * num_languages; 342 } 324 343 num_docs = import_progress.getNumberOfDocuments(); 344 cdm = null; 325 345 } 326 346 /** This method indicates the process is complete.
Note:
See TracChangeset
for help on using the changeset viewer.