[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: How to connect model to GUI using JFace?

Even better documentation could be found at http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-ui-home/databinding-proposal/databinding.html


Roland Tepp kirjutas mulle Ãhel talvisel pÃeval midagi seesugust:
You might want to take a look at the "Sweet" framework:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=104570

Grzegorz ZieliÅski kirjutas mulle Ãhel talvisel pÃeval midagi seesugust:
Hi.

I have some model class, eg.
public class Contact() {

 private String lastName;
 private String firstName;

 public String getLastName() {
   return lastName;
 }

 public String setLastName(String newName) {
   lastName = newName;
 }

 ...

}

How to connect it to the GUI using JFace?
I know I'll have to create interface, add listener registration to Contact() class, create content provider class, and use/create some viewer class.
The problem is: how to use TextViewer class? How to actually create text boxes on canvas and connect them to the model?


Thank you for quick answer.

Grzegorz ZieliÅski
g_zielinski<at>intechion.pl




-- Roland Tepp