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

Context Navigation

  • ← Previous Changeset
  • Next Changeset →

Changeset 2307

Show
Ignore:
Timestamp:
03/21/08 13:53:11 (9 months ago)
Author:
brain
Message:

closing out old tickets. Fixing a few bugs

Location:
branches/3.0-Beta2.3/components/bioformats-omero
Files:
6 modified

  • .classpath (modified) (1 diff)
  • src/ome/formats/OMEROMetadataStore.java (modified) (4 diffs)
  • src/ome/formats/importer/ImportFixture.java (modified) (1 diff)
  • src/ome/formats/importer/ImportHandler.java (modified) (4 diffs)
  • src/ome/formats/importer/ImportLibrary.java (modified) (3 diffs)
  • src/ome/formats/importer/LoginHandler.java (modified) (1 diff)

Legend:

Unmodified
Added
Removed
  • branches/3.0-Beta2.3/components/bioformats-omero/.classpath

    r2296 r2307  
    44        <classpathentry kind="src" path="resources"/> 
    55        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> 
    6         <classpathentry kind="lib" path="lib/TableLayout.jar"/> 
     6        <classpathentry kind="lib" path="lib/TableLayout.jar"> 
     7                <attributes> 
     8                        <attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="2.3branch/lib"/> 
     9                </attributes> 
     10        </classpathentry> 
    711        <classpathentry kind="lib" path="lib/spring-2.0.6.jar"/> 
    812        <classpathentry kind="lib" path="lib/quaqua-filechooser-only.jar"> 
  • branches/3.0-Beta2.3/components/bioformats-omero/src/ome/formats/OMEROMetadataStore.java

    r2294 r2307  
    150150            // Instantiate our service factory 
    151151            sf = new ServiceFactory(server, login); 
    152  
    153             // Now initialize all our services 
    154             iQuery = sf.getQueryService(); 
    155             iUpdate = sf.getUpdateService(); 
    156             pservice = sf.createRawPixelsStore(); 
    157             rawFileStore = sf.createRawFileStore(); 
    158             iInfo = sf.getRepositoryInfoService(); 
     152             
     153            InitializeServices(sf); 
    159154             
    160155            exp = iQuery.findByString(Experimenter.class, "omeName", username); 
    … …  
    184179        { 
    185180            // Now initialize all our services 
    186             iQuery = sf.getQueryService(); 
    187             iUpdate = sf.getUpdateService(); 
    188             pservice = sf.createRawPixelsStore(); 
     181            InitializeServices(sf); 
     182             
    189183        } catch (Throwable t) 
    190184        { 
    191185            throw new Exception(t); 
    192186        } 
     187    } 
     188     
     189     
     190    /** 
     191     * Private class used by constructor to initialze the services of the service factory. 
     192     *  
     193     * @param factory a non-null, active {@link ServiceFactory} 
     194     */ 
     195    private void InitializeServices(ServiceFactory sf) 
     196    { 
     197        // Now initialize all our services 
     198        iQuery = sf.getQueryService(); 
     199        iUpdate = sf.getUpdateService(); 
     200        pservice = sf.createRawPixelsStore(); 
     201        rawFileStore = sf.createRawFileStore(); 
     202        iInfo = sf.getRepositoryInfoService(); 
    193203    } 
    194204 
    … …  
    12561266                channels.get(logicalChannelIndex).getLogicalChannel(); 
    12571267            lc.setExcitationWave(exWave); 
     1268            if (lc.getPhotometricInterpretation() == null) 
     1269            { 
     1270                log.debug("Setting Photometric iterpretation to monochrome"); 
     1271                PhotometricInterpretation pi = (PhotometricInterpretation)  
     1272                    getEnumeration(PhotometricInterpretation.class, "Monochrome"); 
     1273                lc.setPhotometricInterpretation(pi); 
     1274            } 
    12581275        } 
    12591276        } 
    … …  
    12791296                channels.get(logicalChannelIndex).getLogicalChannel(); 
    12801297            lc.setEmissionWave(emWave); 
     1298            if (lc.getPhotometricInterpretation() == null) 
     1299            { 
     1300                log.debug("Setting Photometric iterpretation to monochrome"); 
     1301                PhotometricInterpretation pi = (PhotometricInterpretation)  
     1302                    getEnumeration(PhotometricInterpretation.class, "Monochrome"); 
     1303                lc.setPhotometricInterpretation(pi); 
     1304            } 
    12811305        } 
    12821306        } 
  • branches/3.0-Beta2.3/components/bioformats-omero/src/ome/formats/importer/ImportFixture.java

    r2228 r2307  
    9090    public void setUp() throws Exception 
    9191    { 
    92         this.library = new ImportLibrary(store, reader, fadMap(this.fads)); 
     92        this.library = new ImportLibrary(store, reader); 
    9393    } 
    9494 
  • branches/3.0-Beta2.3/components/bioformats-omero/src/ome/formats/importer/ImportHandler.java

    r2228 r2307  
    4343    private Thread runThread; 
    4444    HistoryDB db = null; 
     45    private ImportContainer[] fads = null; 
    4546 
    4647     
    … …  
    6061            OMEROWrapper reader, ImportContainer[] fads) 
    6162    { 
     63        this.fads = fads; 
    6264        db = HistoryDB.getHistoryDB(); 
    6365         
    … …  
    7375            this.store = store; 
    7476            this.qTable = qTable; 
    75             this.library = new ImportLibrary(store, reader, fads); 
     77            this.library = new ImportLibrary(store, reader); 
    7678            library.addObserver(qTable); 
    7779            library.addObserver(viewer); 
    … …  
    119121        viewer.appendToOutputLn("> Starting import at: " + myDate + "\n"); 
    120122        viewer.statusBar.setStatusIcon("gfx/import_icon_16.png", "Now importing."); 
    121          
    122         ImportContainer[] fads = library.getFilesAndDatasets(); 
     123 
    123124        qTable.importBtn.setText("Cancel"); 
    124125        qTable.importing = true; 
  • branches/3.0-Beta2.3/components/bioformats-omero/src/ome/formats/importer/ImportLibrary.java

    r2228 r2307  
    1818import java.io.File; 
    1919import java.io.IOException; 
    20 import java.io.PrintWriter; 
    21 import java.io.StringWriter; 
    2220import java.nio.ByteBuffer; 
    2321import java.nio.IntBuffer; 
    … …  
    117115     * @param fads2 not null, length > 0 
    118116     */ 
    119     public ImportLibrary(OMEROMetadataStore store, OMEROWrapper reader, 
    120             ImportContainer[] fads) 
     117    public ImportLibrary(OMEROMetadataStore store, OMEROWrapper reader) 
    121118    { 
    122119        this.store = store; 
    123120        this.reader = reader; 
    124         this.fads = fads; 
    125          
    126         if (store == null || reader == null || fads == null 
    127                 || fads.length == 0) 
     121         
     122        if (store == null || reader == null) 
    128123        { 
    129124            throw new ApiUsageException( 
    … …  
    377372             
    378373            notifyObservers(Actions.DATA_STORED, args); 
    379  
     374             
    380375            if (archive == true) 
    381376            { 
  • branches/3.0-Beta2.3/components/bioformats-omero/src/ome/formats/importer/LoginHandler.java

    r2228 r2307  
    7676 
    7777    private boolean modal; 
    78      
    79  
     78       
    8079    LoginHandler(Main viewer, boolean modal, boolean center) 
    8180    { 

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/