]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - server/plugins/org.argeo.jcr.ui.explorer/src/main/java/org/argeo/jcr/ui/explorer/editors/NodeVersionHistoryPage.java
Clean JCR Ui Explorer editor
[lgpl/argeo-commons.git] / server / plugins / org.argeo.jcr.ui.explorer / src / main / java / org / argeo / jcr / ui / explorer / editors / NodeVersionHistoryPage.java
index bd8265ce9d40b71d79e559fa21ef3dffb878aeb5..dc2c2eaca8978abcb8946fcae859610a3588c49c 100644 (file)
@@ -18,8 +18,6 @@ import javax.jcr.version.VersionHistory;
 import javax.jcr.version.VersionIterator;
 import javax.jcr.version.VersionManager;
 
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
 import org.argeo.ArgeoException;
 import org.argeo.jcr.JcrUtils;
 import org.argeo.jcr.PropertyDiff;
@@ -53,8 +51,8 @@ import org.eclipse.ui.forms.widgets.TableWrapLayout;
  * */
 public class NodeVersionHistoryPage extends FormPage implements
                JcrExplorerConstants {
-       private final static Log log = LogFactory
-                       .getLog(NodeVersionHistoryPage.class);
+       // private final static Log log = LogFactory
+       // .getLog(NodeVersionHistoryPage.class);
 
        // Utils
        protected DateFormat timeFormatter = new SimpleDateFormat(DATE_TIME_FORMAT);
@@ -75,6 +73,8 @@ public class NodeVersionHistoryPage extends FormPage implements
 
        protected void createFormContent(IManagedForm managedForm) {
                ScrolledForm form = managedForm.getForm();
+               form.setText(JcrExplorerPlugin
+                               .getMessage("nodeVersionHistoryPageTitle"));
                tk = managedForm.getToolkit();
                GridLayout twt = new GridLayout(1, false);
                twt.marginWidth = twt.marginHeight = 5;
@@ -189,9 +189,9 @@ public class NodeVersionHistoryPage extends FormPage implements
 
                                StringBuffer buf = new StringBuffer("");
                                Map<String, PropertyDiff> diffs = lst.get(i).getDiffs();
-                               props: for (String prop : diffs.keySet()) {
+                               for (String prop : diffs.keySet()) {
                                        PropertyDiff pd = diffs.get(prop);
-                                       String propName = pd.getRelPath();
+                                       // String propName = pd.getRelPath();
                                        Value refValue = pd.getReferenceValue();
                                        Value newValue = pd.getNewValue();
                                        String refValueStr = "";
@@ -282,7 +282,7 @@ public class NodeVersionHistoryPage extends FormPage implements
                                                                                Property.JCR_CREATED).getDate();
 
                                                } catch (Exception e) {
-                                                       // Silent that info is optionnal
+                                                       // Silent that info is optional
                                                }
                                                VersionDiff vd = new VersionDiff(lastUserName,
                                                                lastUpdate, diffs);