| Summary: | WindowBuilder Databindings replaces existing usage of PojoProperties by BeanProperties | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Timo Rohrberg <timo.rohrberg> | ||||
| Component: | WindowBuilder | Assignee: | Andrey Sablin <sablin.andrey> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | clayberg | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Timo Rohrberg
Please provide sample test code for this case. Created attachment 204854 [details]
Sample project to reproduce.
Steps to reproduce error with included sample project:
1. Extract sample project within a new workspace.
2. Make sure option "Generate observables code for version 1.3 (over properties)" is enabled in Preferences > WindowBuilder > SWT > Code Generation > JFace Data Bindings.
3. Delete the following parts of code from SampleView class:
- private member m_bindingContext
- initialization of m_bindingContext in createPartControl() method
- method initDataBindings()
4. Open Bindings tab of WindowBuilder.
5. Define first binding (see first and second screenshot).
6. Save changes and switch back to code.
7. Observe that WindowBuilder created databinding using a PojoProperties.value() call.
8. Open Bindings tab of WindowBuilder again.
9. Define second binding (see third and fourth screenshot).
10. Save changes and switch back to code.
11. Observe that WindowBuilder now created second databinding using a PojoProperties.value(), but changed first databinding using a BeanProperties.value().
Fixed in trunk. Fixed |