Changeset 2307 for branches/3.0-Beta2.3/components/bioformats-omero/src/ome/formats/OMEROMetadataStore.java
- Timestamp:
- 03/21/08 13:53:11 (8 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0-Beta2.3/components/bioformats-omero/src/ome/formats/OMEROMetadataStore.java
r2294 r2307 150 150 // Instantiate our service factory 151 151 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); 159 154 160 155 exp = iQuery.findByString(Experimenter.class, "omeName", username); … … 184 179 { 185 180 // Now initialize all our services 186 iQuery = sf.getQueryService(); 187 iUpdate = sf.getUpdateService(); 188 pservice = sf.createRawPixelsStore(); 181 InitializeServices(sf); 182 189 183 } catch (Throwable t) 190 184 { 191 185 throw new Exception(t); 192 186 } 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(); 193 203 } 194 204 … … 1256 1266 channels.get(logicalChannelIndex).getLogicalChannel(); 1257 1267 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 } 1258 1275 } 1259 1276 } … … 1279 1296 channels.get(logicalChannelIndex).getLogicalChannel(); 1280 1297 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 } 1281 1305 } 1282 1306 }
