chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1183368 - /chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/PropertyEditorFrame.java
Date Fri, 14 Oct 2011 14:26:43 GMT
Author: fmui
Date: Fri Oct 14 14:26:42 2011
New Revision: 1183368

URL: http://svn.apache.org/viewvc?rev=1183368&view=rev
Log:
Workbench: fixed property editor (empty multi-value properties were not editable)

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/PropertyEditorFrame.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/PropertyEditorFrame.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/PropertyEditorFrame.java?rev=1183368&r1=1183367&r2=1183368&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/PropertyEditorFrame.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/PropertyEditorFrame.java
Fri Oct 14 14:26:42 2011
@@ -273,22 +273,22 @@ public class PropertyEditorFrame extends
                         valueComponents.add(valueField);
                         add(valueField);
                     }
+                }
 
-                    JPanel addPanel = new JPanel(new BorderLayout());
-                    addPanel.setBackground(bgColor);
-                    JButton addButton = new JButton(ICON_ADD);
-                    addButton.addActionListener(new ActionListener() {
-                        @Override
-                        public void actionPerformed(ActionEvent e) {
-                            addNewValue();
-                            setStatus(StatusFlag.Update);
-                        }
-                    });
-                    addPanel.add(addButton, BorderLayout.LINE_END);
-                    add(addPanel);
+                JPanel addPanel = new JPanel(new BorderLayout());
+                addPanel.setBackground(bgColor);
+                JButton addButton = new JButton(ICON_ADD);
+                addButton.addActionListener(new ActionListener() {
+                    @Override
+                    public void actionPerformed(ActionEvent e) {
+                        addNewValue();
+                        setStatus(StatusFlag.Update);
+                    }
+                });
+                addPanel.add(addButton, BorderLayout.LINE_END);
+                add(addPanel);
 
-                    updatePositions();
-                }
+                updatePositions();
             }
 
             setMaximumSize(new Dimension(Short.MAX_VALUE, getPreferredSize().height));



Mime
View raw message