Some questions about databinding and control-decorations [message #15238] |
Wed, 17 June 2009 20:26 |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: TheRealHawk.Freenet.de
Hi @all,
I've created a simple project to test some databinding- and jface-features.
e.g. master-detail, celleditors, databinding, validation, conversion and so
on.
But now I have some problems in my project:
1. If i change the selection (master) the observerd detail has the wrong
validation status.
I observe the selection of a TableViewer and display the properties of the
selected element in Text-Fields, the selection also enables/disables the
input-controls - it seems, that one observable overrides the
validationstatus of the other. How can I fix this?
2. I use an ObservableMapLabelProvider for the Table - is there something
like a POJOLabelProvider or BeanLabelProvider, that I can set to a
TableViewerColumn?
3. How can I put a calculated Value to the TableViewer?
e.g remove age form Person and calculate it.
4. How can I be shure, that the master (WritableList) is valid?
Currently I added an validator to my targetToModelUpdateValueStrategy - but
If I change the selection, the error-status will be overwritten with the new
status - sometimes the last ok-status will be shown, even if the current
selected element isn't valid.
5. Is it possible to decorate TableItems according to the ValidationStatus?
These are my questions for now. :-)
For better understanding I attached my project and put some FIXME into the
code.
--> You can also write, what you would change on the code.
Thanks
Markus
|
|
|
Powered by
FUDForum. Page generated in 0.02543 seconds