Changeset 7924
- Timestamp:
- 2004-08-10T11:25:52+12:00 (20 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/shell
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/shell/GBasicProgressMonitor.java
r6533 r7924 87 87 } 88 88 89 public void messageOnProgressBar(String message) 90 { 91 if ((message!=null) & (message!="")) { 92 setString(message); 93 } 94 else { 95 setString(null); 96 } 97 } 98 99 89 100 /** Method to determine the state of the stop flag, which may be set by the visual component that created this monitor. 90 101 * @return A <strong>boolean</strong> indicating if the process has been asked to stop. -
trunk/gli/src/org/greenstone/gatherer/shell/GBuildProgressMonitor.java
r6533 r7924 167 167 } 168 168 169 public void messageOnProgressBar(String message) 170 { 171 if ((message!=null) & (message!="")) { 172 progress_bar.setString(message); 173 shared_progress_bar.setString(message); 174 } 175 else { 176 progress_bar.setString(null); 177 shared_progress_bar.setString(null); 178 } 179 } 180 169 181 /** Method to determine the state of the stop flag, which may be set by the visual component that created this monitor. 170 182 * @return A <strong>boolean</strong> indicating if the process has been asked to stop. -
trunk/gli/src/org/greenstone/gatherer/shell/GImportProgressMonitor.java
r7552 r7924 165 165 } 166 166 167 public void messageOnProgressBar(String message) 168 { 169 if ((message!=null) & (message!="")) { 170 progress_bar.setString(message); 171 shared_progress_bar.setString(message); 172 showing_string = true; 173 } 174 else { 175 progress_bar.setString(null); 176 shared_progress_bar.setString(null); 177 showing_string = false; 178 } 179 } 180 167 181 /** Method to determine the state of the stop flag, which may be set by the visual component that created this monitor. 168 182 * @return A <strong>boolean</strong> indicating if the process has been asked to stop. … … 190 204 line = line.substring(line.indexOf(StaticStrings.GREATER_THAN_CHARACTER) + 1); 191 205 line = line.trim(); 206 System.err.println("**** line = " + line); 207 192 208 ///ystem.err.println("Process: " + line); 193 209 if(line.startsWith(StaticStrings.LESS_THAN_CHARACTER) && line.endsWith(StaticStrings.GREATER_THAN_CHARACTER)) { -
trunk/gli/src/org/greenstone/gatherer/shell/GShellProgressMonitor.java
r6533 r7924 73 73 public Component getProgress(); 74 74 75 public void messageOnProgressBar(String message); 76 75 77 /** Method to determine the state of the stop flag, which may be set by the visual component that created this monitor. 76 78 * @return A <strong>boolean</strong> indicating if the process has been asked to stop.
Note:
See TracChangeset
for help on using the changeset viewer.