Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sapphire-dev] Dynamic PossibleValueService

Refreshing the property isn't what you want to do in this case. Instead,
your PossibleValuesService implementation should trigger a
PossibleValuesChangedEvent in the service. The slush bucket property editor
listens on that event and will refresh the left side.

See SlushBucketPropertyEditor:260 (0.3.1 line).

Note that the way in which the service triggers an event is a bit different
between 0.3.1 and 0.4 lines.

In 0.3.1: notifyListeners( new PossibleValuesChangedEvent( this ) )
In 0.4: broadcast() // no specific event for this case any more.

- Konstantin


-----Original Message-----
From: sapphire-dev-bounces@xxxxxxxxxxx
[mailto:sapphire-dev-bounces@xxxxxxxxxxx] On Behalf Of Ling Hao
Sent: Monday, September 26, 2011 9:52 AM
To: Sapphire project
Subject: Re: [sapphire-dev] Dynamic PossibleValueService

Sorry, I do mean left side.

On 9/24/2011 7:20 AM, Konstantin Komissarchik wrote:
> Do you mean the left side? The right side shows what is actually in the
> model and the backing resource. A change in the PossibleValueService will
> not cause a change to the right side. The most it will do is cause error
> markers on lines that are no longer part of possible values, but the user
> would have to take an explicit action to remove those lines. Note that to
> see the error markers on individual entries, you need to attach an image
to
> list entry model element.
>
> - Konstantin
>
>
> -----Original Message-----
> From: sapphire-dev-bounces@xxxxxxxxxxx
> [mailto:sapphire-dev-bounces@xxxxxxxxxxx] On Behalf Of Ling Hao
> Sent: Friday, September 23, 2011 8:47 PM
> To: Sapphire project
> Subject: [sapphire-dev] Dynamic PossibleValueService
>
> I have a dynamic PossibleValueService (ie the right side of the slush
> bucket changes). I tried to force a refresh, but the list still does not
> change. How can I force the multi-list to refresh?
>
> Thanks,
> Ling
> _______________________________________________
> sapphire-dev mailing list
> sapphire-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/sapphire-dev
>
> _______________________________________________
> sapphire-dev mailing list
> sapphire-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/sapphire-dev
_______________________________________________
sapphire-dev mailing list
sapphire-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/sapphire-dev



Back to the top