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

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