Changeset 5670
- Timestamp:
- 10/09/08 15:27:16 (6 weeks ago)
- Location:
- trunk
- Files:
-
- 1 removed
- 4 modified
-
SRC/org/openmicroscopy/shoola/agents/imviewer/browser/BrowserModel.java (modified) (3 diffs)
-
SRC/org/openmicroscopy/shoola/env/data/DataServicesFactory.java (modified) (1 diff)
-
SRC/org/openmicroscopy/shoola/env/data/OMEROGateway.java (modified) (5 diffs)
-
config/container.xml (modified) (1 diff)
-
config/ice.config (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/org/openmicroscopy/shoola/agents/imviewer/browser/BrowserModel.java
r5609 r5670 40 40 //Application-internal dependencies 41 41 import org.openmicroscopy.shoola.agents.imviewer.IconManager; 42 import org.openmicroscopy.shoola.agents.imviewer.ImViewerAgent; 42 43 import org.openmicroscopy.shoola.agents.imviewer.actions.UnitBarSizeAction; 43 44 import org.openmicroscopy.shoola.agents.imviewer.actions.ZoomAction; … … 47 48 import org.openmicroscopy.shoola.agents.imviewer.view.ImViewer; 48 49 import org.openmicroscopy.shoola.agents.imviewer.view.ViewerPreferences; 50 import org.openmicroscopy.shoola.env.ui.UserNotifier; 49 51 import org.openmicroscopy.shoola.util.image.geom.Factory; 50 52 import org.openmicroscopy.shoola.util.ui.UIUtilities; … … 526 528 { 527 529 if (renderedImage == null) return; 528 if (zoomFactor != ZoomAction.DEFAULT_ZOOM_FACTOR) 529 displayedImage = Factory.magnifyImage(renderedImage, zoomFactor, 0);//Factory.magnifyImage(zoomFactor, renderedImage); 530 //Factory.magnifyImage(renderedImage, zoomFactor, 0); 531 else displayedImage = renderedImage; 530 if (zoomFactor != ZoomAction.DEFAULT_ZOOM_FACTOR) { 531 BufferedImage img = null; 532 try { 533 img = Factory.magnifyImage(renderedImage, zoomFactor, 0); 534 } catch (Exception e) { 535 UserNotifier un = ImViewerAgent.getRegistry().getUserNotifier(); 536 un.notifyInfo("Magnification", 537 "An error occurs while magnifying the image."); 538 } 539 if (img != null) displayedImage = img; 540 } else displayedImage = renderedImage; 532 541 } 533 542 -
trunk/SRC/org/openmicroscopy/shoola/env/data/DataServicesFactory.java
r5658 r5670 147 147 148 148 //Try and read the Ice config file. 149 Properties config = loadConfig(c.resolveConfigFile(ICE_CONFIG_FILE));149 //Properties config = loadConfig(c.resolveConfigFile(ICE_CONFIG_FILE)); 150 150 151 151 //Check what to do if null. 152 omeroGateway = new OMEROGateway(config, this); 153 152 //omeroGateway = new OMEROGateway(config, this); 153 omeroGateway = new OMEROGateway(omeroInfo.getPort(), this); 154 154 155 //omeroGateway = new OMEROGateway(omeroInfo.getPort(), this); 155 156 //Create the adapters. -
trunk/SRC/org/openmicroscopy/shoola/env/data/OMEROGateway.java
r5664 r5670 227 227 private Properties iceConfig; 228 228 229 /** The Blitz client object, this is the entry point to the 229 /** The port to connect. */ 230 private int port; 231 232 /** 233 * The Blitz client object, this is the entry point to the 230 234 * OMERO.Blitz Server. 231 235 */ … … 851 855 } 852 856 857 /** 858 * Creates a new instance. 859 * 860 * @param iceConfig The Ice configuration. 861 * @param dsFactory A reference to the factory. Used whenever a broken 862 * link is detected to get the Login Service and try 863 * reestablishing a valid link to <i>OMEDS</i>. 864 * Mustn't be <code>null</code>. 865 */ 866 OMEROGateway(int port, DataServicesFactory dsFactory) 867 { 868 if (dsFactory == null) 869 throw new IllegalArgumentException("No Data service factory."); 870 this.dsFactory = dsFactory; 871 this.port = port; 872 thumbRetrieval = 0; 873 } 874 853 875 /** 854 876 * Converts the specified POJO into the corresponding model. … … 1004 1026 1005 1027 //Put value of hostname 1028 /* 1006 1029 Set keys = iceConfig.keySet(); 1007 1030 Iterator i = keys.iterator(); … … 1014 1037 } 1015 1038 blitzClient = new client(iceConfig); 1039 */ 1040 if (port > 0) blitzClient = new client(hostName, port); 1041 else blitzClient = new client(hostName); 1016 1042 entry = blitzClient.createSession(userName, password); 1017 1043 connected = true; … … 1060 1086 thumbnailService = null; 1061 1087 fileStore = null; 1062 entry. closeOnDestroy();1088 entry.destroy(); 1063 1089 blitzClient.closeSession(); 1064 1090 entry = null; -
trunk/config/container.xml
r5643 r5670 34 34 <!-- OMERO Data Server (OMERO) configuration. 35 35 This entry specifies the hostname and the port to use to connect to 36 OMERO. 36 OMERO using blitz 37 port using JBoss 1099 37 38 --> 38 39 <structuredEntry name="/services/OMERODS" type="OMERODS"> 39 <port> 1099</port>40 <port>4063</port> 40 41 </structuredEntry> 41 42
