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 2016/09/25 11:55:02 UTC

svn commit: r1762191 - in /chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench: types/PropertyDefinitionsSplitPane.java worker/OpenContentWorker.java

Author: fmui
Date: Sun Sep 25 11:55:02 2016
New Revision: 1762191

URL: http://svn.apache.org/viewvc?rev=1762191&view=rev
Log:
Workbench:minor corrections

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/types/PropertyDefinitionsSplitPane.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/worker/OpenContentWorker.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/types/PropertyDefinitionsSplitPane.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/types/PropertyDefinitionsSplitPane.java?rev=1762191&r1=1762190&r2=1762191&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/types/PropertyDefinitionsSplitPane.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/types/PropertyDefinitionsSplitPane.java Sun Sep 25 11:55:02 2016
@@ -182,7 +182,7 @@ public class PropertyDefinitionsSplitPan
         public void setType(ObjectType type) {
             this.type = type;
 
-            if ((type != null) && (type.getPropertyDefinitions() != null)) {
+            if (type != null && type.getPropertyDefinitions() != null) {
                 propertyDefintions = new ArrayList<PropertyDefinition<?>>();
                 for (PropertyDefinition<?> propDef : type.getPropertyDefinitions().values()) {
                     propertyDefintions.add(propDef);
@@ -200,7 +200,7 @@ public class PropertyDefinitionsSplitPan
 
             ((AbstractTableModel) getModel()).fireTableDataChanged();
 
-            if (type.getPropertyDefinitions() != null && !type.getPropertyDefinitions().isEmpty()) {
+            if (type != null && type.getPropertyDefinitions() != null && !type.getPropertyDefinitions().isEmpty()) {
                 getSelectionModel().setSelectionInterval(0, 0);
             } else {
                 propertyInfoPanel.setPropertyDefinition(null);

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/worker/OpenContentWorker.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/worker/OpenContentWorker.java?rev=1762191&r1=1762190&r2=1762191&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/worker/OpenContentWorker.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/worker/OpenContentWorker.java Sun Sep 25 11:55:02 2016
@@ -57,7 +57,7 @@ public abstract class OpenContentWorker
 
     @Override
     protected String getMessage() {
-        return "Opening Content '" + filename + "'...";
+        return "Opening Content " + (filename != null ? "'" + filename + "'" : "") + "...";
     }
 
     public Component getComponent() {