chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1023749 - in /incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main: java/org/apache/chemistry/opencmis/workbench/details/ start/
Date Mon, 18 Oct 2010 11:51:37 GMT
Author: fmui
Date: Mon Oct 18 11:51:37 2010
New Revision: 1023749

URL: http://svn.apache.org/viewvc?rev=1023749&view=rev
Log:
- workbench: double-click know opens renditions

Modified:
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/RenditionTable.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/VersionTable.java
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/start/workbench.sh

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/RenditionTable.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/RenditionTable.java?rev=1023749&r1=1023748&r2=1023749&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/RenditionTable.java
(original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/RenditionTable.java
Mon Oct 18 11:51:37 2010
@@ -40,7 +40,12 @@ public class RenditionTable extends Abst
     @Override
     public void doubleClickAction(MouseEvent e, int rowIndex) {
         String streamId = getObject().getRenditions().get(rowIndex).getStreamId();
-        ClientHelper.download(this, (Document) getObject(), streamId);
+        
+        if (e.isShiftDown()) {
+            ClientHelper.download(this.getParent(), (Document) getObject(), streamId);
+        } else {
+            ClientHelper.open(this.getParent(), (Document) getObject(), streamId);
+        }
     }
 
     @Override

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/VersionTable.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/VersionTable.java?rev=1023749&r1=1023748&r2=1023749&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/VersionTable.java
(original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/VersionTable.java
Mon Oct 18 11:51:37 2010
@@ -57,7 +57,6 @@ public class VersionTable extends Abstra
         } else {
             ClientHelper.open(this.getParent(), getVersions().get(rowIndex), null);
         }
-
     }
 
     @Override

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/start/workbench.sh
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/start/workbench.sh?rev=1023749&r1=1023748&r2=1023749&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/start/workbench.sh
(original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/start/workbench.sh
Mon Oct 18 11:51:37 2010
@@ -30,8 +30,8 @@ else
 fi
 
 
-SCRIPT_DIR=$(dirname $0)
-cd $SCRIPT_DIR
+SCRIPT_DIR=$(dirname "$0")
+cd "$SCRIPT_DIR"
 
 if ! [ -f lib/@workbench.jar@ ];
 then



Mime
View raw message