SWT controls in palette not visible, only SWING and AWT?!? [message #87733] |
Wed, 20 April 2005 07:15  |
Eclipse User |
|
|
|
Hello,
I want to use the Visual Editor (http://www.eclipse.org/vep/) for SWT
controls. I already can use SWT controls by creating the code for each
control manually. But now I want to use the VE to built the layout for my
application.
Under http://www.eclipse.org/vep -> Extending the Visual Editor Tutorial:
Enabling support for a custom widget
I can see the 'SWT controls' and 'SWT containers' under the Palette, in my
VE only the controls for Swing and AWT are available!?!
So what I have to do to make also SWT controls accessible under Visual
Editor?
Thanks for any help,
best regards,
Mr. Burns
|
|
|
|
|
Re: SWT controls in palette not visible, only SWING and AWT?!? [message #88045 is a reply to message #87988] |
Thu, 21 April 2005 09:53  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
We don't recognize just the jar. We use the SWT library (from Java Build
Path -> Libraries -> Add Library -> SWT). This is because with only an
swt.jar we don't enough information to know what swt it is, where the
dll is, etc. The SWT library entry tells us all of this.
--
Thanks,
Rich Kulp
|
|
|
Re: SWT controls in palette not visible, only SWING and AWT?!? [message #607189 is a reply to message #87733] |
Wed, 20 April 2005 09:49  |
Eclipse User |
|
|
|
Hi,
> I want to use the Visual Editor (http://www.eclipse.org/vep/) for SWT
> controls. I already can use SWT controls by creating the code for each
> control manually. But now I want to use the VE to built the layout for my
> application.
> Under http://www.eclipse.org/vep -> Extending the Visual Editor Tutorial:
> Enabling support for a custom widget
> I can see the 'SWT controls' and 'SWT containers' under the Palette, in my
> VE only the controls for Swing and AWT are available!?!
> So what I have to do to make also SWT controls accessible under Visual
> Editor?
What is the Java build path for your project ? How are the SWT classes
visible ?
The easiest way to get the project configured correctly is to use the
New Visual Class Wizard and extend SWT Composite or create an SWT Shell
from the list of available templates.
If not then the project should either have the SWTContainer in its build
path, or else be a PDE project with org.eclipse.swt as a dependent
project. If you have neither yet can still manually add SWT controls
then the swt.jar is visible, so you have either manually added it as a
jar or else created a Java (non Plug-in) project and added
org.eclipse.swt as a dependent project.
Best regards,
Joe Winchester
|
|
|
|
Re: SWT controls in palette not visible, only SWING and AWT?!? [message #607206 is a reply to message #87988] |
Thu, 21 April 2005 09:53  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
We don't recognize just the jar. We use the SWT library (from Java Build
Path -> Libraries -> Add Library -> SWT). This is because with only an
swt.jar we don't enough information to know what swt it is, where the
dll is, etc. The SWT library entry tells us all of this.
--
Thanks,
Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.09062 seconds