minor problem with abstract dialog class

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

minor problem with abstract dialog class

Postby bzeiss » Sat Apr 08, 2006 4:00 am

i have a minor problem with the dialog class. i have created a super class called "CustomDialog" which has some basic elements of the dialog class. for example, it contains the open method or the shell attribute. however, since the shell attribute is part of the super class, the derived concrete dialog class doesn't work properly anymore in designer (the shell is marked red). i can work around this problem by added a temporary shell attribute in the derived class which i comment out when finished with editing. are you planning to support this?
bzeiss
 
Posts: 10
Joined: Wed Jun 01, 2005 2:42 am

Re: minor problem with abstract dialog class

Postby Eric Clayberg » Fri Apr 14, 2006 6:05 am

bzeiss wrote:i have a minor problem with the dialog class. i have created a super class called "CustomDialog" which has some basic elements of the dialog class. for example, it contains the open method or the shell attribute. however, since the shell attribute is part of the super class, the derived concrete dialog class doesn't work properly anymore in designer (the shell is marked red). i can work around this problem by added a temporary shell attribute in the derived class which i comment out when finished with editing. are you planning to support this?

Designer supports visual inheritance for SWT Shells and Composites only. We do not support visual inheritance of dialogs or app windows.

An easy solution is to create your dialog as a subclass of Shell.
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