Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » SWT components in the palette
SWT components in the palette [message #185048] Wed, 22 June 2005 02:03 Go to next message
Eclipse UserFriend
Originally posted by: pacheco.ai.sri.com

Hi everyone,

I saw that it was mentioned on this list a long time ago that one can
put SWT widgets in the palette. How does one do this? I have an SWT
component that I would like to replace the palette with, but if I can
just stick it inside the palette that would work too.

Thanks,
John
Re: SWT components in the palette [message #185207 is a reply to message #185048] Thu, 23 June 2005 14:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: harsh.ti.com

The GEF experts can correct me if I am wrong but if you use the
CombinedTemplateCreationEntry class, the template object can be anything
you like. In your case, it can be an SWT control. The way I use it is
the template is some object that encapsultes information about a
particular model object I want to create when the user drags it onto the
editor. This template can be anything object you like really.

Harsh
Re: SWT components in the palette [message #185223 is a reply to message #185207] Thu, 23 June 2005 16:20 Go to previous message
Eclipse UserFriend
Originally posted by: pacheco.ai.sri.com

Is there any kind of example that shows how to do something like this?

Right now I'm doing the (very wrong) method of adding my SWT widget
directly to the PaletteViewer's canvas. It's the only thing that I've
been able to get to work.

-john

Harsh Sabikhi wrote:
> The GEF experts can correct me if I am wrong but if you use the
> CombinedTemplateCreationEntry class, the template object can be anything
> you like. In your case, it can be an SWT control. The way I use it is
> the template is some object that encapsultes information about a
> particular model object I want to create when the user drags it onto the
> editor. This template can be anything object you like really.
>
> Harsh
>
Previous Topic:Column Diagram Editor
Next Topic:GEF hangs my application (and others)
Goto Forum:
  


Current Time: Tue Dec 03 09:44:47 GMT 2024

Powered by FUDForum. Page generated in 0.02554 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top