ColorRegistry

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

ColorRegistry

Postby rtrauni » Mon Feb 07, 2005 7:49 am

Is it expose to expose one's own color constants in the comboboxes of the color properties? Right now all SWT.Color constants are exposed... I've got my own class with some constants, for example

Code: Select all
public static final Color EditorBackground = ...


Is it possible to show these constants in the color combobox instead or in addition to the SWT Constants?
rtrauni
 
Posts: 5
Joined: Thu Feb 03, 2005 2:25 pm

Re: ColorRegistry

Postby Eric Clayberg » Mon Feb 21, 2005 9:37 am

rtrauni wrote:Is it expose to expose one's own color constants in the comboboxes of the color properties? Right now all SWT.Color constants are exposed... I've got my own class with some constants, for example
Code: Select all
public static final Color EditorBackground = ...
Is it possible to show these constants in the color combobox instead or in addition to the SWT Constants?

Yes. You can do this with the latest v3.0.1 build which add a Designer Color Constants page to your project's property dialog.
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