Changeset 2307
- Timestamp:
- 03/21/08 13:53:11 (9 months ago)
- 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 4 4 <classpathentry kind="src" path="resources"/> 5 5 <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> 7 11 <classpathentry kind="lib" path="lib/spring-2.0.6.jar"/> 8 12 <classpathentry kind="lib" path="lib/quaqua-filechooser-only.jar"> -
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 } -
branches/3.0-Beta2.3/components/bioformats-omero/src/ome/formats/importer/ImportFixture.java
r2228 r2307 90 90 public void setUp() throws Exception 91 91 { 92 this.library = new ImportLibrary(store, reader , fadMap(this.fads));92 this.library = new ImportLibrary(store, reader); 93 93 } 94 94 -
branches/3.0-Beta2.3/components/bioformats-omero/src/ome/formats/importer/ImportHandler.java
r2228 r2307 43 43 private Thread runThread; 44 44 HistoryDB db = null; 45 private ImportContainer[] fads = null; 45 46 46 47 … … 60 61 OMEROWrapper reader, ImportContainer[] fads) 61 62 { 63 this.fads = fads; 62 64 db = HistoryDB.getHistoryDB(); 63 65 … … 73 75 this.store = store; 74 76 this.qTable = qTable; 75 this.library = new ImportLibrary(store, reader , fads);77 this.library = new ImportLibrary(store, reader); 76 78 library.addObserver(qTable); 77 79 library.addObserver(viewer); … … 119 121 viewer.appendToOutputLn("> Starting import at: " + myDate + "\n"); 120 122 viewer.statusBar.setStatusIcon("gfx/import_icon_16.png", "Now importing."); 121 122 ImportContainer[] fads = library.getFilesAndDatasets(); 123 123 124 qTable.importBtn.setText("Cancel"); 124 125 qTable.importing = true; -
branches/3.0-Beta2.3/components/bioformats-omero/src/ome/formats/importer/ImportLibrary.java
r2228 r2307 18 18 import java.io.File; 19 19 import java.io.IOException; 20 import java.io.PrintWriter;21 import java.io.StringWriter;22 20 import java.nio.ByteBuffer; 23 21 import java.nio.IntBuffer; … … 117 115 * @param fads2 not null, length > 0 118 116 */ 119 public ImportLibrary(OMEROMetadataStore store, OMEROWrapper reader, 120 ImportContainer[] fads) 117 public ImportLibrary(OMEROMetadataStore store, OMEROWrapper reader) 121 118 { 122 119 this.store = store; 123 120 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) 128 123 { 129 124 throw new ApiUsageException( … … 377 372 378 373 notifyObservers(Actions.DATA_STORED, args); 379 374 380 375 if (archive == true) 381 376 { -
branches/3.0-Beta2.3/components/bioformats-omero/src/ome/formats/importer/LoginHandler.java
r2228 r2307 76 76 77 77 private boolean modal; 78 79 78 80 79 LoginHandler(Main viewer, boolean modal, boolean center) 81 80 {
