chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1301943 - in /chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main: java/org/apache/chemistry/opencmis/workbench/ java/org/apache/chemistry/opencmis/workbench/actions/ java/org/apache/chemistry/opencm...
Date Sat, 17 Mar 2012 14:30:48 GMT
Author: fmui
Date: Sat Mar 17 14:30:47 2012
New Revision: 1301943

URL: http://svn.apache.org/viewvc?rev=1301943&view=rev
Log:
Workbench: improved reloading after actions and added icons for checked out documents and PWCs

Added:
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/images/checkedout.png   (with props)
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/images/pwc.png   (with props)
Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/FolderTable.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/PropertyEditorFrame.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/AclUpdatePanel.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/AddObjectToFolderPanel.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/ApplyPolicyPanel.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/CancelCheckOutPanel.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/CheckInPanel.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/CheckOutPanel.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/DeleteContentStreamPanel.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/DeletePanel.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/DeleteTreePanel.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/MovePanel.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/PropertyUpdatePanel.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/RemoveObjectFromFolderPanel.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/RemovePolicyPanel.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/SetContentStreamPanel.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/ACLTable.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/PropertyTable.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/model/ClientSession.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/ActionPanel.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/META-INF/README

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/FolderTable.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/FolderTable.java?rev=1301943&r1=1301942&r2=1301943&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/FolderTable.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/FolderTable.java Sat Mar 17 14:30:47 2012
@@ -70,6 +70,8 @@ public class FolderTable extends JTable 
     private final ClientModel model;
 
     private Map<BaseTypeId, ImageIcon> icons;
+    private ImageIcon checkedOutIcon;
+    private ImageIcon pwcIcon;
 
     public FolderTable(final ClientModel model) {
         super();
@@ -170,6 +172,9 @@ public class FolderTable extends JTable 
         icons.put(BaseTypeId.CMIS_FOLDER, ClientHelper.getIcon("folder.png"));
         icons.put(BaseTypeId.CMIS_RELATIONSHIP, ClientHelper.getIcon("relationship.png"));
         icons.put(BaseTypeId.CMIS_POLICY, ClientHelper.getIcon("policy.png"));
+
+        checkedOutIcon = ClientHelper.getIcon("checkedout.png");
+        pwcIcon = ClientHelper.getIcon("pwc.png");
     }
 
     public void folderLoaded(ClientModelEvent event) {
@@ -225,6 +230,18 @@ public class FolderTable extends JTable 
 
             switch (columnIndex) {
             case 0:
+                if (obj instanceof Document) {
+                    Document doc = (Document) obj;
+                    if (Boolean.TRUE.equals(doc.isVersionSeriesCheckedOut())) {
+                        if (doc.getId().equals(doc.getVersionSeriesCheckedOutId())) {
+                            return pwcIcon;
+                        } else {
+                            return checkedOutIcon;
+                        }
+                    } else {
+                        return icons.get(BaseTypeId.CMIS_DOCUMENT);
+                    }
+                }
                 return icons.get(obj.getBaseTypeId());
             case 1:
                 return obj.getName();

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=1301943&r1=1301942&r2=1301943&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 Sat Mar 17 14:30:47 2012
@@ -29,10 +29,8 @@ import java.awt.event.ActionListener;
 import java.awt.event.KeyEvent;
 import java.awt.event.KeyListener;
 import java.math.BigDecimal;
-import java.math.BigInteger;
 import java.text.DecimalFormat;
 import java.text.Format;
-import java.text.NumberFormat;
 import java.util.ArrayList;
 import java.util.Calendar;
 import java.util.Collections;

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/AclUpdatePanel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/AclUpdatePanel.java?rev=1301943&r1=1301942&r2=1301943&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/AclUpdatePanel.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/AclUpdatePanel.java Sat Mar 17 14:30:47 2012
@@ -25,33 +25,33 @@ import org.apache.chemistry.opencmis.wor
 
 public class AclUpdatePanel extends ActionPanel {
 
-	private static final long serialVersionUID = 1L;
+    private static final long serialVersionUID = 1L;
 
-	public AclUpdatePanel(ClientModel model) {
-		super("Change ACL", "Open ACL Editor", model);
-	}
-
-	@Override
-	protected void createActionComponents() {
-	}
-
-	@Override
-	public boolean isAllowed() {
-		if (getObject() == null) {
-			return false;
-		}
-
-		if ((getObject().getAllowableActions() == null)
-				|| (getObject().getAllowableActions().getAllowableActions() == null)) {
-			return true;
-		}
-
-		return getObject().getAllowableActions().getAllowableActions()
-				.contains(Action.CAN_APPLY_ACL);
-	}
-
-	@Override
-	public void doAction() throws Exception {
-		new AclEditorFrame(getClientModel(), getObject());
-	}
+    public AclUpdatePanel(ClientModel model) {
+        super("Change ACL", "Open ACL Editor", model);
+    }
+
+    @Override
+    protected void createActionComponents() {
+    }
+
+    @Override
+    public boolean isAllowed() {
+        if (getObject() == null) {
+            return false;
+        }
+
+        if ((getObject().getAllowableActions() == null)
+                || (getObject().getAllowableActions().getAllowableActions() == null)) {
+            return true;
+        }
+
+        return getObject().getAllowableActions().getAllowableActions().contains(Action.CAN_APPLY_ACL);
+    }
+
+    @Override
+    public boolean doAction() throws Exception {
+        new AclEditorFrame(getClientModel(), getObject());
+        return false;
+    }
 }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/AddObjectToFolderPanel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/AddObjectToFolderPanel.java?rev=1301943&r1=1301942&r2=1301943&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/AddObjectToFolderPanel.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/AddObjectToFolderPanel.java Sat Mar 17 14:30:47 2012
@@ -74,8 +74,9 @@ public class AddObjectToFolderPanel exte
     }
 
     @Override
-    public void doAction() throws Exception {
+    public boolean doAction() throws Exception {
         ObjectId folderId = getClientModel().getClientSession().getSession().createObjectId(folderField.getText());
         ((FileableCmisObject) getObject()).addToFolder(folderId, allVersionsBox.isSelected());
+        return true;
     }
 }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/ApplyPolicyPanel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/ApplyPolicyPanel.java?rev=1301943&r1=1301942&r2=1301943&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/ApplyPolicyPanel.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/ApplyPolicyPanel.java Sat Mar 17 14:30:47 2012
@@ -68,7 +68,8 @@ public class ApplyPolicyPanel extends Ac
     }
 
     @Override
-    public void doAction() throws Exception {
+    public boolean doAction() throws Exception {
         getObject().applyPolicy(new ObjectIdImpl(policyField.getText()));
+        return true;
     }
 }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/CancelCheckOutPanel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/CancelCheckOutPanel.java?rev=1301943&r1=1301942&r2=1301943&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/CancelCheckOutPanel.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/CancelCheckOutPanel.java Sat Mar 17 14:30:47 2012
@@ -25,33 +25,33 @@ import org.apache.chemistry.opencmis.wor
 
 public class CancelCheckOutPanel extends ActionPanel {
 
-	private static final long serialVersionUID = 1L;
+    private static final long serialVersionUID = 1L;
 
-	public CancelCheckOutPanel(ClientModel model) {
-		super("Cancel Check-out Object", "Cancel Check-out", model);
-	}
-
-	@Override
-	protected void createActionComponents() {
-	}
-
-	@Override
-	public boolean isAllowed() {
-		if ((getObject() == null) || !(getObject() instanceof Document)) {
-			return false;
-		}
-
-		if ((getObject().getAllowableActions() == null)
-				|| (getObject().getAllowableActions().getAllowableActions() == null)) {
-			return true;
-		}
-
-		return getObject().getAllowableActions().getAllowableActions()
-				.contains(Action.CAN_CANCEL_CHECK_OUT);
-	}
-
-	@Override
-	public void doAction() throws Exception {
-		((Document) getObject()).cancelCheckOut();
-	}
+    public CancelCheckOutPanel(ClientModel model) {
+        super("Cancel Check-out Object", "Cancel Check-out", model);
+    }
+
+    @Override
+    protected void createActionComponents() {
+    }
+
+    @Override
+    public boolean isAllowed() {
+        if ((getObject() == null) || !(getObject() instanceof Document)) {
+            return false;
+        }
+
+        if ((getObject().getAllowableActions() == null)
+                || (getObject().getAllowableActions().getAllowableActions() == null)) {
+            return true;
+        }
+
+        return getObject().getAllowableActions().getAllowableActions().contains(Action.CAN_CANCEL_CHECK_OUT);
+    }
+
+    @Override
+    public boolean doAction() throws Exception {
+        ((Document) getObject()).cancelCheckOut();
+        return false;
+    }
 }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/CheckInPanel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/CheckInPanel.java?rev=1301943&r1=1301942&r2=1301943&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/CheckInPanel.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/CheckInPanel.java Sat Mar 17 14:30:47 2012
@@ -29,44 +29,42 @@ import org.apache.chemistry.opencmis.wor
 
 public class CheckInPanel extends ActionPanel {
 
-	private static final long serialVersionUID = 1L;
+    private static final long serialVersionUID = 1L;
 
-	private JCheckBox majorBox;
-	private JTextField filenameField;
+    private JCheckBox majorBox;
+    private JTextField filenameField;
 
-	public CheckInPanel(ClientModel model) {
-		super("Check-in Object", "Check-in", model);
-	}
-
-	@Override
-	protected void createActionComponents() {
-		majorBox = new JCheckBox("major version", true);
-		addActionComponent(majorBox);
-
-		filenameField = new JTextField(30);
-		addActionComponent(createFilenamePanel(filenameField));
-	}
-
-	@Override
-	public boolean isAllowed() {
-		if ((getObject() == null) || !(getObject() instanceof Document)) {
-			return false;
-		}
-
-		if ((getObject().getAllowableActions() == null)
-				|| (getObject().getAllowableActions().getAllowableActions() == null)) {
-			return true;
-		}
-
-		return getObject().getAllowableActions().getAllowableActions()
-				.contains(Action.CAN_CHECK_IN);
-	}
-
-	@Override
-	public void doAction() throws Exception {
-		ContentStream content = getClientModel().createContentStream(
-				filenameField.getText());
-		((Document) getObject()).checkIn(majorBox.isSelected(), null, content,
-				null, null, null, null);
-	}
+    public CheckInPanel(ClientModel model) {
+        super("Check-in Object", "Check-in", model);
+    }
+
+    @Override
+    protected void createActionComponents() {
+        majorBox = new JCheckBox("major version", true);
+        addActionComponent(majorBox);
+
+        filenameField = new JTextField(30);
+        addActionComponent(createFilenamePanel(filenameField));
+    }
+
+    @Override
+    public boolean isAllowed() {
+        if ((getObject() == null) || !(getObject() instanceof Document)) {
+            return false;
+        }
+
+        if ((getObject().getAllowableActions() == null)
+                || (getObject().getAllowableActions().getAllowableActions() == null)) {
+            return true;
+        }
+
+        return getObject().getAllowableActions().getAllowableActions().contains(Action.CAN_CHECK_IN);
+    }
+
+    @Override
+    public boolean doAction() throws Exception {
+        ContentStream content = getClientModel().createContentStream(filenameField.getText());
+        ((Document) getObject()).checkIn(majorBox.isSelected(), null, content, null, null, null, null);
+        return false;
+    }
 }
\ No newline at end of file

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/CheckOutPanel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/CheckOutPanel.java?rev=1301943&r1=1301942&r2=1301943&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/CheckOutPanel.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/CheckOutPanel.java Sat Mar 17 14:30:47 2012
@@ -25,33 +25,33 @@ import org.apache.chemistry.opencmis.wor
 
 public class CheckOutPanel extends ActionPanel {
 
-	private static final long serialVersionUID = 1L;
+    private static final long serialVersionUID = 1L;
 
-	public CheckOutPanel(ClientModel model) {
-		super("Check-out Object", "Check-out", model);
-	}
-
-	@Override
-	protected void createActionComponents() {
-	}
-
-	@Override
-	public boolean isAllowed() {
-		if ((getObject() == null) || !(getObject() instanceof Document)) {
-			return false;
-		}
-
-		if ((getObject().getAllowableActions() == null)
-				|| (getObject().getAllowableActions().getAllowableActions() == null)) {
-			return true;
-		}
-
-		return getObject().getAllowableActions().getAllowableActions()
-				.contains(Action.CAN_CHECK_OUT);
-	}
-
-	@Override
-	public void doAction() throws Exception {
-		((Document) getObject()).checkOut();
-	}
+    public CheckOutPanel(ClientModel model) {
+        super("Check-out Object", "Check-out", model);
+    }
+
+    @Override
+    protected void createActionComponents() {
+    }
+
+    @Override
+    public boolean isAllowed() {
+        if ((getObject() == null) || !(getObject() instanceof Document)) {
+            return false;
+        }
+
+        if ((getObject().getAllowableActions() == null)
+                || (getObject().getAllowableActions().getAllowableActions() == null)) {
+            return true;
+        }
+
+        return getObject().getAllowableActions().getAllowableActions().contains(Action.CAN_CHECK_OUT);
+    }
+
+    @Override
+    public boolean doAction() throws Exception {
+        ((Document) getObject()).checkOut();
+        return true;
+    }
 }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/DeleteContentStreamPanel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/DeleteContentStreamPanel.java?rev=1301943&r1=1301942&r2=1301943&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/DeleteContentStreamPanel.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/DeleteContentStreamPanel.java Sat Mar 17 14:30:47 2012
@@ -25,33 +25,33 @@ import org.apache.chemistry.opencmis.wor
 
 public class DeleteContentStreamPanel extends ActionPanel {
 
-	private static final long serialVersionUID = 1L;
+    private static final long serialVersionUID = 1L;
 
-	public DeleteContentStreamPanel(ClientModel model) {
-		super("Delete Content Stream", "Delete Content Stream", model);
-	}
-
-	@Override
-	protected void createActionComponents() {
-	}
-
-	@Override
-	public boolean isAllowed() {
-		if ((getObject() == null) || !(getObject() instanceof Document)) {
-			return false;
-		}
-
-		if ((getObject().getAllowableActions() == null)
-				|| (getObject().getAllowableActions().getAllowableActions() == null)) {
-			return true;
-		}
-
-		return getObject().getAllowableActions().getAllowableActions()
-				.contains(Action.CAN_DELETE_CONTENT_STREAM);
-	}
-
-	@Override
-	public void doAction() throws Exception {
-		((Document) getObject()).deleteContentStream();
-	}
+    public DeleteContentStreamPanel(ClientModel model) {
+        super("Delete Content Stream", "Delete Content Stream", model);
+    }
+
+    @Override
+    protected void createActionComponents() {
+    }
+
+    @Override
+    public boolean isAllowed() {
+        if ((getObject() == null) || !(getObject() instanceof Document)) {
+            return false;
+        }
+
+        if ((getObject().getAllowableActions() == null)
+                || (getObject().getAllowableActions().getAllowableActions() == null)) {
+            return true;
+        }
+
+        return getObject().getAllowableActions().getAllowableActions().contains(Action.CAN_DELETE_CONTENT_STREAM);
+    }
+
+    @Override
+    public boolean doAction() throws Exception {
+        ((Document) getObject()).deleteContentStream();
+        return true;
+    }
 }
\ No newline at end of file

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/DeletePanel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/DeletePanel.java?rev=1301943&r1=1301942&r2=1301943&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/DeletePanel.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/DeletePanel.java Sat Mar 17 14:30:47 2012
@@ -26,37 +26,37 @@ import org.apache.chemistry.opencmis.wor
 
 public class DeletePanel extends ActionPanel {
 
-	private static final long serialVersionUID = 1L;
+    private static final long serialVersionUID = 1L;
 
-	private JCheckBox allVersionsBox;
+    private JCheckBox allVersionsBox;
 
-	public DeletePanel(ClientModel model) {
-		super("Delete Object", "Delete", model);
-	}
-
-	@Override
-	protected void createActionComponents() {
-		allVersionsBox = new JCheckBox("delete all versions", true);
-		addActionComponent(allVersionsBox);
-	}
-
-	@Override
-	public boolean isAllowed() {
-		if (getObject() == null) {
-			return false;
-		}
-
-		if ((getObject().getAllowableActions() == null)
-				|| (getObject().getAllowableActions().getAllowableActions() == null)) {
-			return true;
-		}
-
-		return getObject().getAllowableActions().getAllowableActions()
-				.contains(Action.CAN_DELETE_OBJECT);
-	}
-
-	@Override
-	public void doAction() throws Exception {
-		getObject().delete(allVersionsBox.isSelected());
-	}
+    public DeletePanel(ClientModel model) {
+        super("Delete Object", "Delete", model);
+    }
+
+    @Override
+    protected void createActionComponents() {
+        allVersionsBox = new JCheckBox("delete all versions", true);
+        addActionComponent(allVersionsBox);
+    }
+
+    @Override
+    public boolean isAllowed() {
+        if (getObject() == null) {
+            return false;
+        }
+
+        if ((getObject().getAllowableActions() == null)
+                || (getObject().getAllowableActions().getAllowableActions() == null)) {
+            return true;
+        }
+
+        return getObject().getAllowableActions().getAllowableActions().contains(Action.CAN_DELETE_OBJECT);
+    }
+
+    @Override
+    public boolean doAction() throws Exception {
+        getObject().delete(allVersionsBox.isSelected());
+        return false;
+    }
 }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/DeleteTreePanel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/DeleteTreePanel.java?rev=1301943&r1=1301942&r2=1301943&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/DeleteTreePanel.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/DeleteTreePanel.java Sat Mar 17 14:30:47 2012
@@ -71,7 +71,7 @@ public class DeleteTreePanel extends Act
     }
 
     @Override
-    public void doAction() throws Exception {
+    public boolean doAction() throws Exception {
         List<String> ids = ((Folder) getObject()).deleteTree(allVersionsBox.isSelected(),
                 (UnfileObject) unfileObjectsBox.getSelectedItem(), continueOnFailureBox.isSelected());
 
@@ -86,5 +86,6 @@ public class DeleteTreePanel extends Act
 
             JOptionPane.showMessageDialog(this, sb.toString(), "Delete Tree", JOptionPane.ERROR_MESSAGE);
         }
+        return false;
     }
 }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/MovePanel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/MovePanel.java?rev=1301943&r1=1301942&r2=1301943&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/MovePanel.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/MovePanel.java Sat Mar 17 14:30:47 2012
@@ -34,48 +34,45 @@ import org.apache.chemistry.opencmis.wor
 
 public class MovePanel extends ActionPanel {
 
-	private static final long serialVersionUID = 1L;
+    private static final long serialVersionUID = 1L;
 
-	private JTextField targetFolderField;
+    private JTextField targetFolderField;
 
-	public MovePanel(ClientModel model) {
-		super("Move Object", "Move", model);
-	}
-
-	@Override
-	protected void createActionComponents() {
-		JPanel targetFolderPanel = new JPanel(new BorderLayout());
-		targetFolderPanel.setBackground(Color.WHITE);
-
-		targetFolderPanel.add(new JLabel("Target Folder Id:"),
-				BorderLayout.LINE_START);
-
-		targetFolderField = new JTextField(30);
-		targetFolderPanel.add(targetFolderField, BorderLayout.CENTER);
-
-		addActionComponent(targetFolderPanel);
-	}
-
-	@Override
-	public boolean isAllowed() {
-		if ((getObject() == null)
-				|| !(getObject() instanceof FileableCmisObject)) {
-			return false;
-		}
-
-		if ((getObject().getAllowableActions() == null)
-				|| (getObject().getAllowableActions().getAllowableActions() == null)) {
-			return true;
-		}
-
-		return getObject().getAllowableActions().getAllowableActions()
-				.contains(Action.CAN_MOVE_OBJECT);
-	}
-
-	@Override
-	public void doAction() throws Exception {
-		ObjectId targetFolderId = new ObjectIdImpl(targetFolderField.getText());
-		((FileableCmisObject) getObject()).move(getClientModel()
-				.getCurrentFolder(), targetFolderId);
-	}
+    public MovePanel(ClientModel model) {
+        super("Move Object", "Move", model);
+    }
+
+    @Override
+    protected void createActionComponents() {
+        JPanel targetFolderPanel = new JPanel(new BorderLayout());
+        targetFolderPanel.setBackground(Color.WHITE);
+
+        targetFolderPanel.add(new JLabel("Target Folder Id:"), BorderLayout.LINE_START);
+
+        targetFolderField = new JTextField(30);
+        targetFolderPanel.add(targetFolderField, BorderLayout.CENTER);
+
+        addActionComponent(targetFolderPanel);
+    }
+
+    @Override
+    public boolean isAllowed() {
+        if ((getObject() == null) || !(getObject() instanceof FileableCmisObject)) {
+            return false;
+        }
+
+        if ((getObject().getAllowableActions() == null)
+                || (getObject().getAllowableActions().getAllowableActions() == null)) {
+            return true;
+        }
+
+        return getObject().getAllowableActions().getAllowableActions().contains(Action.CAN_MOVE_OBJECT);
+    }
+
+    @Override
+    public boolean doAction() throws Exception {
+        ObjectId targetFolderId = new ObjectIdImpl(targetFolderField.getText());
+        ((FileableCmisObject) getObject()).move(getClientModel().getCurrentFolder(), targetFolderId);
+        return true;
+    }
 }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/PropertyUpdatePanel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/PropertyUpdatePanel.java?rev=1301943&r1=1301942&r2=1301943&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/PropertyUpdatePanel.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/PropertyUpdatePanel.java Sat Mar 17 14:30:47 2012
@@ -50,7 +50,8 @@ public class PropertyUpdatePanel extends
     }
 
     @Override
-    public void doAction() throws Exception {
+    public boolean doAction() throws Exception {
         new PropertyEditorFrame(getClientModel(), getObject());
+        return false;
     }
 }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/RemoveObjectFromFolderPanel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/RemoveObjectFromFolderPanel.java?rev=1301943&r1=1301942&r2=1301943&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/RemoveObjectFromFolderPanel.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/RemoveObjectFromFolderPanel.java Sat Mar 17 14:30:47 2012
@@ -50,7 +50,7 @@ public class RemoveObjectFromFolderPanel
                 folderField.setText("");
             }
         }
-        
+
         super.setVisible(visible);
     }
 
@@ -82,8 +82,9 @@ public class RemoveObjectFromFolderPanel
     }
 
     @Override
-    public void doAction() throws Exception {
+    public boolean doAction() throws Exception {
         ObjectId folderId = getClientModel().getClientSession().getSession().createObjectId(folderField.getText());
         ((FileableCmisObject) getObject()).removeFromFolder(folderId);
+        return true;
     }
 }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/RemovePolicyPanel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/RemovePolicyPanel.java?rev=1301943&r1=1301942&r2=1301943&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/RemovePolicyPanel.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/RemovePolicyPanel.java Sat Mar 17 14:30:47 2012
@@ -68,7 +68,8 @@ public class RemovePolicyPanel extends A
     }
 
     @Override
-    public void doAction() throws Exception {
+    public boolean doAction() throws Exception {
         getObject().removePolicy(new ObjectIdImpl(policyField.getText()));
+        return true;
     }
 }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/SetContentStreamPanel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/SetContentStreamPanel.java?rev=1301943&r1=1301942&r2=1301943&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/SetContentStreamPanel.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/actions/SetContentStreamPanel.java Sat Mar 17 14:30:47 2012
@@ -29,44 +29,42 @@ import org.apache.chemistry.opencmis.wor
 
 public class SetContentStreamPanel extends ActionPanel {
 
-	private static final long serialVersionUID = 1L;
+    private static final long serialVersionUID = 1L;
 
-	private JTextField filenameField;
-	private JCheckBox overwriteBox;
+    private JTextField filenameField;
+    private JCheckBox overwriteBox;
 
-	public SetContentStreamPanel(ClientModel model) {
-		super("Set Content Stream", "Set Content Stream", model);
-	}
-
-	@Override
-	protected void createActionComponents() {
-		filenameField = new JTextField(30);
-		addActionComponent(createFilenamePanel(filenameField));
-
-		overwriteBox = new JCheckBox("overwrite", true);
-		addActionComponent(overwriteBox);
-	}
-
-	@Override
-	public boolean isAllowed() {
-		if ((getObject() == null) || !(getObject() instanceof Document)) {
-			return false;
-		}
-
-		if ((getObject().getAllowableActions() == null)
-				|| (getObject().getAllowableActions().getAllowableActions() == null)) {
-			return true;
-		}
-
-		return getObject().getAllowableActions().getAllowableActions()
-				.contains(Action.CAN_SET_CONTENT_STREAM);
-	}
-
-	@Override
-	public void doAction() throws Exception {
-		ContentStream content = getClientModel().createContentStream(
-				filenameField.getText());
-		((Document) getObject()).setContentStream(content, overwriteBox
-				.isSelected());
-	}
+    public SetContentStreamPanel(ClientModel model) {
+        super("Set Content Stream", "Set Content Stream", model);
+    }
+
+    @Override
+    protected void createActionComponents() {
+        filenameField = new JTextField(30);
+        addActionComponent(createFilenamePanel(filenameField));
+
+        overwriteBox = new JCheckBox("overwrite", true);
+        addActionComponent(overwriteBox);
+    }
+
+    @Override
+    public boolean isAllowed() {
+        if ((getObject() == null) || !(getObject() instanceof Document)) {
+            return false;
+        }
+
+        if ((getObject().getAllowableActions() == null)
+                || (getObject().getAllowableActions().getAllowableActions() == null)) {
+            return true;
+        }
+
+        return getObject().getAllowableActions().getAllowableActions().contains(Action.CAN_SET_CONTENT_STREAM);
+    }
+
+    @Override
+    public boolean doAction() throws Exception {
+        ContentStream content = getClientModel().createContentStream(filenameField.getText());
+        ((Document) getObject()).setContentStream(content, overwriteBox.isSelected());
+        return true;
+    }
 }
\ No newline at end of file

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/ACLTable.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/ACLTable.java?rev=1301943&r1=1301942&r2=1301943&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/ACLTable.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/ACLTable.java Sat Mar 17 14:30:47 2012
@@ -18,6 +18,7 @@
  */
 package org.apache.chemistry.opencmis.workbench.details;
 
+import java.awt.Cursor;
 import java.awt.event.MouseEvent;
 import java.util.Collection;
 
@@ -25,6 +26,7 @@ import org.apache.chemistry.opencmis.com
 import org.apache.chemistry.opencmis.commons.data.AllowableActions;
 import org.apache.chemistry.opencmis.commons.enums.Action;
 import org.apache.chemistry.opencmis.workbench.AclEditorFrame;
+import org.apache.chemistry.opencmis.workbench.ClientHelper;
 import org.apache.chemistry.opencmis.workbench.model.ClientModel;
 
 public class ACLTable extends AbstractDetailsTable {
@@ -46,6 +48,16 @@ public class ACLTable extends AbstractDe
         if ((aa == null) || (aa.getAllowableActions() == null)
                 || aa.getAllowableActions().contains(Action.CAN_APPLY_ACL)) {
             new AclEditorFrame(getClientModel(), getObject());
+
+            try {
+                setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
+                getClientModel().reloadObject();
+                getClientModel().reloadFolder();
+            } catch (Exception ex) {
+                ClientHelper.showError(null, ex);
+            } finally {
+                setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
+            }
         }
     }
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/PropertyTable.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/PropertyTable.java?rev=1301943&r1=1301942&r2=1301943&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/PropertyTable.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/PropertyTable.java Sat Mar 17 14:30:47 2012
@@ -18,12 +18,14 @@
  */
 package org.apache.chemistry.opencmis.workbench.details;
 
+import java.awt.Cursor;
 import java.awt.event.MouseEvent;
 import java.util.Collection;
 
 import org.apache.chemistry.opencmis.client.api.Property;
 import org.apache.chemistry.opencmis.commons.data.AllowableActions;
 import org.apache.chemistry.opencmis.commons.enums.Action;
+import org.apache.chemistry.opencmis.workbench.ClientHelper;
 import org.apache.chemistry.opencmis.workbench.PropertyEditorFrame;
 import org.apache.chemistry.opencmis.workbench.model.ClientModel;
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/model/ClientSession.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/model/ClientSession.java?rev=1301943&r1=1301942&r2=1301943&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/model/ClientSession.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/model/ClientSession.java Sat Mar 17 14:30:47 2012
@@ -70,6 +70,8 @@ public class ClientSession {
         FOLDER_PROPERTY_SET.add(PropertyIds.CREATION_DATE);
         FOLDER_PROPERTY_SET.add(PropertyIds.LAST_MODIFIED_BY);
         FOLDER_PROPERTY_SET.add(PropertyIds.LAST_MODIFICATION_DATE);
+        FOLDER_PROPERTY_SET.add(PropertyIds.IS_VERSION_SERIES_CHECKED_OUT);
+        FOLDER_PROPERTY_SET.add(PropertyIds.VERSION_SERIES_CHECKED_OUT_ID);
     }
 
     private static final Set<String> VERSION_PROPERTY_SET = new HashSet<String>();

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/ActionPanel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/ActionPanel.java?rev=1301943&r1=1301942&r2=1301943&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/ActionPanel.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/ActionPanel.java Sat Mar 17 14:30:47 2012
@@ -42,113 +42,115 @@ import org.apache.chemistry.opencmis.wor
 
 public abstract class ActionPanel extends JPanel implements ActionListener {
 
-	private static final long serialVersionUID = 1L;
+    private static final long serialVersionUID = 1L;
 
-	private final ClientModel model;
-	private CmisObject object;
+    private final ClientModel model;
+    private CmisObject object;
 
-	private JPanel centerPanel;
+    private JPanel centerPanel;
 
-	public ActionPanel(String title, String buttonLabel, ClientModel model) {
-		super();
-		this.model = model;
-		createGUI(title, buttonLabel);
-	}
+    public ActionPanel(String title, String buttonLabel, ClientModel model) {
+        super();
+        this.model = model;
+        createGUI(title, buttonLabel);
+    }
 
-	public ClientModel getClientModel() {
-		return model;
-	}
+    public ClientModel getClientModel() {
+        return model;
+    }
 
-	public void setObject(CmisObject object) {
-		this.object = object;
-	}
+    public void setObject(CmisObject object) {
+        this.object = object;
+    }
 
-	public CmisObject getObject() {
-		return object;
-	}
+    public CmisObject getObject() {
+        return object;
+    }
 
-	protected void createGUI(String title, String buttonLabel) {
-		BorderLayout borderLayout = new BorderLayout();
-		borderLayout.setVgap(3);
-		setLayout(borderLayout);
+    protected void createGUI(String title, String buttonLabel) {
+        BorderLayout borderLayout = new BorderLayout();
+        borderLayout.setVgap(3);
+        setLayout(borderLayout);
 
-		setBackground(Color.WHITE);
+        setBackground(Color.WHITE);
         setBorder(BorderFactory.createCompoundBorder(
                 BorderFactory.createEmptyBorder(5, 5, 5, 5),
                 BorderFactory.createCompoundBorder(BorderFactory.createLineBorder(Color.GRAY, 2),
                         BorderFactory.createEmptyBorder(5, 5, 5, 5))));
 
-		Font labelFont = UIManager.getFont("Label.font");
-		Font boldFont = labelFont.deriveFont(Font.BOLD,
-				labelFont.getSize2D() * 1.2f);
-
-		JLabel titleLabel = new JLabel(title);
-		titleLabel.setFont(boldFont);
-		add(titleLabel, BorderLayout.PAGE_START);
-
-		centerPanel = new JPanel();
-		centerPanel.setLayout(new BoxLayout(centerPanel, BoxLayout.PAGE_AXIS));
-		centerPanel.setBackground(Color.WHITE);
-		add(centerPanel, BorderLayout.CENTER);
-
-		createActionComponents();
-
-		JButton deleteButton = new JButton(buttonLabel);
-		deleteButton.addActionListener(this);
-		add(deleteButton, BorderLayout.PAGE_END);
-
-		setMaximumSize(new Dimension(Short.MAX_VALUE, getPreferredSize().height));
-	}
-
-	protected void addActionComponent(JComponent comp) {
-		comp.setAlignmentX(LEFT_ALIGNMENT);
-		centerPanel.add(comp);
-	}
+        Font labelFont = UIManager.getFont("Label.font");
+        Font boldFont = labelFont.deriveFont(Font.BOLD, labelFont.getSize2D() * 1.2f);
 
-	@Override
+        JLabel titleLabel = new JLabel(title);
+        titleLabel.setFont(boldFont);
+        add(titleLabel, BorderLayout.PAGE_START);
+
+        centerPanel = new JPanel();
+        centerPanel.setLayout(new BoxLayout(centerPanel, BoxLayout.PAGE_AXIS));
+        centerPanel.setBackground(Color.WHITE);
+        add(centerPanel, BorderLayout.CENTER);
+
+        createActionComponents();
+
+        JButton deleteButton = new JButton(buttonLabel);
+        deleteButton.addActionListener(this);
+        add(deleteButton, BorderLayout.PAGE_END);
+
+        setMaximumSize(new Dimension(Short.MAX_VALUE, getPreferredSize().height));
+    }
+
+    protected void addActionComponent(JComponent comp) {
+        comp.setAlignmentX(LEFT_ALIGNMENT);
+        centerPanel.add(comp);
+    }
+
+    @Override
     public void actionPerformed(ActionEvent e) {
-		try {
-			setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
-			doAction();
-			model.reloadFolder();
-		} catch (Exception ex) {
-			ClientHelper.showError(null, ex);
-		} finally {
-			setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
-		}
-	}
-
-	protected abstract void createActionComponents();
-
-	public abstract boolean isAllowed();
-
-	public abstract void doAction() throws Exception;
-
-	protected JPanel createFilenamePanel(final JTextField filenameField) {
-		JPanel filePanel = new JPanel(new BorderLayout());
-		filePanel.setBackground(Color.WHITE);
-
-		filePanel.add(new JLabel("File:"), BorderLayout.LINE_START);
-
-		filePanel.add(filenameField, BorderLayout.CENTER);
-
-		JButton browseButton = new JButton("Browse");
-		browseButton.addActionListener(new ActionListener() {
-			@Override
+        try {
+            setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
+            if (doAction()) {
+                model.reloadObject();
+            }
+            model.reloadFolder();
+        } catch (Exception ex) {
+            ClientHelper.showError(null, ex);
+        } finally {
+            setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
+        }
+    }
+
+    protected abstract void createActionComponents();
+
+    public abstract boolean isAllowed();
+
+    /**
+     * @return <code>true</code> if object should be reloaded.
+     */
+    public abstract boolean doAction() throws Exception;
+
+    protected JPanel createFilenamePanel(final JTextField filenameField) {
+        JPanel filePanel = new JPanel(new BorderLayout());
+        filePanel.setBackground(Color.WHITE);
+
+        filePanel.add(new JLabel("File:"), BorderLayout.LINE_START);
+
+        filePanel.add(filenameField, BorderLayout.CENTER);
+
+        JButton browseButton = new JButton("Browse");
+        browseButton.addActionListener(new ActionListener() {
+            @Override
             public void actionPerformed(ActionEvent event) {
-				JFileChooser fileChooser = new JFileChooser();
-				int chooseResult = fileChooser.showDialog(filenameField,
-						"Select");
-				if (chooseResult == JFileChooser.APPROVE_OPTION) {
-					if (fileChooser.getSelectedFile().isFile()) {
-						filenameField.setText(fileChooser.getSelectedFile()
-								.getAbsolutePath());
-					}
-				}
-			}
-		});
-		filePanel.add(browseButton, BorderLayout.LINE_END);
+                JFileChooser fileChooser = new JFileChooser();
+                int chooseResult = fileChooser.showDialog(filenameField, "Select");
+                if (chooseResult == JFileChooser.APPROVE_OPTION) {
+                    if (fileChooser.getSelectedFile().isFile()) {
+                        filenameField.setText(fileChooser.getSelectedFile().getAbsolutePath());
+                    }
+                }
+            }
+        });
+        filePanel.add(browseButton, BorderLayout.LINE_END);
 
-		return filePanel;
-	}
+        return filePanel;
+    }
 }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/META-INF/README
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/META-INF/README?rev=1301943&r1=1301942&r2=1301943&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/META-INF/README (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/META-INF/README Sat Mar 17 14:30:47 2012
@@ -7,6 +7,13 @@ This CMIS client is distributed under th
 Please see the NOTICE and LICENSE files for details.
 
 
+Get the latest released CMIS Workbench from here:
+http://chemistry.apache.org/java/download.html
+
+Get the latest nightly build from here:
+https://builds.apache.org/job/Chemistry%20-%20OpenCMIS%20-%20install/ws/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/target/
+
+
 
 System properties reference
 ---------------------------

Added: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/images/checkedout.png
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/images/checkedout.png?rev=1301943&view=auto
==============================================================================
Binary file - no diff available.

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/images/checkedout.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/images/pwc.png
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/images/pwc.png?rev=1301943&view=auto
==============================================================================
Binary file - no diff available.

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/resources/images/pwc.png
------------------------------------------------------------------------------
    svn:mime-type = image/png



Mime
View raw message