SWT components in the palette [message #185048] |
Wed, 22 June 2005 02:03 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.02554 seconds