Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 180386

Summary: [DataBinding] clear method of JavaBeanObservableList
Product: [Eclipse Project] Platform Reporter: Giulio Seregni <giulio.seregni>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Giulio Seregni CLA 2007-04-01 11:28:14 EDT
this code binds a javabean list to a writable list

dbc = new DataBindingContext();

modelObservableList = BeansObservables.observeList(Realm.getDefault(),input, "prompts");

targetObservableList = new WritableList(inputList, Object.class);

dbc.bindList(targetObservableList, modelObservableList,
  new UpdateListStrategy(UpdateListStrategy.POLICY_UPDATE),
  new UpdateListStrategy(UpdateListStrategy.POLICY_UPDATE));


calling dbc.updateModels() raise an unsupported operation exception.
The exception is raised by clear method of ObservableList, beacuse JavaBeansObservableList does not override it.


why does it happens ?
Comment 1 Brad Reynolds CLA 2007-04-01 12:27:41 EDT

*** This bug has been marked as a duplicate of bug 177770 ***