Adding custom palette

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

Adding custom palette

Postby kames » Thu Aug 21, 2008 4:53 am

HI
I have a following question: I try to add a custom category. Its is added, it contains entries, all is well, except for the fact that it is not shown in the actual palette. It exists only in the Palette Manager. It is checked there, but it doesn't show. Any ideas how to solve this problem?

And a second thing. In the Palette Manager there's an option to add a custom palette from a jar archive. How does it work? Does it just search the archive for SWT widgets, or is there something more to it?

Thanks in advance for your swift reply,

KameS
kames
 
Posts: 6
Joined: Thu Aug 21, 2008 4:46 am

Re: Adding custom palette

Postby Eric Clayberg » Thu Aug 21, 2008 8:47 am

kames wrote:I try to add a custom category. Its is added, it contains entries, all is well, except for the fact that it is not shown in the actual palette. It exists only in the Palette Manager. It is checked there, but it doesn't show. Any ideas how to solve this problem?

Have you checked your Eclipse ".log" file? The most common problem would be an issue loading the actual widgets. Can you access the widgets manually via Choose Bean? We're happy to look at a test case, if you want to send one.

kames wrote:And a second thing. In the Palette Manager there's an option to add a custom palette from a jar archive. How does it work? Does it just search the archive for SWT widgets, or is there something more to it?

It reads the JavaBean manifest in the jar file. See the Palette Manager docs.
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

Re: Adding custom palette

Postby kames » Fri Aug 22, 2008 12:22 am

With the Category not appearing in the list, the problem is already solved, it was enough to restart the SWT Designer, and it went smoothly. As for the palette import from a jar file, I've have done it already, but theres just one thing: is it possible to import pictures as well? I see in the pictures int the docs that beans there have pictures, but how can one accomplish that?
kames
 
Posts: 6
Joined: Thu Aug 21, 2008 4:46 am

Re: Adding custom palette

Postby Eric Clayberg » Fri Aug 22, 2008 5:33 am

kames wrote:is it possible to import pictures as well? I see in the pictures int the docs that beans there have pictures, but how can one accomplish that?

If an icon with the same name as the class is in the same package, it should be used automatically.
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