Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » FormattedText not working in JFace data binding scenario
FormattedText not working in JFace data binding scenario [message #599591] Mon, 10 May 2010 14:22
Geejay is currently offline GeejayFriend
Messages: 160
Registered: February 2010
Senior Member

I am using the FormattedText widget, and to perform databinding I am using a
JFace, PojoObservables setup.

Here is the interesting code:

IObservableValue uiElement =
IObservableValue modelElement = PojoObservables.observeValue(modelObject,
IValidator validator = field.getUiValidators().iterator().next();
UpdateValueStrategy strategy = new
bindingContext.bindValue(uiElement, modelElement, strategy, null);

field.getValueControl() returns the text widget on the FormattedText widget,
i.e it calls FormattedText.getControl().

It seems that when I save a value which fails validation, and then reload
the model object into the UI, then I only get the first couple of digits in
the number in the text control.

Whats the correct process for binding to the FormattedText? Should I just be
setting the underlying Text widget?
Previous Topic:How to use decorator with nebula gallery
Next Topic:FormattedText not working in JFace data binding scenario
Goto Forum:

Current Time: Mon May 28 01:50:35 GMT 2018

Powered by FUDForum. Page generated in 0.01803 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top