Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How are you writing plugins for eclipse?
How are you writing plugins for eclipse? [message #39838] Sat, 10 January 2009 07:02 Go to next message
Lenik  is currently offline Lenik Friend
Messages: 13
Registered: July 2009
Junior Member
I have spent a lot of time to wait to restart the eclipse IDE, every time I
changed a plugin(XYZ), I must:
1) quit the eclipse
2) delete the previous version of the plugin(XYZ)
3) launch eclipse, to clear the plugin cache
4) quit again
5) put the new version of the plugin(XYZ) under dropins/ folder
6) launch eclipse again, now the new plugin(XYZ) is loaded.
I don't know how you guys develop plugins, I've searched how to `reload a
plugin' but got nothing, all said must restart the eclipse and sometimes you
need to specify `eclipse -clean' for a more cleaned restart.

And I've tried wrap my plugins in a `feature', and put that `feature' in an
`update-site', then `install' the feature. And when you want to reload the
plugin, you can `uninstall' it and then `install' it, but it doesn't work!

And I even don't know what a `feature' really is, why not call it
`plugins-bundle' or `enterprise plugin' etc. And why not make the plugin
just reloadable, or even auto reload at runtime by checking the modification
time of the jar file, just as most JSP Container(tomcat, resin, etc.) did.

How are you writing plugins for eclipse? Is there any better way to reload a
plugin?

Thanks,
Lenik
Re: How are you writing plugins for eclipse? [message #39876 is a reply to message #39838] Sat, 10 January 2009 16:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dev-null.knittig.de

On 01/10/2009 08:02 AM, Lenik wrote:

> How are you writing plugins for eclipse? Is there any better way to
> reload a plugin?

Use a different Eclipse installation for plugin development:
Preferences -> Plug-in Development -> Target Platform

Best regards,
Markus
Re: How are you writing plugins for eclipse? [message #39999 is a reply to message #39838] Mon, 12 January 2009 14:26 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

On 1/10/2009 2:02 AM, Lenik wrote:
> I have spent a lot of time to wait to restart the eclipse IDE, every
> time I changed a plugin(XYZ), I must:
> 1) quit the eclipse
> 2) delete the previous version of the plugin(XYZ)
> 3) launch eclipse, to clear the plugin cache
> 4) quit again
> 5) put the new version of the plugin(XYZ) under dropins/ folder
> 6) launch eclipse again, now the new plugin(XYZ) is loaded.
> I don't know how you guys develop plugins, I've searched how to `reload
> a plugin' but got nothing, all said must restart the eclipse and
> sometimes you need to specify `eclipse -clean' for a more cleaned restart.

There is no need to test your plugin by installing it into your
development environment. Eclipse can launch a new instance of itself
that includes your plugin(s). The easiest way I know is right from the
plugin.xml editor (or manifest.mf editor) - there is a section titled
"Testing" that contains convenient links to launch your plugin.
Also, there is this page in the help:
http://help.eclipse.org/ganymede/topic/org.eclipse.platform. doc.isv/guide/firstplugin_run.htm

By the way, you will often see this mode referred to as "self-hosting."

Hope this helps,
Eric


>
> And I've tried wrap my plugins in a `feature', and put that `feature' in
> an `update-site', then `install' the feature. And when you want to
> reload the plugin, you can `uninstall' it and then `install' it, but it
> doesn't work!
>
> And I even don't know what a `feature' really is, why not call it
> `plugins-bundle' or `enterprise plugin' etc. And why not make the plugin
> just reloadable, or even auto reload at runtime by checking the
> modification time of the jar file, just as most JSP Container(tomcat,
> resin, etc.) did.
>
> How are you writing plugins for eclipse? Is there any better way to
> reload a plugin?
>
> Thanks,
> Lenik
Re: How are you writing plugins for eclipse? [message #588070 is a reply to message #39838] Sat, 10 January 2009 16:04 Go to previous message
Markus Knittig is currently offline Markus KnittigFriend
Messages: 2
Registered: July 2009
Junior Member
On 01/10/2009 08:02 AM, Lenik wrote:

> How are you writing plugins for eclipse? Is there any better way to
> reload a plugin?

Use a different Eclipse installation for plugin development:
Preferences -> Plug-in Development -> Target Platform

Best regards,
Markus
Re: How are you writing plugins for eclipse? [message #588127 is a reply to message #39838] Mon, 12 January 2009 14:26 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3071
Registered: July 2009
Senior Member
On 1/10/2009 2:02 AM, Lenik wrote:
> I have spent a lot of time to wait to restart the eclipse IDE, every
> time I changed a plugin(XYZ), I must:
> 1) quit the eclipse
> 2) delete the previous version of the plugin(XYZ)
> 3) launch eclipse, to clear the plugin cache
> 4) quit again
> 5) put the new version of the plugin(XYZ) under dropins/ folder
> 6) launch eclipse again, now the new plugin(XYZ) is loaded.
> I don't know how you guys develop plugins, I've searched how to `reload
> a plugin' but got nothing, all said must restart the eclipse and
> sometimes you need to specify `eclipse -clean' for a more cleaned restart.

There is no need to test your plugin by installing it into your
development environment. Eclipse can launch a new instance of itself
that includes your plugin(s). The easiest way I know is right from the
plugin.xml editor (or manifest.mf editor) - there is a section titled
"Testing" that contains convenient links to launch your plugin.
Also, there is this page in the help:
http://help.eclipse.org/ganymede/topic/org.eclipse.platform. doc.isv/guide/firstplugin_run.htm

By the way, you will often see this mode referred to as "self-hosting."

Hope this helps,
Eric


>
> And I've tried wrap my plugins in a `feature', and put that `feature' in
> an `update-site', then `install' the feature. And when you want to
> reload the plugin, you can `uninstall' it and then `install' it, but it
> doesn't work!
>
> And I even don't know what a `feature' really is, why not call it
> `plugins-bundle' or `enterprise plugin' etc. And why not make the plugin
> just reloadable, or even auto reload at runtime by checking the
> modification time of the jar file, just as most JSP Container(tomcat,
> resin, etc.) did.
>
> How are you writing plugins for eclipse? Is there any better way to
> reload a plugin?
>
> Thanks,
> Lenik
Previous Topic:Feature dependency match rules
Next Topic:EclipsePDE Build Tutorial
Goto Forum:
  


Current Time: Mon Jun 14 19:32:44 GMT 2021

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

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

Back to the top