List of usage examples for org.eclipse.jface.databinding.swt SWTObservables getRealm
@Deprecated public static Realm getRealm(final Display display)
From source file:org.switchyard.tools.ui.editor.components.camel.mail.CamelMailProducerComposite.java
License:Open Source License
private void bindControls(final DataBindingContext context) { final EditingDomain domain = AdapterFactoryEditingDomain.getEditingDomainFor(getTargetObject()); final Realm realm = SWTObservables.getRealm(_nameText.getDisplay()); _bindingValue = new WritableValue(realm, null, CamelMailBindingType.class); org.eclipse.core.databinding.Binding binding = context.bindValue( SWTObservables.observeText(_nameText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, ScaPackage.eINSTANCE.getBinding_Name()), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator( new StringEmptyValidator("Mail binding name should not be empty", Status.WARNING)), null);//from w w w. ja va 2 s . c o m ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); /* * we also want to bind the name field to the binding name. note that * the model to target updater is configured to NEVER update. we want * the camel binding name to be the definitive source for this field. */ binding = context.bindValue(SWTObservables.observeText(_nameText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, ScaPackage.eINSTANCE.getBinding_Name()), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator( new StringEmptyValidator("Mail binding name should not be empty", Status.WARNING)), new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER)); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); binding = context.bindValue(SWTObservables.observeText(_hostText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, MailPackage.Literals.CAMEL_MAIL_BINDING_TYPE__HOST), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator(new StringEmptyValidator(Messages.error_emptyHost)), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); binding = context.bindValue(SWTObservables.observeText(_portText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, MailPackage.Literals.CAMEL_MAIL_BINDING_TYPE__PORT), new EMFUpdateValueStrategyNullForEmptyString( "Port must be a valid numeric value or follow the pattern for escaped properties (i.e. '${propName}').", UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator(new EscapedPropertyIntegerValidator( "Port must be a valid numeric value or follow the pattern for escaped properties (i.e. '${propName}').")), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); binding = context.bindValue(SWTObservables.observeText(_usernameText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, MailPackage.Literals.CAMEL_MAIL_BINDING_TYPE__USERNAME), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); binding = context.bindValue(SWTObservables.observeText(_passwordText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, MailPackage.Literals.CAMEL_MAIL_BINDING_TYPE__PASSWORD), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); binding = context.bindValue(SWTObservables.observeSelection(_securedCheckbox), ObservablesUtil.observeDetailValue(domain, _bindingValue, MailPackage.Literals.CAMEL_MAIL_BINDING_TYPE__SECURE), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); bindProducerControls(context, domain, realm); }
From source file:org.switchyard.tools.ui.editor.components.camel.mqtt.CamelMQTTConsumerComposite.java
License:Open Source License
private void bindControls(final DataBindingContext context) { final EditingDomain domain = AdapterFactoryEditingDomain.getEditingDomainFor(getTargetObject()); final Realm realm = SWTObservables.getRealm(_nameText.getDisplay()); _bindingValue = new WritableValue(realm, null, CamelMqttBindingType.class); org.eclipse.core.databinding.Binding binding = context.bindValue( SWTObservables.observeText(_nameText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, ScaPackage.eINSTANCE.getBinding_Name()), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator( new StringEmptyValidator("MQTT binding name should not be empty", Status.WARNING)), null);//from w w w. j a va 2 s. c o m ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); CompoundValidator uriValidator = new CompoundValidator(new URLValidator("Potential problem with Host URI")); binding = context.bindValue(SWTObservables.observeText(_hostURIText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, MqttPackage.Literals.CAMEL_MQTT_BINDING_TYPE__HOST), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator(uriValidator), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); binding = context.bindValue(SWTObservables.observeText(_subscribeTopicNameText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, MqttPackage.Literals.CAMEL_MQTT_BINDING_TYPE__SUBSCRIBE_TOPIC_NAME), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); binding = context.bindValue(SWTObservables.observeText(_connectAttemptsMaxText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, MqttPackage.Literals.CAMEL_MQTT_BINDING_TYPE__CONNECT_ATTEMPTS_MAX), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator(new EscapedPropertyIntegerValidator( "Connect Attempts Max must be a valid numeric value or follow the pattern for escaped properties (i.e. '${propName}').")), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); binding = context.bindValue(SWTObservables.observeText(_reconnectAttemptsMaxText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, MqttPackage.Literals.CAMEL_MQTT_BINDING_TYPE__RECONNECT_ATTEMPTS_MAX), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator(new EscapedPropertyIntegerValidator( "Reconnect Attempts Max must be a valid numeric value or follow the pattern for escaped properties (i.e. '${propName}').")), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); binding = context.bindValue(ViewersObservables.observeSingleSelection(_qosCombo), ObservablesUtil.observeDetailValue(domain, _bindingValue, MqttPackage.Literals.CAMEL_MQTT_BINDING_TYPE__QUALITY_OF_SERVICE), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); }
From source file:org.switchyard.tools.ui.editor.components.camel.mqtt.CamelMQTTProducerComposite.java
License:Open Source License
private void bindControls(final DataBindingContext context) { final EditingDomain domain = AdapterFactoryEditingDomain.getEditingDomainFor(getTargetObject()); final Realm realm = SWTObservables.getRealm(_nameText.getDisplay()); _bindingValue = new WritableValue(realm, null, CamelMqttBindingType.class); org.eclipse.core.databinding.Binding binding = context.bindValue( SWTObservables.observeText(_nameText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, ScaPackage.eINSTANCE.getBinding_Name()), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator( new StringEmptyValidator("MQTT binding name should not be empty", Status.WARNING)), null);/* w w w .ja v a2s . co m*/ ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); CompoundValidator uriValidator = new CompoundValidator(new URLValidator("Potential problem with Host URI")); binding = context.bindValue(SWTObservables.observeText(_hostURIText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, MqttPackage.Literals.CAMEL_MQTT_BINDING_TYPE__HOST), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator(uriValidator), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); binding = context.bindValue(SWTObservables.observeText(_publishTopicNameText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, MqttPackage.Literals.CAMEL_MQTT_BINDING_TYPE__PUBLISH_TOPIC_NAME), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); binding = context.bindValue(SWTObservables.observeText(_connectAttemptsMaxText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, MqttPackage.Literals.CAMEL_MQTT_BINDING_TYPE__CONNECT_ATTEMPTS_MAX), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator(new EscapedPropertyIntegerValidator( "Connect Attempts Max must be a valid numeric value or follow the pattern for escaped properties (i.e. '${propName}').")), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); binding = context.bindValue(SWTObservables.observeText(_reconnectAttemptsMaxText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, MqttPackage.Literals.CAMEL_MQTT_BINDING_TYPE__RECONNECT_ATTEMPTS_MAX), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator(new EscapedPropertyIntegerValidator( "Reconnect Attempts Max must be a valid numeric value or follow the pattern for escaped properties (i.e. '${propName}').")), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); binding = context.bindValue(ViewersObservables.observeSingleSelection(_qosCombo), ObservablesUtil.observeDetailValue(domain, _bindingValue, MqttPackage.Literals.CAMEL_MQTT_BINDING_TYPE__QUALITY_OF_SERVICE), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); binding = context.bindValue(SWTObservables.observeSelection(_byDefaultRetainCheckbox), ObservablesUtil.observeDetailValue(domain, _bindingValue, MqttPackage.Literals.CAMEL_MQTT_BINDING_TYPE__BY_DEFAULT_RETAIN), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); }
From source file:org.switchyard.tools.ui.editor.components.camel.netty.CamelNettyTCPComposite.java
License:Open Source License
private void bindControls(final DataBindingContext context) { final EditingDomain domain = AdapterFactoryEditingDomain.getEditingDomainFor(getTargetObject()); final Realm realm = SWTObservables.getRealm(_nameText.getDisplay()); _bindingValue = new WritableValue(realm, null, CamelNettyTcpBindingType.class); org.eclipse.core.databinding.Binding binding = context.bindValue( SWTObservables.observeText(_nameText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, ScaPackage.eINSTANCE.getBinding_Name()), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator( new StringEmptyValidator("Netty binding name should not be empty", Status.WARNING)), null);/*from w w w. ja v a2s. c o m*/ ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); /* * we also want to bind the name field to the binding name. note that * the model to target updater is configured to NEVER update. we want * the camel binding name to be the definitive source for this field. */ binding = context.bindValue(SWTObservables.observeText(_nameText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, ScaPackage.eINSTANCE.getBinding_Name()), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator( new StringEmptyValidator("Netty binding name should not be empty", Status.WARNING)), new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER)); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); binding = context.bindValue(SWTObservables.observeText(_hostText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, NettyPackage.Literals.CAMEL_NETTY_BINDING_TYPE__HOST), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator(new StringEmptyValidator(Messages.error_emptyHost)), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); CompoundValidator portValidator = new CompoundValidator(new StringEmptyValidator(Messages.error_emptyPort), new EscapedPropertyIntegerValidator( "Port must be a valid numeric value or follow the pattern for escaped properties (i.e. '${propName}').")); binding = context.bindValue(SWTObservables.observeText(_portText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, NettyPackage.Literals.CAMEL_NETTY_BINDING_TYPE__PORT), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator(portValidator), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); if (_opSelectorComposite != null) { _opSelectorComposite.bindControls(domain, context); } }
From source file:org.switchyard.tools.ui.editor.components.camel.netty.CamelNettyUDPComposite.java
License:Open Source License
private void bindControls(final DataBindingContext context) { final EditingDomain domain = AdapterFactoryEditingDomain.getEditingDomainFor(getTargetObject()); final Realm realm = SWTObservables.getRealm(_nameText.getDisplay()); _bindingValue = new WritableValue(realm, null, CamelNettyUdpBindingType.class); org.eclipse.core.databinding.Binding binding = context.bindValue( SWTObservables.observeText(_nameText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, ScaPackage.eINSTANCE.getBinding_Name()), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator( new StringEmptyValidator("Netty binding name should not be empty", Status.WARNING)), null);//from www . j a v a 2 s .c o m ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); /* * we also want to bind the name field to the binding name. note that * the model to target updater is configured to NEVER update. we want * the camel binding name to be the definitive source for this field. */ binding = context.bindValue(SWTObservables.observeText(_nameText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, ScaPackage.eINSTANCE.getBinding_Name()), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator( new StringEmptyValidator("Netty binding name should not be empty", Status.WARNING)), new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER)); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); binding = context.bindValue(SWTObservables.observeText(_hostText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, NettyPackage.Literals.CAMEL_NETTY_BINDING_TYPE__HOST), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator(new StringEmptyValidator(Messages.error_emptyHost)), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); CompoundValidator portValidator = new CompoundValidator(new StringEmptyValidator(Messages.error_emptyPort), new EscapedPropertyIntegerValidator( "Port must be a valid numeric value or follow the pattern for escaped properties (i.e. '${propName}').")); binding = context.bindValue(SWTObservables.observeText(_portText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, NettyPackage.Literals.CAMEL_NETTY_BINDING_TYPE__PORT), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator(portValidator), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); binding = context.bindValue(SWTObservables.observeSelection(_broadcastCheckbox), ObservablesUtil.observeDetailValue(domain, _bindingValue, NettyPackage.Literals.CAMEL_NETTY_UDP_BINDING_TYPE__BROADCAST), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); if (_opSelectorComposite != null) { _opSelectorComposite.bindControls(domain, context); } }
From source file:org.switchyard.tools.ui.editor.components.camel.quartz.CamelQuartzComposite.java
License:Open Source License
private void bindControls(final DataBindingContext context) { final EditingDomain domain = AdapterFactoryEditingDomain.getEditingDomainFor(getTargetObject()); final Realm realm = SWTObservables.getRealm(_nameText.getDisplay()); _bindingValue = new WritableValue(realm, null, CamelQuartzBindingType.class); org.eclipse.core.databinding.Binding binding = context.bindValue( SWTObservables.observeText(_nameText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, QuartzPackage.Literals.CAMEL_QUARTZ_BINDING_TYPE__CAMEL_BINDING_NAME), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator(new StringEmptyValidator( "Schedule binding name should not be empty", Status.WARNING)), null);//ww w. j a v a 2 s . c o m ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); /* * we also want to bind the name field to the binding name. note that * the model to target updater is configured to NEVER update. we want * the camel binding name to be the definitive source for this field. */ binding = context.bindValue(SWTObservables.observeText(_nameText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, QuartzPackage.Literals.CAMEL_QUARTZ_BINDING_TYPE__CAMEL_BINDING_NAME), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator(new StringEmptyValidator( "Schedule binding name should not be empty", Status.WARNING)), new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER)); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); binding = context.bindValue(SWTObservables.observeText(_cronText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, QuartzPackage.Literals.CAMEL_QUARTZ_BINDING_TYPE__CRON), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator( new StringEmptyValidator(Messages.CamelQuartzComposite_Validation_CRON_Empty)), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); EMFUpdateValueStrategy startTimeStrategy = new EMFUpdateValueStrategyNullForEmptyString( Messages.CamelQuartzComposite_Validation_Start_Time_Format, UpdateValueStrategy.POLICY_CONVERT); binding = context.bindValue(SWTObservables.observeText(_startTimeText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, QuartzPackage.Literals.CAMEL_QUARTZ_BINDING_TYPE__TRIGGER_START_TIME), startTimeStrategy, null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); EMFUpdateValueStrategy endTimeStrategy = new EMFUpdateValueStrategyNullForEmptyString( Messages.CamelQuartzComposite_Validation_End_Time_Format, UpdateValueStrategy.POLICY_CONVERT); binding = context .bindValue(SWTObservables.observeText(_endTimeText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, QuartzPackage.Literals.CAMEL_QUARTZ_BINDING_TYPE__TRIGGER_END_TIME), endTimeStrategy, null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); binding = context.bindValue(ViewersObservables.observeSingleSelection(_timezoneViewer), ObservablesUtil.observeDetailValue(domain, _bindingValue, QuartzPackage.Literals.CAMEL_QUARTZ_BINDING_TYPE__TRIGGER_TIME_ZONE), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); _opSelectorComposite.bindControls(domain, context); }
From source file:org.switchyard.tools.ui.editor.components.camel.rss.CamelRSSConsumerComposite.java
License:Open Source License
private void bindControls(final DataBindingContext context) { final EditingDomain domain = AdapterFactoryEditingDomain.getEditingDomainFor(getTargetObject()); final Realm realm = SWTObservables.getRealm(_nameText.getDisplay()); _bindingValue = new WritableValue(realm, null, CamelRSSBindingType.class); org.eclipse.core.databinding.Binding binding = context.bindValue( SWTObservables.observeText(_nameText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, ScaPackage.eINSTANCE.getBinding_Name()), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator( new StringEmptyValidator("RSS binding name should not be empty", Status.WARNING)), null);/*from w w w . j a va 2s. c om*/ ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); /* * we also want to bind the name field to the binding name. note that * the model to target updater is configured to NEVER update. we want * the camel binding name to be the definitive source for this field. */ binding = context.bindValue(SWTObservables.observeText(_nameText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, ScaPackage.eINSTANCE.getBinding_Name()), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator( new StringEmptyValidator("RSS binding name should not be empty", Status.WARNING)), new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER)); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); CompoundValidator uriValidator = new CompoundValidator( new StringEmptyValidator("Feed URI may not be empty."), new URLValidator("Potential problem with Feed URI")); binding = context.bindValue(SWTObservables.observeText(_feedURIText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, RssPackage.Literals.CAMEL_RSS_BINDING_TYPE__FEED_URI), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator(uriValidator), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); final IObservableValue splitEntriesCheckboxValue = SWTObservables.observeSelection(_splitEntriesCheckbox); final IObservableValue filterValue = ObservablesUtil.observeDetailValue(domain, _bindingValue, RssPackage.Literals.CAMEL_RSS_BINDING_TYPE__FILTER); final IObservableValue lastUpdateValue = ObservablesUtil.observeDetailValue(domain, _bindingValue, RssPackage.Literals.CAMEL_RSS_BINDING_TYPE__LAST_UPDATE); final IObservableValue sortEntriesValue = ObservablesUtil.observeDetailValue(domain, _bindingValue, RssPackage.Literals.CAMEL_RSS_BINDING_TYPE__SORT_ENTRIES); binding = context.bindValue(splitEntriesCheckboxValue, ObservablesUtil.observeDetailValue(domain, _bindingValue, RssPackage.Literals.CAMEL_RSS_BINDING_TYPE__SPLIT_ENTRIES), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); _splitEntriesCheckbox.addSelectionListener(new SelectionListener() { @Override public void widgetSelected(SelectionEvent e) { _filterCheckbox.setEnabled(_splitEntriesCheckbox.getSelection()); _lastUpdateText.setEnabled(_splitEntriesCheckbox.getSelection()); _sortEntriesCheckbox.setEnabled(_splitEntriesCheckbox.getSelection()); if (!_splitEntriesCheckbox.getSelection()) { filterValue.setValue(Boolean.TRUE); // default lastUpdateValue.setValue(null); // default sortEntriesValue.setValue(Boolean.FALSE); // default } } @Override public void widgetDefaultSelected(SelectionEvent e) { } }); binding = context.bindValue(SWTObservables.observeSelection(_filterCheckbox), filterValue, new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); binding = context.bindValue(SWTObservables.observeText(_lastUpdateText, new int[] { SWT.Modify }), lastUpdateValue, new EMFUpdateValueStrategyNullForEmptyString( "Last Update must match the format yyyy-MM-ddTHH:mm:ss", UpdateValueStrategy.POLICY_CONVERT), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); binding = context.bindValue(SWTObservables.observeSelection(_sortEntriesCheckbox), sortEntriesValue, new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); FeaturePath path = FeaturePath.fromList(RssPackage.Literals.CAMEL_RSS_BINDING_TYPE__CONSUME, RssPackage.Literals.RSS_SCHEDULED_POLL_CONSUMER_TYPE__DELAY); binding = context.bindValue(SWTObservables.observeText(_delayText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, path), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); }
From source file:org.switchyard.tools.ui.editor.components.camel.rss.CamelRSSProducerComposite.java
License:Open Source License
private void bindControls(final DataBindingContext context) { final EditingDomain domain = AdapterFactoryEditingDomain.getEditingDomainFor(getTargetObject()); final Realm realm = SWTObservables.getRealm(_nameText.getDisplay()); _bindingValue = new WritableValue(realm, null, CamelRSSBindingType.class); org.eclipse.core.databinding.Binding binding = context.bindValue( SWTObservables.observeText(_nameText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, ScaPackage.eINSTANCE.getBinding_Name()), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator( new StringEmptyValidator("RSS binding name should not be empty", Status.WARNING)), null);/*from www .j a v a2 s .co m*/ ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); /* * we also want to bind the name field to the binding name. note that * the model to target updater is configured to NEVER update. we want * the camel binding name to be the definitive source for this field. */ binding = context.bindValue(SWTObservables.observeText(_nameText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, ScaPackage.eINSTANCE.getBinding_Name()), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator( new StringEmptyValidator("RSS binding name should not be empty", Status.WARNING)), new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER)); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); CompoundValidator uriValidator = new CompoundValidator( new StringEmptyValidator("Feed URI may not be empty."), new URLValidator("Potential problem with Feed URI")); binding = context.bindValue(SWTObservables.observeText(_feedURIText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, RssPackage.Literals.CAMEL_RSS_BINDING_TYPE__FEED_URI), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator(uriValidator), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); final IObservableValue splitEntriesCheckboxValue = SWTObservables.observeSelection(_splitEntriesCheckbox); final IObservableValue filterValue = ObservablesUtil.observeDetailValue(domain, _bindingValue, RssPackage.Literals.CAMEL_RSS_BINDING_TYPE__FILTER); final IObservableValue lastUpdateValue = ObservablesUtil.observeDetailValue(domain, _bindingValue, RssPackage.Literals.CAMEL_RSS_BINDING_TYPE__LAST_UPDATE); final IObservableValue sortEntriesValue = ObservablesUtil.observeDetailValue(domain, _bindingValue, RssPackage.Literals.CAMEL_RSS_BINDING_TYPE__SORT_ENTRIES); binding = context.bindValue(splitEntriesCheckboxValue, ObservablesUtil.observeDetailValue(domain, _bindingValue, RssPackage.Literals.CAMEL_RSS_BINDING_TYPE__SPLIT_ENTRIES), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); _splitEntriesCheckbox.addSelectionListener(new SelectionListener() { @Override public void widgetSelected(SelectionEvent e) { _filterCheckbox.setEnabled(_splitEntriesCheckbox.getSelection()); _lastUpdateText.setEnabled(_splitEntriesCheckbox.getSelection()); _sortEntriesCheckbox.setEnabled(_splitEntriesCheckbox.getSelection()); if (!_splitEntriesCheckbox.getSelection()) { filterValue.setValue(Boolean.TRUE); // default lastUpdateValue.setValue(null); // default sortEntriesValue.setValue(Boolean.FALSE); // default } } @Override public void widgetDefaultSelected(SelectionEvent e) { } }); binding = context.bindValue(SWTObservables.observeSelection(_filterCheckbox), filterValue, new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); binding = context.bindValue(SWTObservables.observeText(_lastUpdateText, new int[] { SWT.Modify }), lastUpdateValue, new EMFUpdateValueStrategyNullForEmptyString( "Last Update must match the format yyyy-MM-ddTHH:mm:ss", UpdateValueStrategy.POLICY_CONVERT), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); binding = context.bindValue(SWTObservables.observeSelection(_sortEntriesCheckbox), sortEntriesValue, new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); }
From source file:org.switchyard.tools.ui.editor.components.camel.sap.CamelSAPComposite.java
License:Open Source License
private void bindControls(final DataBindingContext context) { final EditingDomain domain = AdapterFactoryEditingDomain.getEditingDomainFor(getTargetObject()); final Realm realm = SWTObservables.getRealm(_nameText.getDisplay()); _bindingValue = new WritableValue(realm, null, CamelSqlBindingType.class); org.eclipse.core.databinding.Binding binding = context.bindValue( SWTObservables.observeText(_nameText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, ScaPackage.eINSTANCE.getBinding_Name()), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator(new StringEmptyValidator( Messages.CamelSAPComposite_Binding_name_empty_warning, Status.WARNING)), null);//from w w w . j ava2 s.com ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); /* * we also want to bind the name field to the binding name. note that * the model to target updater is configured to NEVER update. we want * the camel binding name to be the definitive source for this field. */ binding = context.bindValue(SWTObservables.observeText(_nameText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, ScaPackage.eINSTANCE.getBinding_Name()), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator(new StringEmptyValidator( Messages.CamelSAPComposite_Binding_name_empty_warning, Status.WARNING)), new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER)); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); if (_serverText != null && !_serverText.isDisposed()) { binding = context.bindValue(SWTObservables.observeText(_serverText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, SapPackage.Literals.CAMEL_SAP_BINDING_TYPE__SERVER), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator( new StringEmptyValidator(Messages.CamelSAPComposite_Server_name_empty_error)), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); } if (_destinationText != null && !_destinationText.isDisposed()) { binding = context.bindValue(SWTObservables.observeText(_destinationText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, SapPackage.Literals.CAMEL_SAP_BINDING_TYPE__DESTINATION), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator(new StringEmptyValidator( Messages.CamelSAPComposite_Destination_name_empty_error)), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); } binding = context.bindValue(SWTObservables.observeText(_rfcNameText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, SapPackage.Literals.CAMEL_SAP_BINDING_TYPE__RFC_NAME), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator( new StringEmptyValidator(Messages.CamelSAPComposite_RFC_name_empty_error)), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); binding = context.bindValue(SWTObservables.observeSelection(_transactedCheckbox), ObservablesUtil.observeDetailValue(domain, _bindingValue, SapPackage.Literals.CAMEL_SAP_BINDING_TYPE__TRANSACTED), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); }
From source file:org.switchyard.tools.ui.editor.components.camel.sap.CamelSAPConsumerComposite.java
License:Open Source License
private void bindControls(final DataBindingContext context) { final EditingDomain domain = AdapterFactoryEditingDomain.getEditingDomainFor(getTargetObject()); final Realm realm = SWTObservables.getRealm(_nameText.getDisplay()); _bindingValue = new WritableValue(realm, null, CamelSapBindingType.class); org.eclipse.core.databinding.Binding binding = context.bindValue( SWTObservables.observeText(_nameText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, ScaPackage.eINSTANCE.getBinding_Name()), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator(new StringEmptyValidator( Messages.CamelSAPComposite_Binding_name_empty_warning, Status.WARNING)), null);//from w w w . jav a2 s . c o m ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); /* * we also want to bind the name field to the binding name. note that * the model to target updater is configured to NEVER update. we want * the camel binding name to be the definitive source for this field. */ binding = context.bindValue(SWTObservables.observeText(_nameText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, ScaPackage.eINSTANCE.getBinding_Name()), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator(new StringEmptyValidator( Messages.CamelSAPComposite_Binding_name_empty_warning, Status.WARNING)), new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER)); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); FeaturePath path = FeaturePath.fromList(SapPackage.Literals.CAMEL_SAP_BINDING_TYPE__IDOCLIST_SERVER, SapPackage.Literals.CAMEL_SAP_IDOC_LIST_SERVER_TYPE__SERVER_NAME); _idocServerTextBinding = context.bindValue( SWTObservables.observeText(_idocServerText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, path), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator(new StringEmptyControlAwareValidator( Messages.CamelSAPComposite_Server_name_empty_error, _idocServerText)), null); ControlDecorationSupport.create(SWTValueUpdater.attach(_idocServerTextBinding), SWT.TOP | SWT.LEFT); path = FeaturePath.fromList(SapPackage.Literals.CAMEL_SAP_BINDING_TYPE__IDOCLIST_SERVER, SapPackage.Literals.CAMEL_SAP_IDOC_LIST_SERVER_TYPE__IDOC_TYPE); _idocTypeTextBinding = context.bindValue( SWTObservables.observeText(_idocTypeText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, path), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator( new StringEmptyControlAwareValidator("IDoc Type cannot be empty.", _idocTypeText)), null); ControlDecorationSupport.create(SWTValueUpdater.attach(_idocTypeTextBinding), SWT.TOP | SWT.LEFT); path = FeaturePath.fromList(SapPackage.Literals.CAMEL_SAP_BINDING_TYPE__IDOCLIST_SERVER, SapPackage.Literals.CAMEL_SAP_IDOC_LIST_SERVER_TYPE__IDOC_TYPE_EXTENSION); binding = context.bindValue(SWTObservables.observeText(_idocTypeExtText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, path), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); path = FeaturePath.fromList(SapPackage.Literals.CAMEL_SAP_BINDING_TYPE__IDOCLIST_SERVER, SapPackage.Literals.CAMEL_SAP_IDOC_LIST_SERVER_TYPE__SYSTEM_RELEASE); binding = context.bindValue(SWTObservables.observeText(_systemReleaseText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, path), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); path = FeaturePath.fromList(SapPackage.Literals.CAMEL_SAP_BINDING_TYPE__IDOCLIST_SERVER, SapPackage.Literals.CAMEL_SAP_IDOC_LIST_SERVER_TYPE__APPLICATION_RELEASE); binding = context.bindValue(SWTObservables.observeText(_applicationReleaseText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, path), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT), null); ControlDecorationSupport.create(SWTValueUpdater.attach(binding), SWT.TOP | SWT.LEFT); path = FeaturePath.fromList(SapPackage.Literals.CAMEL_SAP_BINDING_TYPE__TRFC_SERVER, SapPackage.Literals.CAMEL_SAP_TRFC_SERVER_TYPE__SERVER_NAME); _tRFCServerTextBinding = context.bindValue( SWTObservables.observeText(_tRFCServerText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, path), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator(new StringEmptyControlAwareValidator( Messages.CamelSAPComposite_Server_name_empty_error, _tRFCServerText)), null); ControlDecorationSupport.create(SWTValueUpdater.attach(_tRFCServerTextBinding), SWT.TOP | SWT.LEFT); path = FeaturePath.fromList(SapPackage.Literals.CAMEL_SAP_BINDING_TYPE__TRFC_SERVER, SapPackage.Literals.CAMEL_SAP_TRFC_SERVER_TYPE__RFC_NAME); _tRFCRFCTextBinding = context.bindValue( SWTObservables.observeText(_trfcRFCNameText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, path), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator(new StringEmptyControlAwareValidator( Messages.CamelSAPComposite_RFC_name_empty_error, _trfcRFCNameText)), null); ControlDecorationSupport.create(SWTValueUpdater.attach(_tRFCRFCTextBinding), SWT.TOP | SWT.LEFT); path = FeaturePath.fromList(SapPackage.Literals.CAMEL_SAP_BINDING_TYPE__SRFC_SERVER, SapPackage.Literals.CAMEL_SAP_SRFC_SERVER_TYPE__SERVER_NAME); _sRFCServerTextBinding = context.bindValue( SWTObservables.observeText(_srfcServerText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, path), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator(new StringEmptyControlAwareValidator( Messages.CamelSAPComposite_Server_name_empty_error, _srfcServerText)), null); ControlDecorationSupport.create(SWTValueUpdater.attach(_sRFCServerTextBinding), SWT.TOP | SWT.LEFT); path = FeaturePath.fromList(SapPackage.Literals.CAMEL_SAP_BINDING_TYPE__SRFC_SERVER, SapPackage.Literals.CAMEL_SAP_SRFC_SERVER_TYPE__RFC_NAME); _sRFCRFCTextBinding = context.bindValue( SWTObservables.observeText(_srfcRFCNameText, new int[] { SWT.Modify }), ObservablesUtil.observeDetailValue(domain, _bindingValue, path), new EMFUpdateValueStrategyNullForEmptyString(null, UpdateValueStrategy.POLICY_CONVERT) .setAfterConvertValidator(new StringEmptyControlAwareValidator( Messages.CamelSAPComposite_RFC_name_empty_error, _srfcRFCNameText)), null); ControlDecorationSupport.create(SWTValueUpdater.attach(_sRFCRFCTextBinding), SWT.TOP | SWT.LEFT); }