chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1424952 - in /chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench: ./ src/main/java/org/apache/chemistry/opencmis/workbench/ src/main/resources/scripts/
Date Fri, 21 Dec 2012 15:17:43 GMT
Author: fmui
Date: Fri Dec 21 15:17:43 2012
New Revision: 1424952

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

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/pom.xml
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypesFrame.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/counttypes.groovy
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/stats.groovy

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/pom.xml
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/pom.xml?rev=1424952&r1=1424951&r2=1424952&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/pom.xml
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/pom.xml
Fri Dec 21 15:17:43 2012
@@ -226,7 +226,7 @@
         <dependency>
             <groupId>org.codehaus.groovy</groupId>
             <artifactId>groovy-all</artifactId>
-            <version>2.0.1</version>
+            <version>2.0.6</version>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypesFrame.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypesFrame.java?rev=1424952&r1=1424951&r2=1424952&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypesFrame.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypesFrame.java
Fri Dec 21 15:17:43 2012
@@ -32,6 +32,7 @@ import java.io.InputStream;
 import java.io.OutputStream;
 import java.util.List;
 
+import javax.swing.ImageIcon;
 import javax.swing.JButton;
 import javax.swing.JFileChooser;
 import javax.swing.JFrame;
@@ -94,6 +95,12 @@ public class TypesFrame extends JFrame {
 
     private void createGUI() {
         setTitle(WINDOW_TITLE + " - " + model.getRepositoryName());
+        
+        ImageIcon icon = ClientHelper.getIcon("icon.png");
+        if (icon != null) {
+            setIconImage(icon.getImage());
+        }
+        
         setPreferredSize(new Dimension(1000, 700));
         setMinimumSize(new Dimension(200, 60));
         setLayout(new BorderLayout());

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/counttypes.groovy
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/counttypes.groovy?rev=1424952&r1=1424951&r2=1424952&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/counttypes.groovy
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/counttypes.groovy
Fri Dec 21 15:17:43 2012
@@ -23,6 +23,7 @@ import org.apache.chemistry.opencmis.com
 import org.apache.chemistry.opencmis.client.api.*
 
 println "'cmis:document' and subtypes:     " + countTypes("cmis:document")
+println "'cmis:item' and subtypes:         " + countTypes("cmis:item")
 println "'cmis:folder' and subtypes:       " + countTypes("cmis:folder")
 println "'cmis:relationship' and subtypes: " + countTypes("cmis:relationship")
 println "'cmis:policy' and subtypes:       " + countTypes("cmis:policy")

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/stats.groovy
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/stats.groovy?rev=1424952&r1=1424951&r2=1424952&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/stats.groovy
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/scripts/stats.groovy
Fri Dec 21 15:17:43 2012
@@ -31,6 +31,7 @@ println "Folder " + folder.getName();
 println "----------------------------------------------";
 println "Folders:   " + stats["folders"];
 println "Documents: " + stats["documents"];
+println "Items:     " + stats["items"];
 println "Policies:  " + stats["policies"];
 println "Content:   " + stats["bytes"] + " bytes";
 
@@ -40,6 +41,7 @@ def count(Folder folder, boolean tree = 
     def stats = [:];
     stats["folders"] = 0;
     stats["documents"] = 0;
+    stats["items"] = 0;
     stats["policies"] = 0;
     stats["bytes"] = 0;
 
@@ -62,6 +64,8 @@ def countInternal(Folder folder, boolean
             stats["documents"]++;  
             long size =((Document) child).getContentStreamLength();
             if (size > 0) { stats["bytes"] += size; }
+        } else if(child instanceof Item) {
+            stats["item"]++;
         } else if(child instanceof Policy) {
             stats["policies"]++;
         }



Mime
View raw message