[Feature Request] Please Support TitleAreaDialog

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

[Feature Request] Please Support TitleAreaDialog

Postby vlewis » Sun Mar 14, 2004 1:46 pm

Please Support TitleAreaDialog

I like them and would like to be able to use them in SWT-Designer.
vlewis
 
Posts: 1
Joined: Sun Mar 14, 2004 1:36 pm

Re: [Feature Request] Please Support TitleAreaDialog

Postby Eric Clayberg » Sun Mar 14, 2004 8:00 pm

vlewis wrote:Please Support TitleAreaDialog
I like them and would like to be able to use them in SWT-Designer.

Actually, you can edit TitleAreaDialogs right now with SWT Designer...we just haven't created a wizard that will create new ones for you. Give the following template a try...

Code: Select all
import org.eclipse.jface.dialogs.TitleAreaDialog;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;

public class TitleAreaDialogTemplate extends TitleAreaDialog {

   public TitleAreaDialogTemplate(Shell parentShell) {
      super(parentShell);
      setTitle("TitleAreDialog title");
      setMessage("TitleAreDialog message");
   }

   protected Control createDialogArea(Composite parent) {
      Composite area = (Composite) super.createDialogArea(parent);
      return area;
   }
}

You will be able to edit (and see) all of the dialog attributes except the dialog's title, title image and message (you will need to edit those by hand in the source). Once we added a dedicated wizard to support TitleAreaDialogs, you will be able to edit and see those attributes as well.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest