Community
Participate
Working Groups
BuildId: e4 4.1M4 Attempting to re-open a window with a PartSashContainer fails as the contents of the PartSashContainers are not re-created. The direct problem is that the PartSashContainer elements don't have their widget fields nulled out on close. Thus the widgets are not re-rendered during the IPresentationEngine/PartRenderingEngine.createGui(). The widget field actually contains a Rectangle instance. The field isn't nulled out as SashRenderer inherits bindWidget from SWTPartRenderer, which only installs the unbindWidget-on-dispose (and thus null the widget field) when the widget actually is a control.
Good one...I see the problem, patch / fix coming...
Created attachment 186045 [details] Patch that cleans up the 'widget' and 'renderer' fields of sashes A MPSC is always created under some real parent Composite. This patch simply adds a dispose listener to the composite containing the layout that explicitly nulls the fields if the owning composite gets disposed.
Committed in >20110104. Applied the patch.
Verified fix. Thanks Eric.
Np, thanks for the work you're putting in...
Marking as FIXED.