]> git.argeo.org Git - lgpl/argeo-commons.git/blob - editors/NodeRightsManagementPage.java
Prepare next development cycle
[lgpl/argeo-commons.git] / editors / NodeRightsManagementPage.java
1 package org.argeo.jcr.ui.explorer.editors;
2
3 import javax.jcr.Node;
4
5 import org.apache.commons.logging.Log;
6 import org.apache.commons.logging.LogFactory;
7 import org.eclipse.swt.SWT;
8 import org.eclipse.swt.layout.GridLayout;
9 import org.eclipse.swt.widgets.Label;
10 import org.eclipse.ui.forms.IManagedForm;
11 import org.eclipse.ui.forms.editor.FormEditor;
12 import org.eclipse.ui.forms.editor.FormPage;
13 import org.eclipse.ui.forms.widgets.ScrolledForm;
14
15 /**
16 * This comments will be nicely fill by mbaudier in.
17 */
18 public class NodeRightsManagementPage extends FormPage {
19 private final static Log log = LogFactory.getLog(NodeRightsManagementPage.class);
20
21
22 private Node currentNode;
23 public NodeRightsManagementPage(FormEditor editor, String title, Node currentNode) {
24 super(editor, "NodeRightsManagementPage", title);
25 this.currentNode = currentNode;
26 }
27
28 protected void createFormContent(IManagedForm managedForm) {
29 try {
30 ScrolledForm form = managedForm.getForm();
31 GridLayout twt = new GridLayout(1, false);
32 twt.marginWidth = twt.marginHeight = 0;
33 form.getBody().setLayout(twt);
34 Label lbl = new Label(form.getBody(), SWT.NONE);
35 lbl.setText("Implement this");
36 } catch (Exception e) {
37 e.printStackTrace();
38 }
39 }
40 }