Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 394121 - Module list may not display after checking Enable Env Mgmt
Summary: Module list may not display after checking Enable Env Mgmt
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: EMS (show other bugs)
Version: 6.0.3   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 7.0   Edit
Assignee: Jeffrey Overbey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-12 13:56 EST by Jeffrey Overbey CLA
Modified: 2013-03-11 22:27 EDT (History)
0 users

See Also:


Attachments
patches env manager redraw issue (1.08 KB, patch)
2013-01-18 15:28 EST, Chris Navarro CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Overbey CLA 2012-11-12 13:56:57 EST
Sometimes, after the "Use an environment management system..." checkbox is checked, the list of modules does not display.  It is necessary to switch to a different Project Properties category and then switch back to display the list.

What is displayed is controlled by a StackLayout.  The relevant code is in EnvManagerConfigWidget#setTopControl.  The topControl is being set, and Composite#layout is being invoked, but the control does not appear.

I suspect layout() needs to be invoked in some ancestor widget, but I'm not totally sure because this does not happen deterministically.

It appears to happen on all operating systems (Mac OS X and Windows, at least).
Comment 1 Chris Navarro CLA 2013-01-18 15:28:18 EST
Created attachment 225838 [details]
patches env manager redraw issue

I'm not sure if this is the best solution, but it appears to work on my linux machine with consistency doing various resizes of the wizard. The patch slightly modifies the setLayoutData for the stack to request resize in both directions. Also, I've modified the calls to layout to re-layout the parent as well.
Comment 2 Jeffrey Overbey CLA 2013-03-11 22:27:29 EDT
Thanks, Chris!  I changed those three lines in master for Kepler.  Haven't really had a chance to test it extensively, but those changes certainly can't hurt anything.

I'll mark this FIXED for now and we can reopen if people still see this problem...