Bug 118801

Summary: [Wizards] WizardDialog provides no way to reset margins of its container
Product: [Eclipse Project] Platform Reporter: Paul E. Keyser <rolarenfan>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.1.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Paul E. Keyser CLA 2005-12-01 06:24:55 EST
The PageContainerFillLayout sets its margin at 5 pixels, but if the client code wants that to be smaller (e.g., if the client code is using FormToolkit), there is no way to do so. 

Although the class PageContainerFillLayout is protected, both the relevant fields (pageContainer and pageContainerLayout) and the only relevant method (createPageContainer()), are private, so extending WizardDialog is of no help here.  

On the other hand, when the pageContainer is passed to the client -- in IDialogPage#createControl() or IWizard#createPageControls() --, the client cannot access the *protected* class WizardDialog$PageContainerFillLayout -- so again, there is no way to get the Layout and cast it (so as to be able to reset the margins). 

Several fixes are possible, the easiest being to make PageContainerFillLayout public, or else provide a protected accessor in WizardDialog for either the pageContainer and pageContainerLayout.
Comment 1 Boris Bokowski CLA 2009-11-26 16:20:23 EST
Prakash is now responsible for watching bugs in the [Wizards] component area.
Comment 2 Eclipse Webmaster CLA 2019-09-06 16:10:08 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.