]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - NodeRightsManagementPage.java
04bbaaa18cc53aa36d2c5a3d7c25e042b11ed181
1 package org
.argeo
.jcr
.ui
.explorer
.editors
;
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
;
16 * This page is only used at editor's creation time when current node has not
19 public class NodeRightsManagementPage
extends FormPage
{
20 private final static Log log
= LogFactory
.getLog(NodeRightsManagementPage
.class);
23 private Node currentNode
;
24 public NodeRightsManagementPage(FormEditor editor
, String title
, Node currentNode
) {
25 super(editor
, "NodeRightsManagementPage", title
);
26 this.currentNode
= currentNode
;
29 protected void createFormContent(IManagedForm managedForm
) {
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
) {