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

Show
Ignore:
Timestamp:
10/02/08 11:19:16 (7 weeks ago)
Author:
jburel
Message:

Fixed remaining bugs

Location:
branches/Beta3.1/SRC/org/openmicroscopy/shoola
Files:
1 added
16 modified

  • agents/dataBrowser/view/DataBrowserToolBar.java (modified) (3 diffs)
  • agents/events/iviewer/ViewImage.java (modified) (3 diffs)
  • agents/imviewer/actions/ProjectionAction.java (modified) (1 diff)
  • agents/imviewer/util/proj/ProjectionDialog.java (modified) (6 diffs)
  • agents/imviewer/util/proj/ProjectionDialogControl.java (modified) (4 diffs)
  • agents/imviewer/util/proj/ProjectionSavingDialog.java (modified) (8 diffs)
  • agents/imviewer/view/ImViewerControl.java (modified) (1 diff)
  • agents/metadata/IconManager.java (modified) (1 diff)
  • agents/metadata/browser/Browser.java (modified) (1 diff)
  • agents/metadata/editor/ToolBar.java (modified) (1 diff)
  • agents/metadata/editor/ViewedByUI.java (modified) (1 diff)
  • agents/metadata/graphx/nuvola_folder_darkblue_open16.png (added)
  • agents/metadata/view/MetadataViewerComponent.java (modified) (3 diffs)
  • agents/treeviewer/view/StatusBar.java (modified) (2 diffs)
  • env/data/OMEROGateway.java (modified) (2 diffs)
  • util/ui/search/SearchPanel.java (modified) (1 diff)
  • util/ui/search/SearchUtil.java (modified) (1 diff)

Legend:

Unmodified
Added
Removed
  • branches/Beta3.1/SRC/org/openmicroscopy/shoola/agents/dataBrowser/view/DataBrowserToolBar.java

    r5470 r5640  
    323323                thumbView = new JToggleButton( 
    324324                                        icons.getIcon(IconManager.THUMBNAIL_VIEW)); 
    325                 thumbView.setToolTipText("Thumbnails View."); 
     325                thumbView.setToolTipText("View as Thumbnails."); 
    326326                thumbView.addActionListener(this); 
    327327                thumbView.setActionCommand(""+DataBrowserUI.THUMB_VIEW); 
    … …  
    330330                columnsView = new JToggleButton( 
    331331                                icons.getIcon(IconManager.COLUMN_VIEW)); 
    332                 columnsView.setToolTipText("Table View."); 
     332                columnsView.setToolTipText("View as Table."); 
    333333                columnsView.addActionListener(this); 
    334334                columnsView.setActionCommand(""+DataBrowserUI.COLUMNS_VIEW); 
    … …  
    337337                slideShowView = new JButton( 
    338338                                icons.getIcon(IconManager.SLIDE_SHOW_VIEW)); 
    339                 slideShowView.setToolTipText("Slideshow"); 
     339                slideShowView.setToolTipText("Show slideshow"); 
    340340                UIUtilities.unifiedButtonLookAndFeel(slideShowView); 
    341341                slideShowView.addMouseListener(new MouseAdapter() { 
  • branches/Beta3.1/SRC/org/openmicroscopy/shoola/agents/events/iviewer/ViewImage.java

    r5509 r5640  
    3636import org.openmicroscopy.shoola.env.rnd.RndProxyDef; 
    3737 
     38import pojos.DataObject; 
    3839import pojos.ImageData; 
    3940 
    … …  
    6970    private long                selectedUserID; 
    7071     
     72    /** The parent object. */ 
     73    private DataObject  parentContext; 
     74     
    7175    /** 
    7276     * Creates a new instance. 
    … …  
    8387        selectedUserID = -1; 
    8488    } 
     89     
     90    /** 
     91     * Sets the parent of the image. 
     92     *  
     93     * @param parentContext The parent to set. 
     94     */ 
     95    public void setParentContext(DataObject parentContext) 
     96    { 
     97        this.parentContext = parentContext;      
     98    } 
     99     
     100    /** 
     101     * Returns the parent. 
     102     *  
     103     * @return See above. 
     104     */ 
     105    public DataObject getParentObject() { return parentContext; } 
    85106     
    86107    /** 
  • branches/Beta3.1/SRC/org/openmicroscopy/shoola/agents/imviewer/actions/ProjectionAction.java

    r5528 r5640  
    5858     
    5959    /** The description of the action. */ 
    60     private static final String DESCRIPTION = "Projection."; 
     60    private static final String DESCRIPTION = "Open Projection Tool."; 
    6161     
    6262    /**  
  • branches/Beta3.1/SRC/org/openmicroscopy/shoola/agents/imviewer/util/proj/ProjectionDialog.java

    r5619 r5640  
    3030import java.awt.Cursor; 
    3131import java.awt.Dimension; 
     32import java.awt.event.WindowAdapter; 
     33import java.awt.event.WindowEvent; 
    3234import java.awt.image.BufferedImage; 
    3335import java.util.ArrayList; 
    … …  
    9294        /** Bound property indicating to load the datasets containing the image. */ 
    9395        public static final String              LOAD_DATASETS_PROPERTY = "loadDatasets"; 
     96         
     97        /** Bound property indicating to close the window. */ 
     98        public static final String              CLOSE_DIALOG_PROPERTY = "closeDialog"; 
    9499         
    95100    /** Dimension of the box between the channel buttons. */ 
    … …  
    228233        types = new JComboBox(names); 
    229234        getRootPane().setDefaultButton(previewButton); 
     235         
     236                addWindowListener(new WindowAdapter() { 
     237                        public void windowClosing(WindowEvent e) {  
     238                                super.windowClosing(e); 
     239                                firePropertyChange(CLOSE_DIALOG_PROPERTY, Boolean.FALSE,  
     240                                                Boolean.TRUE); 
     241                        } 
     242                }); 
    230243        } 
    231244         
    … …  
    288301                                {TableLayout.PREFERRED, TableLayout.FILL}}; 
    289302                body.setLayout(new TableLayout(tl)); 
    290                 TextualTwoKnobsSlider pp = new TextualTwoKnobsSlider(); 
    291                 pp.layoutComponents(); 
    292303                body.add(buildControlComponent(), "0, 0, 1, 0"); 
    293                 body.add(pp, "0, 0, 1, 0"); 
    294304                body.add(buildToolBar(), "0, 1"); 
    295305                body.add(uiDelegate, "1, 1"); 
    … …  
    432442                statusLabel.setText("Projecting..."); 
    433443                firePropertyChange(PROJECTION_PREVIEW_PROPERTY, null, ref); 
    434                 //setModal(true); 
    435444        } 
    436445         
    … …  
    522531        { 
    523532                enableButtons(false); 
     533                setModal(false); 
    524534                ProjectionSavingDialog d = new ProjectionSavingDialog(this, containers); 
    525535                UIUtilities.centerAndShow(this, d); 
  • branches/Beta3.1/SRC/org/openmicroscopy/shoola/agents/imviewer/util/proj/ProjectionDialogControl.java

    r5619 r5640  
    3131import java.beans.PropertyChangeEvent; 
    3232import java.beans.PropertyChangeListener; 
    33 import java.util.Collection; 
    3433import java.util.Iterator; 
    3534import java.util.Map; 
    … …  
    3938//Application-internal dependencies 
    4039import org.openmicroscopy.shoola.agents.imviewer.util.ChannelButton; 
    41 import org.openmicroscopy.shoola.util.ui.UIUtilities; 
    4240 
    4341/**  
    … …  
    7876                this.model = model; 
    7977        } 
    80  
    81         /**  
    82          * Sets the datasets containing the image to project. 
    83          *  
    84          * @param datasets The datasets containing the image. 
    85          */ 
    86         public void setContainers(Collection datasets) 
    87         { 
    88                 ProjectionSavingDialog d = new ProjectionSavingDialog(model, datasets); 
    89                 UIUtilities.centerAndShow(d); 
    90         } 
    9178         
    9279        /** 
    … …  
    10390                        case PROJECT: 
    10491                                model.loadDatasets(); 
    105                                 break; 
    10692                } 
    10793        } 
  • branches/Beta3.1/SRC/org/openmicroscopy/shoola/agents/imviewer/util/proj/ProjectionSavingDialog.java

    r5619 r5640  
    4343import javax.swing.Box; 
    4444import javax.swing.BoxLayout; 
    45 import javax.swing.ButtonGroup; 
    4645import javax.swing.JButton; 
    4746import javax.swing.JCheckBox; 
    … …  
    5150import javax.swing.JLabel; 
    5251import javax.swing.JPanel; 
    53 import javax.swing.JRadioButton; 
    5452import javax.swing.JScrollPane; 
    5553import javax.swing.JSeparator; 
    … …  
    109107        /** The text field hosting the name of the file. */ 
    110108        private JTextField                                      nameField; 
    111          
    112         /** Button to project the active channels. */ 
    113         private JRadioButton                            activeChannels; 
    114          
    115         /** Button to projec the whole image. */ 
    116         private JRadioButton                            allChannels; 
    117109 
    118110        /** Closes the window. */ 
    … …  
    229221                selectionPane =  new JPanel(); 
    230222                selectionPane.setLayout(new BoxLayout(selectionPane, BoxLayout.Y_AXIS)); 
    231          
    232                 activeChannels = new JRadioButton("Active channels"); 
    233                 allChannels = new JRadioButton("All channels"); 
    234                 allChannels.setSelected(true); 
    235                 ButtonGroup group = new ButtonGroup(); 
    236                 group.add(allChannels); 
    237                 group.add(activeChannels); 
    238  
    239                 closeButton = new JButton("Close"); 
     223                closeButton = new JButton("Cancel"); 
    240224                closeButton.setToolTipText(UIUtilities.formatToolTipText( 
    241225                                "Close the window.")); 
    … …  
    316300         * @return See above. 
    317301         */ 
    318         private JPanel buildChannelsPanel() 
    319         { 
    320                 JPanel p = new JPanel(); 
    321         p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS)); 
    322         p.add(allChannels); 
    323         p.add(activeChannels); 
    324         return UIUtilities.buildComponentPanel(p); 
    325         } 
    326          
    327         /** 
    328          * Builds and lays out the channels options. 
    329          *  
    330          * @return See above. 
    331          */ 
    332302        private JPanel buildTimeRangePanel() 
    333303        { 
    … …  
    363333        double[][] tl = {{TableLayout.PREFERRED, TableLayout.FILL}, //columns 
    364334                                        {TableLayout.PREFERRED, TableLayout.PREFERRED, 5,  
    365                                         TableLayout.PREFERRED, height, 5, 
     335                                        TableLayout.PREFERRED, TableLayout.PREFERRED, height, 5, 
    366336                                        TableLayout.PREFERRED, TableLayout.FILL} }; //rows 
    367337        content.setLayout(new TableLayout(tl)); 
    … …  
    372342        content.add(new JLabel(), "0, 2, 1, 2"); 
    373343        content.add(UIUtilities.setTextFont("Save in "), "0, 3, l, c"); 
    374         content.add(new JScrollPane(selectionPane), "1, 3, 1, 4"); 
     344        content.add(UIUtilities.setTextFont("datasets "), "0, 4, l, c"); 
     345        content.add(new JScrollPane(selectionPane), "1, 3, 1, 5"); 
    375346        if (selection != null) { 
    376347                Iterator i = selection.keySet().iterator(); 
    … …  
    378349                        selectionPane.add((JComponent) i.next()); 
    379350        } 
    380         content.add(new JLabel(), "0, 5, 1, 5"); 
    381         content.add(UIUtilities.setTextFont("Project "), "0, 6, l, c"); 
    382         content.add(buildParametersPanel(), "1, 6, 1, 7"); 
     351        content.add(new JLabel(), "0, 6, 1, 6"); 
     352        content.add(UIUtilities.setTextFont("Project "), "0, 7, l, c"); 
     353        content.add(buildParametersPanel(), "1, 7, 1, 8"); 
    383354                return content; 
    384355        } 
  • branches/Beta3.1/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerControl.java

    r5619 r5640  
    829829                } else if (ProjectionDialog.LOAD_DATASETS_PROPERTY.equals(pName)) { 
    830830                        model.loadContainers(); 
     831                } else if (ProjectionDialog.CLOSE_DIALOG_PROPERTY.equals(pName)) { 
     832                        view.requestFocus(); 
    831833                } 
    832834        } 
  • branches/Beta3.1/SRC/org/openmicroscopy/shoola/agents/metadata/IconManager.java

    r5564 r5640  
    218218                relPaths[URL] = "nuvola_browser16.png"; 
    219219                //relPaths[PROJECT] = "nuvola_document16.png"; 
    220                 relPaths[PROJECT] = "nuvola_folder_blue_open16.png";  
    221                 relPaths[PROJECT] = "nuvola_folder_blue_open16.png"; 
     220                relPaths[PROJECT] = "nuvola_folder_darkblue_open16.png";  
    222221        relPaths[DATASET] = "nuvola_folder_image16.png"; 
    223222        relPaths[IMAGE] = "nuvola_image16.png"; 
  • branches/Beta3.1/SRC/org/openmicroscopy/shoola/agents/metadata/browser/Browser.java

    r5621 r5640  
    5454 
    5555        /** The title related to this component. */ 
    56         public static final String              TITLE = "Related to"; 
     56        public static final String              TITLE = "Contained in"; 
    5757         
    5858        /** Bound property indicating that nodes are selected. */ 
  • branches/Beta3.1/SRC/org/openmicroscopy/shoola/agents/metadata/editor/ToolBar.java

    r5450 r5640  
    131131                saveButton.setEnabled(false); 
    132132                downloadButton = new JButton(icons.getIcon(IconManager.DOWNLOAD)); 
    133                 downloadButton.setToolTipText("Download the archived files."); 
     133                downloadButton.setToolTipText("Download the Archived File(s)."); 
    134134                downloadButton.addActionListener(this); 
    135135                downloadButton.setActionCommand(""+DOWNLOAD); 
    136136                downloadButton.setEnabled(false); 
    137137                infoButton = new JButton(icons.getIcon(IconManager.INFO)); 
    138                 infoButton.setToolTipText("View image's info."); 
     138                infoButton.setToolTipText("View Image's info."); 
    139139                infoButton.addActionListener(this); 
    140140                infoButton.setActionCommand(""+INFO); 
  • branches/Beta3.1/SRC/org/openmicroscopy/shoola/agents/metadata/editor/ViewedByUI.java

    r5513 r5640  
    120120                IconManager icons = IconManager.getInstance(); 
    121121                listView = new JToggleButton(icons.getIcon(IconManager.LIST_VIEW)); 
    122                 listView.setToolTipText("List View"); 
     122                listView.setToolTipText("View as List."); 
    123123                listView.setActionCommand(""+LIST_VIEW); 
    124124                listView.addActionListener(this); 
    125125                gridView = new JToggleButton(icons.getIcon(IconManager.GRID_VIEW)); 
    126                 gridView.setToolTipText("Grid View"); 
     126                gridView.setToolTipText("View as Grid."); 
    127127                gridView.setActionCommand(""+GRID_VIEW); 
    128128                gridView.addActionListener(this); 
  • branches/Beta3.1/SRC/org/openmicroscopy/shoola/agents/metadata/view/MetadataViewerComponent.java

    r5620 r5640  
    316316                        dialog = new MessageBox(view, "Save Annotations",  
    317317                                                         "Do you want to attach the annotations to: "); 
     318                        dialog.setNoText("Cancel"); 
     319                        dialog.setYesText("OK"); 
    318320                        JPanel p = new JPanel(); 
    319321                        p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS)); 
    … …  
    345347                        dialog = new MessageBox(view, "Save Annotations",  
    346348                                                         "Do you want to attach the annotations to: "); 
     349                        dialog.setNoText("Cancel"); 
     350                        dialog.setYesText("OK"); 
    347351                        JPanel p = new JPanel(); 
    348352                        p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS)); 
    … …  
    390394                        dialog = new MessageBox(view, "Save Annotations",  
    391395                                     "Do you want to attach the annotations to: "); 
     396                        dialog.setNoText("Cancel"); 
     397                        dialog.setYesText("OK"); 
    392398                        JPanel p = new JPanel(); 
    393399                        p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS)); 
  • branches/Beta3.1/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/StatusBar.java

    r4956 r5640  
    9999    { 
    100100        icons = IconManager.getInstance(); 
    101         progressLabel = new JLabel(icons.getIcon(IconManager.PROGRESS)); 
     101        progressLabel = new JLabel(icons.getIcon(IconManager.TRANSPARENT)); 
    102102        progressBar = new JProgressBar(); 
    103103        progressBar.setIndeterminate(true); 
    … …  
    186186        progressBar.setVisible(!hide); 
    187187        progressLabel.setEnabled(!hide); 
     188        if (hide) progressLabel.setIcon(icons.getIcon(IconManager.TRANSPARENT)); 
     189        else progressLabel.setIcon(icons.getIcon(IconManager.PROGRESS)); 
    188190    } 
    189191     
  • branches/Beta3.1/SRC/org/openmicroscopy/shoola/env/data/OMEROGateway.java

    r5637 r5640  
    642642        { 
    643643                if (terms == null || terms.size() == 0) return null; 
    644                 String value; 
    645                 int n; 
    646                 char[] arr; 
    647                 String v; 
    648                 String[] formattedTerms = new String[terms.size()]; 
    649                 Iterator<String> j = terms.iterator(); 
    650                 int k = 0; 
    651                 while (j.hasNext()) { 
    652                         value = j.next(); 
    653                         if (startWithWildCard(value))  
    654                                 service.setAllowLeadingWildcard(true); 
    655                         //format string 
    656                         n = value.length(); 
    657                         arr = new char[n]; 
    658                         v = ""; 
    659                         value.getChars(0, n, arr, 0);   
    660                         for (int i = 0; i < arr.length; i++) { 
    661                                 if (SUPPORTED_SPECIAL_CHAR.contains(arr[i]))  
    662                                         v += "\\"+arr[i]; 
    663                                 else v += arr[i]; 
    664                         } 
    665                         formattedTerms[k] = v.toLowerCase() ; 
    666                 } 
    667  
    668                 return formattedTerms; 
     644                String[] values = new String[terms.size()]; 
     645                Iterator<String> i = terms.iterator(); 
     646                int index = 0; 
     647                while (i.hasNext()) { 
     648                        values[index] = i.next(); 
     649                        index++; 
     650                } 
     651                return prepareTextSearch(values, service); 
    669652        } 
    670653 
    … …  
    28062789                                fNone = formatText(none, "url"); 
    28072790                        } 
    2808                          
    28092791                        owner = owners.iterator(); 
    28102792                        if (fSome != null) { 
  • branches/Beta3.1/SRC/org/openmicroscopy/shoola/util/ui/search/SearchPanel.java

    r5609 r5640  
    10411041                String text = allTermsArea.getText(); 
    10421042                List l = SearchUtil.splitTerms(text); 
     1043                System.err.println(l); 
    10431044                if (l.size() > 0)  
    10441045                        return (String[]) l.toArray(new String[] {}); 
  • branches/Beta3.1/SRC/org/openmicroscopy/shoola/util/ui/search/SearchUtil.java

    r5486 r5640  
    111111                                value = value.trim(); 
    112112                                if (value.length() != 0 && !value.equals(ALL) &&  
    113                                                 !value.equals(COMMA_SEPARATOR)) l.add(value); 
     113                                                !value.equals(COMMA_SEPARATOR)) { 
     114                                        if (value.contains(",")) value = value.replace(",", ""); 
     115                                        l.add(value); 
     116                                } 
    114117                        } 
    115118                } 

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/