Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » multiple version of the same plugin in IDE(multiple version of the same plugin in IDE)
multiple version of the same plugin in IDE [message #515448] Thu, 18 February 2010 14:22 Go to next message
Hao Missing name is currently offline Hao Missing name
Messages: 115
Registered: July 2009
Senior Member
I have a best practice related question regarding how to maintain multiple versions of the same plugin in eclipse IDE.

We have to maintain the version N and N-1 of a plugin. What's the best practice to have the version N and N-1 of the same plugin project held in the same eclipse IDE workspace?

Highly appreciate if you could provide us some recommendations.

thanks!
Re: multiple version of the same plugin in IDE [message #515466 is a reply to message #515448] Thu, 18 February 2010 15:09 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6857
Registered: July 2009
Location: Ottawa
Senior Member

If the plugins aren't singletons, you can have multiple versions active
in a running eclipse. Anything with a plugin.xml will be a singleton,
though, and the eclipse runtime will only pick one (usually the highest
one).

But you can use CheckOutAs to check out your maintenance stream of
Project com.example.plugin to com.example.plugin_Rmaint so that it can
exist in the same workspace as com.example.plugin. That's what I'd try
first.

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: multiple version of the same plugin in IDE [message #515494 is a reply to message #515466] Thu, 18 February 2010 20:26 Go to previous messageGo to next message
Hao Missing name is currently offline Hao Missing name
Messages: 115
Registered: July 2009
Senior Member
Hi Paul,

Thank you very much for your information. The question I posted before may not be very clear. Let me redescribe it.

For example, I have a plugin which id is com.ddfs.core.security. For this plugin, I have to maintain at least 2 versions of it, such as version 1.0.0 and 1.1.0. I would like to have these 2 versions of the same plugin appear in the same worksapce of a eclipse IDE. I would like to know there's some best practice to achieve it.

Now what I did is create 2 projects such as
one plugin project has name com.ddfs.core.security.1.0.0 with plugin ID com.ddfs.core.security and plugin version 1.0.0; Another plugin project has name com.ddfs.core.security.1.1.0 with plugin ID com.ddfs.core.security and plugin version 1.1.0. This way, 2 versions of the same plugin can appear in the same eclipse IDE workspace. The problem with this approach is for every version of the same plugin, we have to create a different project. We see too many projects for the same plugin. Is it possible to have just one project of the plugin but could also maintain different versions of it.

You'r expport of eclipse. How is eclipse platform developer maintaining different versions of eclipse platform plugin, such as org.eclipse.swt or org.eclipse.ui plugins?

thanks a lot

hao
Re: multiple version of the same plugin in IDE [message #515597 is a reply to message #515494] Fri, 19 February 2010 08:57 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6857
Registered: July 2009
Location: Ottawa
Senior Member

Hao wrote:
> Hi Paul,
>
> same plugin. Is it possible to have just one project of the plugin but
> could also maintain different versions of it.

Did you try Check Out As... from the popup menu in the repository
explorer as I mentioned in my post? That's what I would try. ex:

1) check out org.example.plugin
2) use Check Out As... to check out the maintenance branch of
org.example.plugin and name it org.example.plugin_<branch>

>
> You'r expport of eclipse. How is eclipse platform developer maintaining
> different versions of eclipse platform plugin, such as org.eclipse.swt
> or org.eclipse.ui plugins?

We use multiple workspaces. i.e. I have my projects from HEAD checked
out in one workspace, with a target platform of the latest I build. I
have a different workspace where my projects are all checked out from
the R3_5_maintenance branch and my target platform is 3.5.0

Unless the projects are simply library bundles, it's not useful to have
both projects checked out into the same workspace. I would never have
org.eclipse.ui.workbench and org.eclipse.ui.workbench_R3_5 in my
workspace, it wouldn't help me develop that plugin at all.

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: multiple version of the same plugin in IDE [message #515644 is a reply to message #515597] Fri, 19 February 2010 10:48 Go to previous message
Hao Missing name is currently offline Hao Missing name
Messages: 115
Registered: July 2009
Senior Member
Thanks a lot, Paul. You did answer my question.
Previous Topic:Show code point of the current character
Next Topic:How to get rid of WARNING: prevented recursive attempt to activate part org.eclipse.ui.views.Propert
Goto Forum:
  


Current Time: Tue Jul 22 15:41:02 EDT 2014

Powered by FUDForum. Page generated in 0.04673 seconds