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%2FGenericPropertyPage.java;h=74e0546fac62c739d7206a09227f50e975d23a87;hb=1d5afdce3e91054f07ddd3c98309c363b4cf1d46;hp=176d7f6597eb02e5938c57c9e3638ffcd6b507f3;hpb=43f16492d87ed567a7d332b205129016a3ef1dd7;p=lgpl%2Fargeo-commons.git diff --git a/server/plugins/org.argeo.jcr.ui.explorer/src/main/java/org/argeo/jcr/ui/explorer/editors/GenericPropertyPage.java b/server/plugins/org.argeo.jcr.ui.explorer/src/main/java/org/argeo/jcr/ui/explorer/editors/GenericPropertyPage.java index 176d7f659..74e0546fa 100644 --- a/server/plugins/org.argeo.jcr.ui.explorer/src/main/java/org/argeo/jcr/ui/explorer/editors/GenericPropertyPage.java +++ b/server/plugins/org.argeo.jcr.ui.explorer/src/main/java/org/argeo/jcr/ui/explorer/editors/GenericPropertyPage.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.util.ArrayList; @@ -9,8 +24,6 @@ import javax.jcr.PropertyIterator; import javax.jcr.RepositoryException; import javax.jcr.Value; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; import org.argeo.ArgeoException; import org.argeo.jcr.ui.explorer.JcrExplorerConstants; import org.argeo.jcr.ui.explorer.JcrExplorerPlugin; @@ -26,7 +39,6 @@ import org.eclipse.swt.widgets.TreeColumn; import org.eclipse.ui.forms.IManagedForm; import org.eclipse.ui.forms.editor.FormEditor; import org.eclipse.ui.forms.editor.FormPage; -import org.eclipse.ui.forms.widgets.FormToolkit; import org.eclipse.ui.forms.widgets.ScrolledForm; /** @@ -36,34 +48,26 @@ import org.eclipse.ui.forms.widgets.ScrolledForm; public class GenericPropertyPage extends FormPage implements JcrExplorerConstants { - private final static Log log = LogFactory.getLog(GenericPropertyPage.class); - - // local constants - private final static String JCR_PROPERTY_NAME = "jcr:name"; + // private final static Log log = + // LogFactory.getLog(GenericPropertyPage.class); // Main business Objects private Node currentNode; - // This page widgets - private FormToolkit tk; - private TreeViewer complexTree; - public GenericPropertyPage(FormEditor editor, String title, Node currentNode) { super(editor, "id", title); this.currentNode = currentNode; } protected void createFormContent(IManagedForm managedForm) { - tk = managedForm.getToolkit(); ScrolledForm form = managedForm.getForm(); - form.setText(JcrExplorerPlugin - .getMessage("genericNodePageTitle")); + form.setText(JcrExplorerPlugin.getMessage("genericNodePageTitle")); FillLayout layout = new FillLayout(); layout.marginHeight = 5; layout.marginWidth = 5; form.getBody().setLayout(layout); - complexTree = createComplexTree(form.getBody()); + createComplexTree(form.getBody()); // TODO remove following // createPropertiesPart(form.getBody());