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

Bug 362709

Summary: [DataBinding] WorkbenchProperties.SelectionServiceListener ignores arguments given to selectionChanged() when delegating to NativePropertyListener.fireChanged()
Product: [Eclipse Project] Platform Reporter: Paul Webster <pwebster>
Component: UIAssignee: Dani Megert <daniel_megert>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: bokowski, daniel_megert, emoffatt, jawr, mallo.ovidio, ob1.eclipse, pwebster, qualidafial, remy.suen
Version: 3.7   
Target Milestone: 4.1.2   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 349297    
Bug Blocks: 357568    

Description Paul Webster CLA 2011-11-02 14:09:13 EDT
+++ This bug was initially created as a clone of Bug #358920 +++

Backport request for bug bug 349297.

The inner class SelectionServiceListener always calls its inherited method fireChanged() with arguments (null, null) ignoring the part and selection passed to selectionChanged(). The super class NativePropertyListener creates a new SimplePropertyEvent in fireChanged() and passes through the null values. This results in an IllegalArgumentException ("null source") in the constructor of SimplePropertyEvent/EventObject. Due to this fact the provided WorkbenchProperties are unusable.
Comment 1 Dani Megert CLA 2011-11-08 08:39:39 EST
See bug 358920 comment 3 for Paul's +1.

Fixed in R4_1_maintenance: 6cf361285e0159b626cfd96cf7102222b5427ad5
Comment 2 Dani Megert CLA 2011-11-08 08:39:48 EST
.
Comment 3 Dani Megert CLA 2011-12-13 04:34:08 EST
Verified in 4.1.2-M20111202-0815.