Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 149378 - [DataBinding] Need a straight forward way to specify TIME_EARLY for TextObservableValue
Summary: [DataBinding] Need a straight forward way to specify TIME_EARLY for TextObser...
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Boris Bokowski CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 144260
  Show dependency tree
 
Reported: 2006-07-01 16:12 EDT by Brad Reynolds CLA
Modified: 2006-09-26 10:44 EDT (History)
2 users (show)

See Also:


Attachments
patch (22.96 KB, patch)
2006-07-06 00:41 EDT, Brad Reynolds CLA
no flags Details | Diff
patch (30.50 KB, patch)
2006-07-06 08:58 EDT, Brad Reynolds CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brad Reynolds CLA 2006-07-01 16:12:19 EDT
The current means by which to specify that the TextObservableValue is to fire events early (on modify) is to retrieve the SWTObservableFactory, set the updateTime property, and then create the observable.  The problem with this is that it is not very intuitive, can be problematic if it's a shared factory and the caller doesn't remember to reset the value, and most importantly it requires that the consumer has a reference to the SWTObservableFactory.  This can be problematic anytime an abstraction for creating an observable is employed.  The use case I'm running into this is a factory to create bindings for TableViewers.  If the API for the factory is to accept a CellEditor and to then perform the binding at a later time the consumer has no way to specify that they want the observable to fire events early.  Also if the factory only has a reference to a DBC and not to the SWTObservableFactory it will not have access to the SWTObservableFactory to set the value.

This could be generalized into the problem of how to provide configuration to observable creation when using a DBC or any other abstraction.
Comment 1 Brad Reynolds CLA 2006-07-06 00:41:03 EDT
Created attachment 45819 [details]
patch

Provides support for specifying the update time of Text at bind time and without knowledge of the factory.  I deprecated the APIs on SWTObservableFactory that dealt with setting the updateTime directly.  I'd prefer to remove these but I'm not sure what the repercussions would be of this.
Comment 2 Brad Reynolds CLA 2006-07-06 08:58:49 EDT
Created attachment 45837 [details]
patch

Same as before but deprecated DataBindingContext.TIME_EARLY and DataBindingContext.TIME_LATE and removed all references to these values in the scenario tests.
Comment 3 Brad Reynolds CLA 2006-09-26 10:44:56 EDT
Because of the latest refactoring and the creation of SWTObservables this bug is no longer valid.

INVALID > 20060926.