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

Bug 74247

Summary: ExpandableComposite setExpanded does not call expanded listeners
Product: [Eclipse Project] Platform Reporter: Morten Moeller <morten-eclipse>
Component: UIAssignee: Dejan Glozic <dejan>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Morten Moeller CLA 2004-09-19 21:06:07 EDT
This might be as designed, but I think it unfortunate.

If you toggle an ExpandableComposite using the UI (the twistie), fireExpanding
() is called and the listeners notified.

The only way to toggle through code that I can see is "setExpanded()", but 
calling this does not notify the listeners, so logic placed in the listeners 
cannot be invoked correctly using APIs.

Expected result is to call fireExpanding on setExpanded as well as when the UI 
toggles it.
Comment 1 Dejan Glozic CLA 2004-11-09 16:09:00 EST

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