Bug 306612 - [DataBinding] Delayed value property
Summary: [DataBinding] Delayed value property
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5.2   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Ovidio Mallo CLA
QA Contact:
URL:
Whiteboard:
Keywords: api
Depends on: 305367
Blocks:
  Show dependency tree
 
Reported: 2010-03-20 18:34 EDT by Ovidio Mallo CLA
Modified: 2020-06-06 15:56 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ovidio Mallo CLA 2010-03-20 18:34:15 EDT
I think that it would be nice to have a DelayedValueProperty which provides the functionality of the existing DelayedObservableValue on the property API. That way, we could also get delayed detail observable list/set/maps like this:

  IValueProperty property = ...;
  IValueProperty delayedProperty = Properties.delayedValue(500, property);
  IObservableMap delayedObservableMap = delayedProperty.observeDetail(knownElementSet);

Implementing such a DelayedValueProperty would require the functionality provided by the patch of bug 305367.
Comment 1 Matthew Hall CLA 2010-04-02 20:42:39 EDT
I almost want to put it in IValueProperty itself:

public IValueProperty delayed(int delay)
Comment 2 Ovidio Mallo CLA 2010-04-03 04:18:56 EDT
That's a good idea since it makes the API more handy to use and it also opens up the possibility to override the method in order to decorate the delayed observable with a custom interface like IBeanObservable in case this is desired.
Comment 3 Matthew Hall CLA 2010-08-20 01:09:36 EDT
Ovidio, you want this one?
Comment 4 Ovidio Mallo CLA 2010-08-21 14:47:50 EDT
I'll take a look at this but first we would need to apply the patch for bug 305367 before tackling this one. Would you mind having a look at the patch for bug 305367 as you find the time in order to see whether we could commit that one?
Comment 5 Lars Vogel CLA 2017-10-11 14:41:41 EDT
(In reply to Ovidio Mallo from comment #4)
> I'll take a look at this but first we would need to apply the patch for bug
> 305367 before tackling this one. Would you mind having a look at the patch
> for bug 305367 as you find the time in order to see whether we could commit
> that one?

Ovidio, are you still around? I also like the idea  of public IValueProperty delayed(int delay).

If you are still around, can you provide a patch?
Comment 6 Lars Vogel CLA 2020-05-25 04:42:55 EDT
Jens, can you check if this request is still relevant?
Comment 7 Jens Lideström CLA 2020-06-06 15:15:56 EDT
(In reply to Lars Vogel from comment #6)
> Jens, can you check if this request is still relevant?

It is still relevant.

But I don't think the proposed additions would be very useful.

I think almost all use  cases are handled by the existing methods: Observables.observeDelayedValue and IWidgetValueProperty.observeDelayed. Adding a second way to do this seems unwarranted.

I think we can close this ticket as WONTFIX until we get a strong argument for the advantages of the proposed additions compared to existing solutions.
Comment 8 Lars Vogel CLA 2020-06-06 15:56:46 EDT
Thanks Jens