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

Show
Ignore:
Timestamp:
02/08/07 17:15:25 (22 months ago)
Author:
jburel
Message:

Fixed timeout problem and problem when user minimizes the Viewer

Location:
trunk
Files:
6 modified

  • OMERO.insight_Changelogs.txt (modified) (1 diff)
  • SRC/org/openmicroscopy/shoola/agents/imviewer/rnd/RendererControl.java (modified) (5 diffs)
  • SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/DOBasic.java (modified) (1 diff)
  • SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorUI.java (modified) (1 diff)
  • SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorUtil.java (modified) (3 diffs)
  • SRC/org/openmicroscopy/shoola/env/data/OMEROGateway.java (modified) (1 diff)

Legend:

Unmodified
Added
Removed
  • trunk/OMERO.insight_Changelogs.txt

    r4738 r4748  
    77  maintained at an OMERO server site. OMERO.insight is completely written in  
    88  Java. 
     9-------------------------------------------------------------------------------- 
     10Last updated: 08/02/2007 
     11Version: Beta 1.1 
     12 
     13Changes:  
     14 - Container/Viewer: Handle timeout problems of Thumbnail service and rendering 
     15 service.cf. ticket#235 
     16 - Viewer: Iconify/de-iconify issue cf. ticket#236 
    917-------------------------------------------------------------------------------- 
    1018Last updated: 23/01/2007 
  • trunk/SRC/org/openmicroscopy/shoola/agents/imviewer/rnd/RendererControl.java

    r4694 r4748  
    4646import org.openmicroscopy.shoola.agents.imviewer.actions.ResetSettingsAction; 
    4747import org.openmicroscopy.shoola.agents.imviewer.actions.ReverseIntensityAction; 
     48import org.openmicroscopy.shoola.agents.imviewer.actions.RndAction; 
    4849import org.openmicroscopy.shoola.agents.imviewer.actions.SaveSettingsAction; 
    4950import org.openmicroscopy.shoola.agents.imviewer.util.ChannelToggleButton; 
    … …  
    106107     * is regarded as the Model. 
    107108     */ 
    108     private Renderer    model; 
     109    private Renderer                            model; 
    109110     
    110111    /** Reference to the View. */ 
    111     private RendererUI  view; 
     112    private RendererUI                          view; 
    112113     
    113114    /** Maps actions ids onto actual <code>Action</code> object. */ 
    114     private Map         actionsMap; 
     115    private Map<Integer, RndAction>     actionsMap; 
     116     
     117    /** 
     118     * Flag indicating if the node was visible or not. 
     119     */ 
     120    private boolean             visibility; 
    115121     
    116122    /** Helper method to create all the UI actions. */ 
    … …  
    138144            public void windowClosing(WindowEvent e) 
    139145            { 
     146                visibility = false; 
    140147                view.setVisible(false); 
    141148            } 
    … …  
    151158    RendererControl() 
    152159    { 
    153         actionsMap = new HashMap(); 
     160        actionsMap = new HashMap<Integer, RndAction>(); 
    154161    } 
    155162     
    … …  
    257264            model.setSelectedChannel(v); 
    258265        } else if (name.equals(ImViewer.ICONIFIED_PROPERTY)) { 
    259             if (((Boolean) evt.getNewValue()).booleanValue()) view.iconify(); 
    260             //else view.deIconify(); 
     266            if (((Boolean) evt.getNewValue()).booleanValue()) { 
     267                if (view.isVisible()) { 
     268                        visibility = true; 
     269                } 
     270                view.setVisible(false); 
     271                //view.iconify(); 
     272            } else { 
     273                if (visibility) view.setVisible(true); 
     274                //if (view.getExtendedState() == Frame.ICONIFIED) 
     275                //      view.deIconify(); 
     276            } 
     277                //if (view.isVisible()) view.setVisible(false); 
    261278        } else if (name.equals(Renderer.INPUT_INTERVAL_PROPERTY)) { 
    262279            view.setInputInterval(); 
  • trunk/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/DOBasic.java

    r4744 r4748  
    272272        setLayout(new BorderLayout()); 
    273273        add(buildContentPanel(), BorderLayout.NORTH); 
    274         if (model.isAnnotatable())  
     274        if (model.isAnnotatable() &&  
     275                        model.getEditorType() == Editor.PROPERTIES_EDITOR)  
    275276            add(tabbedPane, BorderLayout.CENTER); 
    276277    } 
  • trunk/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorUI.java

    r4735 r4748  
    717717                if (c instanceof DOInfo && ho instanceof ImageData) { 
    718718                    ImageData img = (ImageData) ho; 
    719                     Map details =  
    720                         EditorUtil.transformPixelsData(img.getDefaultPixels()); 
     719                    Map<String, String> details =  
     720                        EditorUtil.transformPixelsData(img.getDefaultPixels()); 
    721721                    List waves = model.getChannelsData(); 
    722722                    if (waves == null) return; 
  • trunk/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorUtil.java

    r4695 r4748  
    104104     *                  the corresponding fields' values. 
    105105     */ 
    106     static Map transformExperimenterData(ExperimenterData data) 
     106    static Map<String, String> transformExperimenterData(ExperimenterData data) 
    107107    { 
    108         LinkedHashMap details = new LinkedHashMap(3); 
     108        LinkedHashMap<String, String> details =  
     109                                                                new LinkedHashMap<String, String>(3); 
    109110        if (data == null) { 
    110111            details.put(NAME, ""); 
    … …  
    134135     *                  the corresponding fields' values. 
    135136     */ 
    136     static Map transformPixelsData(PixelsData data) 
     137    static Map<String, String> transformPixelsData(PixelsData data) 
    137138    { 
    138         LinkedHashMap details = new LinkedHashMap(9); 
     139        LinkedHashMap<String, String> details =  
     140                                                        new LinkedHashMap<String, String>(9); 
    139141        if (data == null) { 
    140142            details.put(SIZE_X, ""); 
    … …  
    176178     *                  the corresponding fields' values. 
    177179     */ 
    178     static Map transformGroup(GroupData data) 
     180    static Map<String, String> transformGroup(GroupData data) 
    179181    { 
    180         HashMap details = new HashMap(2); 
     182        HashMap<String, String> details = new HashMap<String, String>(2); 
    181183        if (data == null) { 
    182184            details.put(NAME, ""); 
  • trunk/SRC/org/openmicroscopy/shoola/env/data/OMEROGateway.java

    r4747 r4748  
    875875                                                new Integer(sizeY)); 
    876876        } catch (Throwable t) { 
    877                 if (t instanceof EJBException | t instanceof RuntimeException) { 
     877                if (t instanceof EJBException ||  
     878                                t.getCause() instanceof IllegalStateException) { 
    878879                        thumbnailService = null; 
    879880                        throw new DSOutOfServiceException( 

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/