Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorglefur2011-02-22 10:51:30 +0000
committerglefur2011-02-22 10:51:30 +0000
commitec5b4c127d09bfc83427f7de250732015226c69d (patch)
treedd9f774b47622b597f73b6dff02f60df76ed79e9
parent852e2d8a1c0c9f31f794c4b11f958fd09a5ddf73 (diff)
downloadorg.eclipse.eef-ec5b4c127d09bfc83427f7de250732015226c69d.tar.gz
org.eclipse.eef-ec5b4c127d09bfc83427f7de250732015226c69d.tar.xz
org.eclipse.eef-ec5b4c127d09bfc83427f7de250732015226c69d.zip
FIXED: selection dialog constructorRoot_v0_9_0_BRANCH
-rw-r--r--plugins/org.eclipse.emf.eef.runtime/src/org/eclipse/emf/eef/runtime/ui/widgets/SelectionDialog.java20
1 files changed, 16 insertions, 4 deletions
diff --git a/plugins/org.eclipse.emf.eef.runtime/src/org/eclipse/emf/eef/runtime/ui/widgets/SelectionDialog.java b/plugins/org.eclipse.emf.eef.runtime/src/org/eclipse/emf/eef/runtime/ui/widgets/SelectionDialog.java
index 8f74ed22d..cc55920f0 100644
--- a/plugins/org.eclipse.emf.eef.runtime/src/org/eclipse/emf/eef/runtime/ui/widgets/SelectionDialog.java
+++ b/plugins/org.eclipse.emf.eef.runtime/src/org/eclipse/emf/eef/runtime/ui/widgets/SelectionDialog.java
@@ -37,6 +37,17 @@ public class SelectionDialog extends Composite {
*
* @param parent
* @param style
+ */
+ public SelectionDialog(Composite parent, int style) {
+ super(parent, style);
+ createControl();
+ }
+
+ /**
+ * The constructor.
+ *
+ * @param parent
+ * @param style
* @param widgetFactory
*/
public SelectionDialog(Composite parent, int style, FormToolkit widgetFactory) {
@@ -54,14 +65,15 @@ public class SelectionDialog extends Composite {
this.setLayout(layout);
if (widgetFactory != null) {
text = widgetFactory.createText(this, "");
-
text.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
-
widgetFactory.paintBordersFor(this);
-
browseButton = widgetFactory.createButton(this, "Browse...", SWT.PUSH);
-
text.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ } else {
+ text = new Text(this, SWT.NONE);
+ text.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ browseButton = new Button(this, SWT.PUSH);
+ browseButton.setText("Browse...");
}
}

Back to the top