Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Add SWT objects to the palette
Add SWT objects to the palette [message #60703] Thu, 23 September 2004 09:12 Go to next message
Jose Angel Flores García is currently offline Jose Angel Flores GarcíaFriend
Messages: 10
Registered: July 2009
Junior Member
I was looking the documentation about extending the VE.
Can we extend the palette and add new SWT objects?
Thank you.

Pepe
Re: Add SWT objects to the palette [message #60706 is a reply to message #60703] Thu, 23 September 2004 10:20 Go to previous messageGo to next message
Joe Winchester is currently offline Joe WinchesterFriend
Messages: 496
Registered: July 2009
Senior Member
Hi Pepe,

> I was looking the documentation about extending the VE.
> Can we extend the palette and add new SWT objects?
> Thank you.

See Rich's reply to the earlier question "No SWT on palette".

What the Visual Editor does is only include items on the palette that
are avaliable in the build path. By default AWT and Swing are there
because they are part of J2SE, however SWT isn't. If you think about
the analogy of code assist, this only lists the classes that are in the
build path of your project and if you want a class that's in a JAR not
in your build path you have to manually add it to the build path.
Likewise for the VE to be able to work with SWT the project's build path
needs to have SWT added - the easiest way is just to use the "New visual
class" wizard will configures it all for you.

One idea we do have is to make this more obvious, so perhaps the palette
has a category called "Other..." and choosing this would show that SWT
was available but the project wasn't configured correctly, and it'd lead
you down how to do this. Another is that we put the categories for
available (but not yet usable) stuff on the palette (perhaps grayed out)
and selecting them would likewise auto-configure for you.

As Rich said, the palette is an area we need to work on including user
customization and knowing what's available but not yet in the build path
also needs to be addressed.

Best regards,

Joe Winchester
Re: Add SWT objects to the palette [message #60728 is a reply to message #60706] Fri, 24 September 2004 17:20 Go to previous message
David J. Orme is currently offline David J. OrmeFriend
Messages: 291
Registered: July 2009
Senior Member
Joe Winchester wrote:

> Hi Pepe,
>
>> I was looking the documentation about extending the VE.
>> Can we extend the palette and add new SWT objects?
>> Thank you.
>
>
> See Rich's reply to the earlier question "No SWT on palette".

Joe, I'm not sure this is what he's asking.

If you're asking about how to customize the palette with your own SWT
controls, then the short answer is that it can be done. See the thread
titled "How to extend the palette" for starters and ask more questions
when you have them.


Regards,

Dave Orme


--
Dave Orme
Eclipse Visual Editor Project Lead
Advanced Systems Concepts' Chief Architect
http://www.swtworkbench.com http://essentialdata.sf.net
Re: Add SWT objects to the palette [message #598978 is a reply to message #60703] Thu, 23 September 2004 10:20 Go to previous message
Joe Winchester is currently offline Joe WinchesterFriend
Messages: 496
Registered: July 2009
Senior Member
Hi Pepe,

> I was looking the documentation about extending the VE.
> Can we extend the palette and add new SWT objects?
> Thank you.

See Rich's reply to the earlier question "No SWT on palette".

What the Visual Editor does is only include items on the palette that
are avaliable in the build path. By default AWT and Swing are there
because they are part of J2SE, however SWT isn't. If you think about
the analogy of code assist, this only lists the classes that are in the
build path of your project and if you want a class that's in a JAR not
in your build path you have to manually add it to the build path.
Likewise for the VE to be able to work with SWT the project's build path
needs to have SWT added - the easiest way is just to use the "New visual
class" wizard will configures it all for you.

One idea we do have is to make this more obvious, so perhaps the palette
has a category called "Other..." and choosing this would show that SWT
was available but the project wasn't configured correctly, and it'd lead
you down how to do this. Another is that we put the categories for
available (but not yet usable) stuff on the palette (perhaps grayed out)
and selecting them would likewise auto-configure for you.

As Rich said, the palette is an area we need to work on including user
customization and knowing what's available but not yet in the build path
also needs to be addressed.

Best regards,

Joe Winchester
Re: Add SWT objects to the palette [message #599180 is a reply to message #60706] Fri, 24 September 2004 17:20 Go to previous message
David J. Orme is currently offline David J. OrmeFriend
Messages: 291
Registered: July 2009
Senior Member
Joe Winchester wrote:

> Hi Pepe,
>
>> I was looking the documentation about extending the VE.
>> Can we extend the palette and add new SWT objects?
>> Thank you.
>
>
> See Rich's reply to the earlier question "No SWT on palette".

Joe, I'm not sure this is what he's asking.

If you're asking about how to customize the palette with your own SWT
controls, then the short answer is that it can be done. See the thread
titled "How to extend the palette" for starters and ask more questions
when you have them.


Regards,

Dave Orme


--
Dave Orme
Eclipse Visual Editor Project Lead
Advanced Systems Concepts' Chief Architect
http://www.swtworkbench.com http://essentialdata.sf.net
Previous Topic:SWT Class throws NULL exception
Next Topic:Thin prerequisites for Visual Editor
Goto Forum:
  


Current Time: Sat Oct 19 11:07:16 GMT 2024

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

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

Back to the top