How to customize rcp applications using swt designer?

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

How to customize rcp applications using swt designer?

Postby kubikconcepts » Fri May 18, 2007 8:30 am

Hello,
I am writing an Eclipse RCP application. I would like to change the look and feel(colors, fonts, etc). Essentially I want to look like custom written application(like what IBM did with the eclipse for their lotus apps). For example i want to set gradient colors in tabs, window title bars, etc. How do i use swtdesigner to do this?

Also, I would like to make the customized properties, user customizable too. Like for example: lets say i set the window title bar color to blue. I would like let the user a color of their own choosing. What is the most elegant way to implement this? How to implement color scheme?

I would appreciate any thoughts, ideas, tips, pointers, etc.

Thanks,
PK
kubikconcepts
 
Posts: 4
Joined: Thu May 17, 2007 11:38 am

Re: How to customize rcp applications using swt designer?

Postby Eric Clayberg » Fri May 18, 2007 10:23 am

kubikconcepts wrote:I am writing an Eclipse RCP application. I would like to change the look and feel (colors, fonts, etc). Essentially I want to look like custom written application (like what IBM did with the eclipse for their lotus apps). For example i want to set gradient colors in tabs, window title bars, etc. How do i use swtdesigner to do this? Also, I would like to make the customized properties, user customizable too. Like for example: lets say i set the window title bar color to blue. I would like let the user a color of their own choosing. What is the most elegant way to implement this? How to implement color scheme? I would appreciate any thoughts, ideas, tips, pointers, etc.

In general, questions about using the Eclipse RCP framework are best posted to the Eclipse RCP newsgroup.

Specifically, you should look at the org.eclipse.ui.presentationFactories extension point as well as the AbstractPresentationFactory class and its various helper classes. That is how IBM sets the look of their Lotus apps.

If you don't want to go that route, you can always hard code colors and fonts of various components using Designer. For example, you can set the gradient used by a CTabFolder to any combination of colors that you want.
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

Postby kubikconcepts » Fri May 18, 2007 11:33 am

Thanks for the reply Eric. Sorry, I posted this question here. I was wondering if SWT Designer had anything to help me out.
kubikconcepts
 
Posts: 4
Joined: Thu May 17, 2007 11:38 am

Postby Eric Clayberg » Mon May 21, 2007 6:30 pm

kubikconcepts wrote:I was wondering if SWT Designer had anything to help me out.

Not really. You are asking about a fairly obscure portion of the Eclipse RCP API that is rarely used in Eclipse RCP apps.

The Eclipse RCP newsgroup is the best place to go for advice on things like that.
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 2 guests