Some refactoring of the model and of command handling.
[lgpl/argeo-commons.git] / server / plugins / org.argeo.jcr.ui.explorer / src / main / java / org / argeo / jcr / ui / explorer / editors / GenericNodePage.java
index ca9d969925efc9219ab8c5f8f5ad922bd5d66aa9..975e6664e553a688c31b4d3cd9334625ca4c5ae6 100644 (file)
@@ -13,8 +13,6 @@ import javax.jcr.PropertyIterator;
 import javax.jcr.PropertyType;
 import javax.jcr.RepositoryException;
 
-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.ui.explorer.JcrExplorerConstants;
@@ -24,7 +22,6 @@ import org.eclipse.swt.layout.GridData;
 import org.eclipse.swt.layout.GridLayout;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Label;
 import org.eclipse.swt.widgets.Text;
 import org.eclipse.ui.forms.AbstractFormPart;
 import org.eclipse.ui.forms.IManagedForm;
@@ -39,7 +36,7 @@ import org.eclipse.ui.forms.widgets.ScrolledForm;
  */
 
 public class GenericNodePage extends FormPage implements JcrExplorerConstants {
-       private final static Log log = LogFactory.getLog(GenericNodePage.class);
+       // private final static Log log = LogFactory.getLog(GenericNodePage.class);
 
        // local constants
        private final static String JCR_PROPERTY_NAME = "jcr:name";
@@ -118,12 +115,12 @@ public class GenericNodePage extends FormPage implements JcrExplorerConstants {
        private void addPropertyLine(Composite parent, AbstractFormPart part,
                        Property prop) {
                try {
-                       Label lbl = tk.createLabel(parent, prop.getName());
-                       lbl = tk.createLabel(parent,
+                       tk.createLabel(parent, prop.getName());
+                       tk.createLabel(parent,
                                        "[" + JcrUtils.getPropertyDefinitionAsString(prop) + "]");
 
                        if (prop.getDefinition().isProtected()) {
-                               lbl = tk.createLabel(parent, formatReadOnlyPropertyValue(prop));
+                               tk.createLabel(parent, formatReadOnlyPropertyValue(prop));
                        } else
                                addModifyableValueWidget(parent, part, prop);
                } catch (RepositoryException re) {