• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.clients
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Change
  • Next Change →

Changeset 5522 for trunk/SRC/org/openmicroscopy/shoola/env/ui/TaskBarManager.java

Show
Ignore:
Timestamp:
06/24/08 19:45:46 (5 months ago)
Author:
jburel
Message:

Externalise version, name, about file etc.
Fixed tickect #621

Files:
1 modified

  • trunk/SRC/org/openmicroscopy/shoola/env/ui/TaskBarManager.java (modified) (5 diffs)

Legend:

Unmodified
Added
Removed
  • trunk/SRC/org/openmicroscopy/shoola/env/ui/TaskBarManager.java

    r5414 r5522  
    8585{ 
    8686 
    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"; 
    9289         
    9390        /** The value of the tag to find. */ 
    … …  
    207204                line = in.readLine(); 
    208205                if (line == null) break; 
    209                 //buffer.append("\n"); 
    210206                if (number != 0) buffer.append(line); 
    211207                number++; 
    … …  
    214210            message = buffer.toString(); 
    215211                } catch (Exception e) { 
    216                         message = "Error: About information not found"; 
     212                        message = "Error: Cannot find the About file."; 
    217213                } 
    218214                return message; 
    … …  
    410406    { 
    411407        //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); 
    413411        String message = loadAbout(refFile); 
    414          
     412        String title = (String) container.getRegistry().lookup( 
     413                        LookupNames.SOFTWARE_NAME); 
    415414        suDialog = new SoftwareUpdateDialog(view, message, refFile); 
    416         suDialog.setTitle(SoftwareUpdateDialog.TITLE_ABOUT); 
     415        suDialog.setTitle(TITLE_ABOUT+title+"..."); 
    417416        suDialog.addPropertyChangeListener( 
    418417                        SoftwareUpdateDialog.OPEN_URL_PROPERTY, this); 
    … …  
    423422    private void help() 
    424423    { 
    425         String path = "file://"+container.resolveDocFile(DOC_FILE); 
    426         openURL(path); 
     424        //String path = "file://"+container.resolveDocFile(DOC_FILE); 
     425        //openURL(path); 
    427426    } 
    428427     

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/