Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmoore2008-09-23 16:51:15 -0400
committerkmoore2008-09-23 16:51:15 -0400
commitb34a5959fde9fac7fec13f8d5204efe896b2e2c2 (patch)
treecbe792008a4b474b5df26f126bd6a90fb96d2969
parent0b1d125200a865b61f1dcc61e688ae30d61b7367 (diff)
downloadwebtools.dali-b34a5959fde9fac7fec13f8d5204efe896b2e2c2.tar.gz
webtools.dali-b34a5959fde9fac7fec13f8d5204efe896b2e2c2.tar.xz
webtools.dali-b34a5959fde9fac7fec13f8d5204efe896b2e2c2.zip
added default value handler
-rw-r--r--jpa/plugins/org.eclipse.jpt.eclipselink.ui/src/org/eclipse/jpt/eclipselink/ui/internal/mappings/details/ConvertComposite.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.ui/src/org/eclipse/jpt/eclipselink/ui/internal/mappings/details/ConvertComposite.java b/jpa/plugins/org.eclipse.jpt.eclipselink.ui/src/org/eclipse/jpt/eclipselink/ui/internal/mappings/details/ConvertComposite.java
index 391c4ea1e9..bfb5ac7da8 100644
--- a/jpa/plugins/org.eclipse.jpt.eclipselink.ui/src/org/eclipse/jpt/eclipselink/ui/internal/mappings/details/ConvertComposite.java
+++ b/jpa/plugins/org.eclipse.jpt.eclipselink.ui/src/org/eclipse/jpt/eclipselink/ui/internal/mappings/details/ConvertComposite.java
@@ -19,6 +19,7 @@ import org.eclipse.jpt.eclipselink.ui.internal.mappings.EclipseLinkUiMappingsMes
import org.eclipse.jpt.ui.WidgetFactory;
import org.eclipse.jpt.ui.internal.mappings.JptUiMappingsMessages;
import org.eclipse.jpt.ui.internal.util.PaneEnabler;
+import org.eclipse.jpt.ui.internal.util.SWTUtil;
import org.eclipse.jpt.ui.internal.widgets.FormPane;
import org.eclipse.jpt.utility.internal.CollectionTools;
import org.eclipse.jpt.utility.internal.StringConverter;
@@ -32,6 +33,7 @@ import org.eclipse.jpt.utility.model.value.ListValueModel;
import org.eclipse.jpt.utility.model.value.PropertyValueModel;
import org.eclipse.jpt.utility.model.value.WritablePropertyValueModel;
import org.eclipse.osgi.util.NLS;
+import org.eclipse.swt.custom.CCombo;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Composite;
@@ -78,7 +80,7 @@ public class ConvertComposite extends FormPane<EclipseLinkConvert>
@Override
protected void initializeLayout(Composite container) {
- addLabeledEditableCCombo(
+ CCombo combo = addLabeledEditableCCombo(
container,
EclipseLinkUiMappingsMessages.ConvertComposite_convertNameLabel,
buildConvertNameListHolder(),
@@ -86,6 +88,7 @@ public class ConvertComposite extends FormPane<EclipseLinkConvert>
buildNameConverter(),
null
);
+ SWTUtil.attachDefaultValueHandler(combo);
Composite subSection = addCollapsableSubSection(
container,

Back to the top