Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to adapt domain objects to GUI in Java

I'm new to the architecture of UIs and in the past I've programmed very simple UIs. Now I'm confronted with a very large domain model. Because I've used different OR-Mappers to store domain objects in a flat data structure I thought about mapping the domain objects to the view-side in a similar way.

Are there any patterns or frameworks that address this problem?

More precisely I want to adapt the domain objects to eclipse RCP views in an easy way.

Thanks in advance

like image 300
shylynx Avatar asked May 10 '26 10:05

shylynx


1 Answers

Regarding Eclipse RCP, I'm not aware of any 'frameworks' for this, but at least the JFace ContentProvider mechanism makes it easy to write a layer of re-usable adapters that handles the presentation of your domain classes in JFace viewers.

If you're after some generic (or starting-point) CRUD screens for domain classes, perhaps you can use code-generation, reflection, and/or dynamic proxies for the ContentProvider classes, taking each domain class (or classes) as input. However, this is rarely as simple as it sounds.

like image 176
Cornel Masson Avatar answered May 13 '26 02:05

Cornel Masson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!