Bug 118801 - [Wizards] WizardDialog provides no way to reset margins of its container
Summary: [Wizards] WizardDialog provides no way to reset margins of its container
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Windows XP
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-01 06:24 EST by Paul E. Keyser CLA
Modified: 2019-09-06 16:10 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.