• 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 Changeset
  • Next Changeset →

Changeset 5522

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

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

Location:
trunk
Files:
8 modified

  • SRC/org/openmicroscopy/shoola/env/LookupNames.java (modified) (1 diff)
  • SRC/org/openmicroscopy/shoola/env/data/OMEROGateway.java (modified) (1 diff)
  • SRC/org/openmicroscopy/shoola/env/init/Initializer.java (modified) (3 diffs)
  • SRC/org/openmicroscopy/shoola/env/rnd/RenderingControlProxy.java (modified) (3 diffs)
  • SRC/org/openmicroscopy/shoola/env/ui/SoftwareUpdateDialog.java (modified) (1 diff)
  • SRC/org/openmicroscopy/shoola/env/ui/SplashScreenManager.java (modified) (1 diff)
  • SRC/org/openmicroscopy/shoola/env/ui/TaskBarManager.java (modified) (5 diffs)
  • config/container.xml (modified) (1 diff)

Legend:

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

    r5514 r5522  
    5050    /** Field to access the <code>Version</code> information. */ 
    5151        public static final String VERSION = "Version";  
     52         
     53        /** Field to access the <code>Name oof the sofware</code>. */ 
     54        public static final String SOFTWARE_NAME = "SoftwareName";       
     55         
     56        /** Field to access the <code>About file</code> information. */ 
     57        public static final String ABOUT_FILE = "AboutFile"; 
    5258         
    5359    /** Field to access the <code>env</code> package. */ 
  • trunk/SRC/org/openmicroscopy/shoola/env/data/OMEROGateway.java

    r5519 r5522  
    161161                WILD_CARDS.add("*"); 
    162162                WILD_CARDS.add("?"); 
     163                WILD_CARDS.add("~"); 
    163164        } 
    164165         
  • trunk/SRC/org/openmicroscopy/shoola/env/init/Initializer.java

    r4778 r5522  
    7575     */ 
    7676    protected static final List<Class>     initList = new ArrayList<Class>(); 
     77     
    7778    static { 
    7879        //This must be the first task to run b/c it will bring up 
    … …  
    8384        //(b/c it creates and fills up the container's config). 
    8485        initList.add(ContainerConfigInit.class); 
    85          
    8686        initList.add(LoggerInit.class); 
    8787        initList.add(EventBusInit.class); 
    … …  
    295295         *  
    296296         * @param subscriber    The listener. 
    297          * @return      <code>true</code> if <code>subscriber</code> is not already in  
     297         * @return      <code>true</code> if <code>subscriber</code> is not already in  
    298298         *                      the notification set, <code>false</code> otherwise. 
    299299         * @throws      NullPointerException If <code>null</code> is passed in.  
  • trunk/SRC/org/openmicroscopy/shoola/env/rnd/RenderingControlProxy.java

    r5509 r5522  
    870870        try { 
    871871                 servant.resetDefaultsNoSave(); 
     872                 setModel(HSB); 
    872873                 invalidateCache(); 
    873874                 initialize(); 
    … …  
    12231224        try { 
    12241225                 servant.resetDefaultsNoSave(); 
     1226                 setModel(HSB); 
    12251227                 List list = servant.getAvailableFamilies(); 
    12261228                 ChannelMetadata m; 
    … …  
    12401242                                                                                m.getGlobalMax()); 
    12411243                         } 
     1244                 
    12421245                 invalidateCache(); 
    12431246                 initialize(); 
  • trunk/SRC/org/openmicroscopy/shoola/env/ui/SoftwareUpdateDialog.java

    r5414 r5522  
    7575        /** Bounds property indicating to launch the web site. */ 
    7676        static final String             OPEN_URL_PROPERTY = "openURL"; 
    77          
    78         /** The window's title. */ 
    79         static final String             TITLE_ABOUT = "About OMERO.insight..."; 
    80          
    81         /** The window's title. */ 
    82         static final String             TITLE_UPDATE = "Update OMERO.insight..."; 
    8377         
    8478    /** The close button. */ 
  • trunk/SRC/org/openmicroscopy/shoola/env/ui/SplashScreenManager.java

    r5514 r5522  
    7979     
    8080        /** The title of the splash screens. */ 
    81         static final String     TITLE = "Open Microscopy Environment"; 
    82          
    83     /** The client's version. */ 
    84     //static final String       VERSION = "Beta3.0"; 
    85      
     81        private static final String     TITLE = "Open Microscopy Environment"; 
     82         
    8683        /** The component's UI. */ 
    8784        private ScreenLogin                     view; 
  • 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     
  • trunk/config/container.xml

    r5514 r5522  
    233233   
    234234  <!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    235    *  
    236    * Version number of the client. 
     235   * Information related to the version of the software, name of the software, 
     236   * etc. 
    237237   *  
    238238  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--> 
    239239    <entry name="Version">Beta3.0</entry> 
     240    <entry name="SoftwareName">OMERO.insight</entry> 
     241    <entry name="AboutFile">about.xml</entry> 
    240242</container> 

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/