Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Is there some environment variable required to activate SWT support for VE1.0M2 ?
Is there some environment variable required to activate SWT support for VE1.0M2 ? [message #58066] Mon, 30 August 2004 18:06 Go to next message
Eclipse UserFriend
Originally posted by: elvis_dowson.hotmail.com

Hi ,
I would like to know if there is some environment variable
required for activating support for SWT using VE1.0M2.

I am using the Editor plug-in class that is automatically generated from an
EMF model.

For the Editor project, when I go to the build path and click on 'Add
Library' and select SWT, it allows me to do so, but build path errors are
reported because some of the *.jar files are already included by the plug-in
dependencies object.

Now, the plug-in dependencies already show most of the required *.jar files
for SWT, except for the following :
- compatibility.jar
- jfacetext.jar

So, I proceed to remove the SWT library definition, manually add the two
missing jar files as External Jar Files, add a new Visual Class and select
SWT Application. When I click on the Visual Class, I do not get the SWT
Widgets on the VE palette.

The SWT widgets get displayed on a normal palette however, for a simple Java
project, with the SWT Library added to the build path, alone, and when using
a Visual Class.

So, I'm just having problems with a project that has a plug-in defined in
it. How do I resolve this issue ?

Best regards,

Elvis Dowson
Re: Is there some environment variable required to activate SWT support for VE1.0M2 ? [message #58094 is a reply to message #58066] Mon, 30 August 2004 18:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

If you are developing a plugin, then just add the "org.eclipse.ui" or
"org.eclipse.swt" plugin as a required plugin for your plugin.

Do not use the java build path to add plugin jars when you are
developing a plugin. You should use the plugin.xml manifest editor
instead. That takes care of all plugin dependencies for you.


--
Thanks, Rich Kulp

Re: Is there some environment variable required to activate SWT support for VE1.0M2 ? [message #58142 is a reply to message #58094] Mon, 30 August 2004 18:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: elvis_dowson.hotmail.com

Hi,
I launched the plugin.xml editor and tried adding the plug-ins you
suggested, but they do not exist as an option in the window.

What should I do ?

Elvis Dowson

"Rich Kulp" <richkulp@NO.SPAM.us.ibm.com> wrote in message
news:cgvqdm$1ea$1@eclipse.org...
> If you are developing a plugin, then just add the "org.eclipse.ui" or
> "org.eclipse.swt" plugin as a required plugin for your plugin.
>
> Do not use the java build path to add plugin jars when you are
> developing a plugin. You should use the plugin.xml manifest editor
> instead. That takes care of all plugin dependencies for you.
>
>
> --
> Thanks, Rich Kulp
> 
>
Re: Is there some environment variable required to activate SWT support for VE1.0M2 ? [message #58166 is a reply to message #58142] Mon, 30 August 2004 18:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: elvis_dowson.hotmail.com

Hi,
The swt.jar file is already included anyway as part of the list of
standard jar files discoved using the plug-in dependencies extracted from
the plugin.xml file.

So, since the current project is already importing from org.eclipse.ui.ide ,
is probably the reason why it doesnt show the org.eclipse.ui plug-in again,
when I try to manually add it. Upon inspection in the plug-in dependencies,
ui.jar is already added. The same goes for swt.jar and jface.jar.

So, most of the required jar's exist except for the compatibility and
jfacetext.jar files.

What should I do ?

Elvis Dowson


"Elvis John Dowson" <elvis_dowson@hotmail.com> wrote in message
news:cgvr5u$2nm$1@eclipse.org...
> Hi,
> I launched the plugin.xml editor and tried adding the plug-ins you
> suggested, but they do not exist as an option in the window.
>
> What should I do ?
>
> Elvis Dowson
>
> "Rich Kulp" <richkulp@NO.SPAM.us.ibm.com> wrote in message
> news:cgvqdm$1ea$1@eclipse.org...
> > If you are developing a plugin, then just add the "org.eclipse.ui" or
> > "org.eclipse.swt" plugin as a required plugin for your plugin.
> >
> > Do not use the java build path to add plugin jars when you are
> > developing a plugin. You should use the plugin.xml manifest editor
> > instead. That takes care of all plugin dependencies for you.
> >
> >
> > --
> > Thanks, Rich Kulp
> > 
> >
>
>
Re: Is there some environment variable required to activate SWT support for VE1.0M2 ? [message #58241 is a reply to message #58166] Mon, 30 August 2004 22:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

Then SWT stuff should be on the palette.


--
Thanks, Rich Kulp

Re: Is there some environment variable required to activate SWT support for VE1.0M2 ? [message #58291 is a reply to message #58241] Tue, 31 August 2004 04:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: elvis_dowson.hotmail.com

Hi,
The SWT widgets do not appear on the VE palette. What could be wrong
?

Elvis Dowson

"Rich Kulp" <richkulp@NO.SPAM.us.ibm.com> wrote in message
news:ch09b7$p90$3@eclipse.org...
> Then SWT stuff should be on the palette.
>
>
> --
> Thanks, Rich Kulp
> 
>
Re: Is there some environment variable required to activate SWT support for VE1.0M2 ? [message #58488 is a reply to message #58291] Tue, 31 August 2004 14:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

I'm willing to bet that you do not have org.eclipse.ui as a direct
required plugin of your plugin. If it is a required plugin of some
plugin that you require it may be hidden because the required plugin
doesn't export the org.eclipse.ui plugin. If a plugin doesn't export a
plugin, then plugins down the line can't see that plugin. So in that
case the SWT palette doesn't show because the SWT isn't visible to your
plugin.

--
Thanks, Rich Kulp

Re: Is there some environment variable required to activate SWT support for VE1.0M2 ? [message #58496 is a reply to message #58488] Tue, 31 August 2004 18:25 Go to previous message
Eclipse UserFriend
Originally posted by: elvis_dowson.hotmail.com

Hi ,
Yes, you are correct. In order to make it work, I had to directly
reference the org.eclipse.ui plugin. Then the SWT widgets appeared in the
panel.

Thanks !!

Elvis Dowson

"Rich Kulp" <richkulp@NO.SPAM.us.ibm.com> wrote in message
news:ch20mm$f63$1@eclipse.org...
> I'm willing to bet that you do not have org.eclipse.ui as a direct
> required plugin of your plugin. If it is a required plugin of some
> plugin that you require it may be hidden because the required plugin
> doesn't export the org.eclipse.ui plugin. If a plugin doesn't export a
> plugin, then plugins down the line can't see that plugin. So in that
> case the SWT palette doesn't show because the SWT isn't visible to your
> plugin.
>
> --
> Thanks, Rich Kulp
> 
>
Re: Is there some environment variable required to activate SWT support for VE1.0M2 ? [message #597949 is a reply to message #58066] Mon, 30 August 2004 18:11 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

If you are developing a plugin, then just add the "org.eclipse.ui" or
"org.eclipse.swt" plugin as a required plugin for your plugin.

Do not use the java build path to add plugin jars when you are
developing a plugin. You should use the plugin.xml manifest editor
instead. That takes care of all plugin dependencies for you.


--
Thanks, Rich Kulp

Re: Is there some environment variable required to activate SWT support for VE1.0M2 ? [message #597965 is a reply to message #58094] Mon, 30 August 2004 18:20 Go to previous message
Elvis John Dowson is currently offline Elvis John DowsonFriend
Messages: 45
Registered: July 2009
Member
Hi,
I launched the plugin.xml editor and tried adding the plug-ins you
suggested, but they do not exist as an option in the window.

What should I do ?

Elvis Dowson

"Rich Kulp" <richkulp@NO.SPAM.us.ibm.com> wrote in message
news:cgvqdm$1ea$1@eclipse.org...
> If you are developing a plugin, then just add the "org.eclipse.ui" or
> "org.eclipse.swt" plugin as a required plugin for your plugin.
>
> Do not use the java build path to add plugin jars when you are
> developing a plugin. You should use the plugin.xml manifest editor
> instead. That takes care of all plugin dependencies for you.
>
>
> --
> Thanks, Rich Kulp
> 
>
Re: Is there some environment variable required to activate SWT support for VE1.0M2 ? [message #597971 is a reply to message #58142] Mon, 30 August 2004 18:40 Go to previous message
Elvis John Dowson is currently offline Elvis John DowsonFriend
Messages: 45
Registered: July 2009
Member
Hi,
The swt.jar file is already included anyway as part of the list of
standard jar files discoved using the plug-in dependencies extracted from
the plugin.xml file.

So, since the current project is already importing from org.eclipse.ui.ide ,
is probably the reason why it doesnt show the org.eclipse.ui plug-in again,
when I try to manually add it. Upon inspection in the plug-in dependencies,
ui.jar is already added. The same goes for swt.jar and jface.jar.

So, most of the required jar's exist except for the compatibility and
jfacetext.jar files.

What should I do ?

Elvis Dowson


"Elvis John Dowson" <elvis_dowson@hotmail.com> wrote in message
news:cgvr5u$2nm$1@eclipse.org...
> Hi,
> I launched the plugin.xml editor and tried adding the plug-ins you
> suggested, but they do not exist as an option in the window.
>
> What should I do ?
>
> Elvis Dowson
>
> "Rich Kulp" <richkulp@NO.SPAM.us.ibm.com> wrote in message
> news:cgvqdm$1ea$1@eclipse.org...
> > If you are developing a plugin, then just add the "org.eclipse.ui" or
> > "org.eclipse.swt" plugin as a required plugin for your plugin.
> >
> > Do not use the java build path to add plugin jars when you are
> > developing a plugin. You should use the plugin.xml manifest editor
> > instead. That takes care of all plugin dependencies for you.
> >
> >
> > --
> > Thanks, Rich Kulp
> > 
> >
>
>
Re: Is there some environment variable required to activate SWT support for VE1.0M2 ? [message #597994 is a reply to message #58166] Mon, 30 August 2004 22:25 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

Then SWT stuff should be on the palette.


--
Thanks, Rich Kulp

Re: Is there some environment variable required to activate SWT support for VE1.0M2 ? [message #598007 is a reply to message #58241] Tue, 31 August 2004 04:48 Go to previous message
Elvis John Dowson is currently offline Elvis John DowsonFriend
Messages: 45
Registered: July 2009
Member
Hi,
The SWT widgets do not appear on the VE palette. What could be wrong
?

Elvis Dowson

"Rich Kulp" <richkulp@NO.SPAM.us.ibm.com> wrote in message
news:ch09b7$p90$3@eclipse.org...
> Then SWT stuff should be on the palette.
>
>
> --
> Thanks, Rich Kulp
> 
>
Re: Is there some environment variable required to activate SWT support for VE1.0M2 ? [message #598049 is a reply to message #58291] Tue, 31 August 2004 14:10 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

I'm willing to bet that you do not have org.eclipse.ui as a direct
required plugin of your plugin. If it is a required plugin of some
plugin that you require it may be hidden because the required plugin
doesn't export the org.eclipse.ui plugin. If a plugin doesn't export a
plugin, then plugins down the line can't see that plugin. So in that
case the SWT palette doesn't show because the SWT isn't visible to your
plugin.

--
Thanks, Rich Kulp

Re: Is there some environment variable required to activate SWT support for VE1.0M2 ? [message #598065 is a reply to message #58488] Tue, 31 August 2004 18:25 Go to previous message
Elvis John Dowson is currently offline Elvis John DowsonFriend
Messages: 45
Registered: July 2009
Member
Hi ,
Yes, you are correct. In order to make it work, I had to directly
reference the org.eclipse.ui plugin. Then the SWT widgets appeared in the
panel.

Thanks !!

Elvis Dowson

"Rich Kulp" <richkulp@NO.SPAM.us.ibm.com> wrote in message
news:ch20mm$f63$1@eclipse.org...
> I'm willing to bet that you do not have org.eclipse.ui as a direct
> required plugin of your plugin. If it is a required plugin of some
> plugin that you require it may be hidden because the required plugin
> doesn't export the org.eclipse.ui plugin. If a plugin doesn't export a
> plugin, then plugins down the line can't see that plugin. So in that
> case the SWT palette doesn't show because the SWT isn't visible to your
> plugin.
>
> --
> Thanks, Rich Kulp
> 
>
Previous Topic:How can I add a Wizard to the Editor plug-in
Next Topic:How can I add a new Viewer to a MultiPageEditorPart that implements SWT controls on it using VE
Goto Forum:
  


Current Time: Wed Jul 17 12:20:26 GMT 2024

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

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

Back to the top