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

Show
Ignore:
Timestamp:
10/09/08 15:27:16 (6 weeks ago)
Author:
jburel
Message:

modified login sequence

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  
    4040//Application-internal dependencies 
    4141import org.openmicroscopy.shoola.agents.imviewer.IconManager; 
     42import org.openmicroscopy.shoola.agents.imviewer.ImViewerAgent; 
    4243import org.openmicroscopy.shoola.agents.imviewer.actions.UnitBarSizeAction; 
    4344import org.openmicroscopy.shoola.agents.imviewer.actions.ZoomAction; 
    … …  
    4748import org.openmicroscopy.shoola.agents.imviewer.view.ImViewer; 
    4849import org.openmicroscopy.shoola.agents.imviewer.view.ViewerPreferences; 
     50import org.openmicroscopy.shoola.env.ui.UserNotifier; 
    4951import org.openmicroscopy.shoola.util.image.geom.Factory; 
    5052import org.openmicroscopy.shoola.util.ui.UIUtilities; 
    … …  
    526528    { 
    527529        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; 
    532541    } 
    533542    
  • trunk/SRC/org/openmicroscopy/shoola/env/data/DataServicesFactory.java

    r5658 r5670  
    147147         
    148148                //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)); 
    150150                 
    151151                //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         
    154155        //omeroGateway = new OMEROGateway(omeroInfo.getPort(), this); 
    155156                //Create the adapters. 
  • trunk/SRC/org/openmicroscopy/shoola/env/data/OMEROGateway.java

    r5664 r5670  
    227227        private Properties                              iceConfig; 
    228228 
    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  
    230234         * OMERO.Blitz Server.  
    231235         */ 
    … …  
    851855        } 
    852856 
     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         
    853875        /** 
    854876         * Converts the specified POJO into the corresponding model. 
    … …  
    10041026                         
    10051027                        //Put value of hostname 
     1028                        /* 
    10061029                        Set keys = iceConfig.keySet(); 
    10071030                        Iterator i = keys.iterator(); 
    … …  
    10141037                        } 
    10151038                        blitzClient = new client(iceConfig); 
     1039                        */ 
     1040                        if (port > 0) blitzClient = new client(hostName, port); 
     1041                        else blitzClient = new client(hostName); 
    10161042                        entry = blitzClient.createSession(userName, password); 
    10171043                        connected = true; 
    … …  
    10601086                        thumbnailService = null; 
    10611087                        fileStore = null; 
    1062                         entry.closeOnDestroy(); 
     1088                        entry.destroy(); 
    10631089                        blitzClient.closeSession(); 
    10641090                        entry = null; 
  • trunk/config/container.xml

    r5643 r5670  
    3434   <!-- OMERO Data Server (OMERO) configuration. 
    3535         This entry specifies the hostname and the port to use to connect to  
    36          OMERO. 
     36         OMERO using blitz 
     37         port using JBoss 1099 
    3738    --> 
    3839    <structuredEntry name="/services/OMERODS" type="OMERODS"> 
    39       <port>1099</port> 
     40      <port>4063</port> 
    4041    </structuredEntry> 
    4142     

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/