How to connect model to GUI using JFace? [message #464652] |
Sun, 27 November 2005 19:34  |
Eclipse User |
|
|
|
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
|
|
|
|
|
|
Re: How to connect model to GUI using JFace? [message #464916 is a reply to message #464659] |
Thu, 01 December 2005 06:45  |
Eclipse User |
|
|
|
Oh, but it *is* implemented!
It isn't publicly released yet - yes, but the implementation should be
mostly there.
All you need to do is to check it out from CVS and start using it...
... and if there is something that You need that is not present ... well
that's why it is an OpenSource project ;)
Grzegorz Zieliński kirjutas mulle ühel talvisel päeval midagi seesugust:
> Hello Roland,
>
>> Even better documentation could be found at
>> http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-ui-ho
>> me/ databinding-proposal/databinding.html
>>
>> Roland Tepp kirjutas mulle ühel talvisel päeval midagi seesugus t:
>>
>>> You might want to take a look at the "Sweet" framework:
>>> https://bugs.eclipse.org/bugs/show bug.cgi?id=104570
>>>
>
> Thank you, this looks great. There is only one problem: if I understand
> right,
> it's still under development and still not implemented. And I have to
> solve the problem right now.
> Does anybody have example how to use TextViewer?
>
> Grzegorz Zieliński
> g_zielinski<at>intechion.pl
>
>
--
Roland Tepp
|
|
|
Powered by
FUDForum. Page generated in 0.40166 seconds