• 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 5658

Show
Ignore:
Timestamp:
10/09/08 09:59:29 (6 weeks ago)
Author:
jburel
Message:

Fixed problem with file filters

Location:
trunk
Files:
4 modified

  • .classpath (modified) (1 diff)
  • SRC/org/openmicroscopy/shoola/env/data/DataServicesFactory.java (modified) (1 diff)
  • SRC/org/openmicroscopy/shoola/util/filter/file/CustomizedFileFilter.java (modified) (2 diffs)
  • SRC/org/openmicroscopy/shoola/util/filter/file/EditorFileFilter.java (modified) (1 diff)

Legend:

Unmodified
Added
Removed
  • trunk/.classpath

    r5647 r5658  
    1212        <classpathentry kind="lib" path="LIB/commons-codec-1.3.jar"/> 
    1313        <classpathentry kind="lib" path="LIB/commons-httpclient-3.0.1.jar"/> 
    14         <classpathentry kind="lib" path="LIB/looks-2.0.1.jar"/> 
    1514        <classpathentry kind="lib" path="LIB/JHotDraw-7.0.9.jar"/> 
    1615        <classpathentry kind="lib" path="LIB/commons-validator.jar"/> 
  • trunk/SRC/org/openmicroscopy/shoola/env/data/DataServicesFactory.java

    r5641 r5658  
    209209                        UserCredentials uc = (UserCredentials)  
    210210                                container.getRegistry().lookup(LookupNames.USER_CREDENTIALS); 
     211                        ((OmeroImageServiceImpl) is).shutDown(); 
    211212                        omeroGateway.reconnect(uc.getUserName(), uc.getPassword()); 
    212213                        } catch (Exception e) { 
  • trunk/SRC/org/openmicroscopy/shoola/util/filter/file/CustomizedFileFilter.java

    r5633 r5658  
    6060        { 
    6161                if (name == null || extensions == null) return false; 
     62                for (int i = 0; i < extensions.length; i++) { 
     63                        if (name.endsWith("."+extensions[i])) return true; 
     64                } 
     65                return false; 
     66                /* 
     67                if (name == null || extensions == null) return false; 
    6268                String extension = null; 
    6369                int i = name.lastIndexOf('.'); 
    … …  
    6874                        if (extension.equals(extensions[j])) return true; 
    6975                return false; 
     76                */ 
    7077        } 
    7178         
  • trunk/SRC/org/openmicroscopy/shoola/util/filter/file/EditorFileFilter.java

    r5653 r5658  
    5252        public static final String      PRO_XML = "pro.xml"; 
    5353         
    54         /** Possible file extensions. */ 
    55         public static final String      XML = "xml"; 
    56          
    5754        /** The possible extensions. */ 
    5855        private static final String[] extensions; 
    5956         
    6057        static { 
    61                 extensions = new String[2]; 
     58                extensions = new String[1]; 
    6259                extensions[0] = PRO_XML; 
    63                 extensions[1] = XML; 
    6460        } 
    65          
     61 
    6662        /** 
    6763         *      Overriden to return the extension of the filter. 

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/