- Timestamp:
- 06/24/08 19:45:46 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/org/openmicroscopy/shoola/env/ui/TaskBarManager.java
r5414 r5522 85 85 { 86 86 87 /** The name of the about file in the config directory. */ 88 private static final String ABOUT_FILE = "about.xml"; 89 90 /** The name of the documentation file in the docs directory. */ 91 private static final String DOC_FILE = "insight_index.html"; 87 /** The window's title. */ 88 static final String TITLE_ABOUT = "About"; 92 89 93 90 /** The value of the tag to find. */ … … 207 204 line = in.readLine(); 208 205 if (line == null) break; 209 //buffer.append("\n");210 206 if (number != 0) buffer.append(line); 211 207 number++; … … 214 210 message = buffer.toString(); 215 211 } catch (Exception e) { 216 message = "Error: About information not found";212 message = "Error: Cannot find the About file."; 217 213 } 218 214 return message; … … 410 406 { 411 407 //READ content of the about file. 412 String refFile = container.resolveConfigFile(ABOUT_FILE); 408 String aboutFile = (String) container.getRegistry().lookup( 409 LookupNames.ABOUT_FILE); 410 String refFile = container.resolveConfigFile(aboutFile); 413 411 String message = loadAbout(refFile); 414 412 String title = (String) container.getRegistry().lookup( 413 LookupNames.SOFTWARE_NAME); 415 414 suDialog = new SoftwareUpdateDialog(view, message, refFile); 416 suDialog.setTitle( SoftwareUpdateDialog.TITLE_ABOUT);415 suDialog.setTitle(TITLE_ABOUT+title+"..."); 417 416 suDialog.addPropertyChangeListener( 418 417 SoftwareUpdateDialog.OPEN_URL_PROPERTY, this); … … 423 422 private void help() 424 423 { 425 String path = "file://"+container.resolveDocFile(DOC_FILE);426 openURL(path);424 //String path = "file://"+container.resolveDocFile(DOC_FILE); 425 //openURL(path); 427 426 } 428 427
