Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.swtbot.eclipse.finder.test/src/org/eclipse/swtbot/eclipse/finder/test/ui/views/SWTBotFormView.java')
-rw-r--r--org.eclipse.swtbot.eclipse.finder.test/src/org/eclipse/swtbot/eclipse/finder/test/ui/views/SWTBotFormView.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/org.eclipse.swtbot.eclipse.finder.test/src/org/eclipse/swtbot/eclipse/finder/test/ui/views/SWTBotFormView.java b/org.eclipse.swtbot.eclipse.finder.test/src/org/eclipse/swtbot/eclipse/finder/test/ui/views/SWTBotFormView.java
new file mode 100644
index 00000000..fd128940
--- /dev/null
+++ b/org.eclipse.swtbot.eclipse.finder.test/src/org/eclipse/swtbot/eclipse/finder/test/ui/views/SWTBotFormView.java
@@ -0,0 +1,28 @@
+package org.eclipse.swtbot.eclipse.finder.test.ui.views;
+
+import org.eclipse.jface.layout.GridLayoutFactory;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.part.ViewPart;
+
+public class SWTBotFormView extends ViewPart {
+
+ private Text text;
+
+ @Override
+ public void createPartControl(Composite parent) {
+ GridLayoutFactory.fillDefaults().numColumns(2).applyTo(parent);
+ Label label = new Label(parent, SWT.NONE);
+ label.setText(getPartName());
+ text = new Text(parent, SWT.BORDER);
+ text.setText(getPartName());
+ }
+
+ @Override
+ public void setFocus() {
+ text.setFocus();
+ }
+
+}

Back to the top