Home » Modeling » EMF » searching cdo models?
| | | | |
Re: searching cdo models? [message #419987 is a reply to message #419983] |
Mon, 16 June 2008 12:11 |
Cristi Angheluta Messages: 25 Registered: July 2009 |
Junior Member |
|
|
Hi André,
Don't bother anymore. I've figured out how to update the UI.
Thank you.
--
___________________________________________
Cristi Angheluta
Software Engineer
Bucharest Stock Exchange
34-36 Carol I Boulevard, 13th Floor
Bucharest, 020922, Romania
Mobile: +40-742-033-771
Phone: +40-21-3079512/166
Fax: +40-21-3079519
email: undisclosed@nomail.net
___________________________________________
"A minute to learn, a lifetime to master."
On Mon, 16 Jun 2008 14:02:00 +0300, André Dietisheim
<dietisheim@puzzle.ch> wrote:
> Hi Christi
>
> I'd really like to help you, but I have even fewer know-how than you
> have. I was evaluating CDO for a customer project and I am still getting
> started (we decided to use it this morning). I did not implement a
> single line of code using CDO yet. Your research is very valuable for me
> and I hope we'll be able to contribute as we progress. I expect to get
> to the same problems (we'll implement a custom editor, too).
>
> Cheers
> André
>
> Cristi Angheluta wrote:
>> Hi André,
>> I'm sorry for intruding into your post but I have a question for you.
>> How did you manage to update the UI on model change/invalidate?
>> I do receive an invalidate event, at the session level, for a dirty
>> object and calling cdoObject.cdoReload() does not do what it says. I
>> was expecting that this cdoReload() to set the new value and, finally,
>> to update my UI. What can I do is to call a getter on the dirty object
>> to really set the new value and to trigger an UI update. For now it's
>> ok I got only 2-3 types of objects but for a real application ...
>> I'll appreciate any hints regarding my concern,
>> Cristi Angheluta
>>
>
|
|
| |
Re: searching cdo models? [message #419991 is a reply to message #419989] |
Mon, 16 June 2008 13:23 |
Cristi Angheluta Messages: 25 Registered: July 2009 |
Junior Member |
|
|
Hi Andre,
Please follow my previous post(s) @
http://www.eclipse.org/newsportal/article.php?id=32953&g roup=eclipse.tools.emf#32953.
There should be an attachment with a java file and an example of possible
databinding code, between an CDOObject and a SWT Label, that might help
you.
Don't forget to enable invalidate notifications
CDOView view = sess.openView();
view.setInvalidationNotificationsEnabled(true);
More likely that's not the best implementation of an IObservableValue for
a CDO object, but, I promise, to improve it and add more implementations
for IObservableList(/Map) etc., as soon as I decide to go with CDO. I'm
sure that there's a better way to get the old value (perhaps from a
previous revision?).
Cheers,
___________________________________________
Cristi Angheluta
Software Engineer
Bucharest Stock Exchange
34-36 Carol I Boulevard, 13th Floor
Bucharest, 020922, Romania
Mobile: +40-742-033-771
Phone: +40-21-3079512/166
Fax: +40-21-3079519
email: undisclosed@nomail.net
___________________________________________
"A minute to learn, a lifetime to master."
On Mon, 16 Jun 2008 15:53:43 +0300, André Dietisheim
<dietisheim@puzzle.ch> wrote:
> Hi Christi
>
> would you mind post a snippet? I'd be very appreciate it. We'll face the
> same problems for sure!
>
> Thnaks + Cheers
> André
>
> Cristi Angheluta wrote:
>> Hi André,
>> Don't bother anymore. I've figured out how to update the UI.
>> Thank you.
>>
--
|
|
|
Re: searching cdo models? [message #419992 is a reply to message #419991] |
Mon, 16 June 2008 13:27 |
Andre Dietisheim Messages: 131 Registered: July 2009 |
Senior Member |
|
|
Hi Christi
great! looks good, thanks!
Cheers
André
Cristi Angheluta wrote:
> Hi Andre,
>
> Please follow my previous post(s) @
> http://www.eclipse.org/newsportal/article.php?id=32953&g roup=eclipse.tools.emf#32953.
> There should be an attachment with a java file and an example of
> possible databinding code, between an CDOObject and a SWT Label, that
> might help you.
>
> Don't forget to enable invalidate notifications
>
> CDOView view = sess.openView();
> view.setInvalidationNotificationsEnabled(true);
>
> More likely that's not the best implementation of an IObservableValue
> for a CDO object, but, I promise, to improve it and add more
> implementations for IObservableList(/Map) etc., as soon as I decide to
> go with CDO. I'm sure that there's a better way to get the old value
> (perhaps from a previous revision?).
>
>
> Cheers,
> ___________________________________________
>
> Cristi Angheluta
> Software Engineer
>
> Bucharest Stock Exchange
> 34-36 Carol I Boulevard, 13th Floor
> Bucharest, 020922, Romania
>
> Mobile: +40-742-033-771
> Phone: +40-21-3079512/166
> Fax: +40-21-3079519
> email: undisclosed@nomail.net
> ___________________________________________
>
> "A minute to learn, a lifetime to master."
>
>
> On Mon, 16 Jun 2008 15:53:43 +0300, André Dietisheim
> <dietisheim@puzzle.ch> wrote:
>
>> Hi Christi
>>
>> would you mind post a snippet? I'd be very appreciate it. We'll face
>> the same problems for sure!
>>
>> Thnaks + Cheers
>> André
>>
>> Cristi Angheluta wrote:
>>> Hi André,
>>> Don't bother anymore. I've figured out how to update the UI.
>>> Thank you.
>>>
>
>
>
|
|
| |
Goto Forum:
Current Time: Fri Mar 29 05:32:13 GMT 2024
Powered by FUDForum. Page generated in 0.03405 seconds
|