]> git.argeo.org Git - lgpl/argeo-commons.git/blob - NodeRightsManagementPage.java
04bbaaa18cc53aa36d2c5a3d7c25e042b11ed181
[lgpl/argeo-commons.git] / 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 page is only used at editor's creation time when current node has not
17 * yet been set
18 */
19 public class NodeRightsManagementPage extends FormPage {
20 private final static Log log = LogFactory.getLog(NodeRightsManagementPage.class);
21
22
23 private Node currentNode;
24 public NodeRightsManagementPage(FormEditor editor, String title, Node currentNode) {
25 super(editor, "NodeRightsManagementPage", title);
26 this.currentNode = currentNode;
27 }
28
29 protected void createFormContent(IManagedForm managedForm) {
30 try {
31 ScrolledForm form = managedForm.getForm();
32 GridLayout twt = new GridLayout(1, false);
33 twt.marginWidth = twt.marginHeight = 0;
34 form.getBody().setLayout(twt);
35 Label lbl = new Label(form.getBody(), SWT.NONE);
36 lbl.setText("Implement this");
37 } catch (Exception e) {
38 e.printStackTrace();
39 }
40 }
41 }