You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by fm...@apache.org on 2011/10/14 16:26:43 UTC
svn commit: r1183368 -
/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/PropertyEditorFrame.java
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));