X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=server%2Fplugins%2Forg.argeo.jcr.ui.explorer%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fjcr%2Fui%2Fexplorer%2Feditors%2FGenericNodePage.java;h=697bcae4155edfbccafa524e5d7aa7915ab2c533;hb=1d5afdce3e91054f07ddd3c98309c363b4cf1d46;hp=ca9d969925efc9219ab8c5f8f5ad922bd5d66aa9;hpb=64d85a994e8a9bbf14ec4c0410dd24ded3efc32d;p=lgpl%2Fargeo-commons.git diff --git a/server/plugins/org.argeo.jcr.ui.explorer/src/main/java/org/argeo/jcr/ui/explorer/editors/GenericNodePage.java b/server/plugins/org.argeo.jcr.ui.explorer/src/main/java/org/argeo/jcr/ui/explorer/editors/GenericNodePage.java index ca9d96992..697bcae41 100644 --- a/server/plugins/org.argeo.jcr.ui.explorer/src/main/java/org/argeo/jcr/ui/explorer/editors/GenericNodePage.java +++ b/server/plugins/org.argeo.jcr.ui.explorer/src/main/java/org/argeo/jcr/ui/explorer/editors/GenericNodePage.java @@ -1,3 +1,18 @@ +/* + * Copyright (C) 2007-2012 Mathieu Baudier + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.argeo.jcr.ui.explorer.editors; import java.text.DateFormat; @@ -13,8 +28,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 +37,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 +51,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 +130,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) {