1 package com.generalrobotix.ui.grxui;
3 import org.eclipse.jface.preference.*;
4 import org.eclipse.swt.SWT;
5 import org.eclipse.swt.layout.GridData;
6 import org.eclipse.swt.widgets.Composite;
7 import org.eclipse.swt.widgets.Group;
8 import org.eclipse.swt.widgets.Label;
9 import org.eclipse.ui.IWorkbenchPreferencePage;
10 import org.eclipse.ui.IWorkbench;
15 extends FieldEditorPreferencePage
16 implements IWorkbenchPreferencePage {
24 Composite comp = getFieldEditorParent();
26 Group group2 =
new Group(comp, SWT.NONE);
28 GridData group2Data =
new GridData();
29 group2Data.horizontalSpan = 3;
30 group2.setLayoutData(group2Data);
31 Label label2 =
new Label(group2, SWT.NONE);
33 GridData label2Data =
new GridData();
34 label2Data.horizontalSpan = 3;
35 label2.setLayoutData(label2Data);
38 Label gap0 =
new Label(comp, SWT.NONE);
39 Group group0 =
new Group(comp, SWT.NONE);
41 GridData group0Data =
new GridData();
42 group0Data.horizontalSpan = 3;
43 group0.setLayoutData(group0Data);
44 Label label0 =
new Label(group0, SWT.NONE);
46 GridData label0Data =
new GridData();
47 label0Data.horizontalSpan = 3;
48 label0.setLayoutData(label0Data);
51 Label gap1 =
new Label(comp, SWT.NONE);
52 GridData gap1Data =
new GridData();
53 gap1Data.horizontalSpan = 3;
54 gap1.setLayoutData(gap1Data);
58 Label gap2 =
new Label(comp, SWT.NONE);
59 Group group1 =
new Group(comp, SWT.NONE);
61 GridData group1Data =
new GridData();
62 group1Data.horizontalSpan = 3;
63 group1.setLayoutData(group1Data);
64 Label label1 =
new Label(group1, SWT.NONE);
66 GridData label1Data =
new GridData();
67 label1Data.horizontalSpan = 1;
68 label1.setLayoutData(label1Data);
71 Label gap3 =
new Label(comp, SWT.NONE);
72 Group group3 =
new Group(comp, SWT.NONE);
73 group3.setText(
MessageBundle.
get(
"GrxuiPreferencePage.initialProject.title"));
74 GridData group3Data =
new GridData();
75 group3Data.horizontalSpan = 3;
76 group3.setLayoutData(group3Data);
77 Label label3 =
new Label(group3, SWT.NONE);
78 label3.setText(
MessageBundle.
get(
"GrxuiPreferencePage.initialProject.message"));
79 GridData label3Data =
new GridData();
80 label3Data.horizontalSpan = 3;
81 label3.setLayoutData(label3Data);
83 String[] extensions = {
"*.xml"};
84 fileFieldEditor.setFileExtensions(extensions);
85 addField(fileFieldEditor);
88 public void init(IWorkbench workbench) {
static final String get(String key)
static final String SERVER_DIR
static final String BIN_SFX
void init(IWorkbench workbench)
static Activator getDefault()
void createFieldEditors()
static final String INITIALPROJECT
static final String JYTHON_LIB
static final String PROJECT_DIR