Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 82780 - [Wizards] Wizard description should be wrapped
Summary: [Wizards] Wizard description should be wrapped
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P4 normal (vote)
Target Milestone: ---   Edit
Assignee: Karice McIntyre CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-13 14:47 EST by Silvio Böhler CLA
Modified: 2006-09-26 17:21 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 Silvio Böhler CLA 2005-01-13 14:47:31 EST
Version: 3.1.0
Build id: I20050112-1200

I have a wizard (subclassing Wizard and using WizardDialog) and would like to
have a multiline description ('setDescription(..)') for one of the pages.
Unfortunately the description is not wrapped but the window is enlarged.
Comment 1 Karice McIntyre CLA 2005-08-24 11:10:55 EDT
From the description, am I correct in assuming this is a wizard where you are 
using your own action to make the wizard appear?  
If so, you can set the size of the wizard in your action's run() method:
        WizardDialog dialog = new WizardDialog(null, wizard);
        dialog.create();
        dialog.getShell().setSize(width, height);
        dialog.open();

Where the width and height are perhaps a minimum of some set number and the 
actual size of the dialog.  
e.g. width = Math.min(500, dialog.getShell().getSize().x);
This will prevent the wacky sizing.  It may just be a workaround for now - I am 
not sure yet if/what we can do about dialog sizing in the case where the 
description is long.
Comment 2 Karice McIntyre CLA 2006-09-26 17:21:36 EDT
works for me in Eclispe 3.3 I20060922-0010 using the strategy in #c1.