chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1443986 - /chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypeSplitPane.java
Date Fri, 08 Feb 2013 12:27:01 GMT
Author: fmui
Date: Fri Feb  8 12:27:01 2013
New Revision: 1443986

URL: http://svn.apache.org/r1443986
Log:
Workbench: added openChoice to property type table

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

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypeSplitPane.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypeSplitPane.java?rev=1443986&r1=1443985&r2=1443986&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypeSplitPane.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypeSplitPane.java
Fri Feb  8 12:27:01 2013
@@ -246,8 +246,9 @@ public class TypeSplitPane extends JSpli
 
         private static final String[] COLUMN_NAMES = { "Name", "Id", "Description", "Local
Namespace", "Local Name",
                 "Query Name", "Type", "Cardinality", "Updatability", "Queryable", "Orderable",
"Required", "Inherited",
-                "Default Value", "Choices" };
-        private static final int[] COLUMN_WIDTHS = { 200, 200, 200, 200, 200, 200, 80, 80,
80, 50, 50, 50, 50, 200, 200 };
+                "Default Value", "Open Choice", "Choices" };
+        private static final int[] COLUMN_WIDTHS = { 200, 200, 200, 200, 200, 200, 80, 80,
80, 50, 50, 50, 50, 200, 50,
+                200 };
 
         private ObjectType type;
         private List<PropertyDefinition<?>> propertyDefintions;
@@ -380,6 +381,8 @@ public class TypeSplitPane extends JSpli
                 case 13:
                     return propDef.getDefaultValue();
                 case 14:
+                    return propDef.isOpenChoice();
+                case 15:
                     return propDef.getChoices();
                 }
 
@@ -388,7 +391,7 @@ public class TypeSplitPane extends JSpli
 
             @Override
             public Class<?> getColumnClass(int columnIndex) {
-                if ((columnIndex == 13) || (columnIndex == 14)) {
+                if ((columnIndex == 13) || (columnIndex == 15)) {
                     return Collection.class;
                 }
 



Mime
View raw message