+/*
+ * 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;
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;
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;
/**
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());