Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Multiple eclipse version support.
Multiple eclipse version support. [message #331516] Thu, 11 September 2008 01:22 Go to next message
Kim Myoungki is currently offline Kim MyoungkiFriend
Messages: 12
Registered: July 2009
Junior Member
Hi all.

I'm developing an eclipse plugin for version 3.2, but recently, I have to
support the version 3.3 also.

The problem is I'm using some eclipse api related JDT but the api spec is
different between 3.2 and 3.3.

I'd like to make development environment with 3.3. If the pde can support
multiple JDT version, I think it will be done.

Is it possible? or If you have any good guide about it, let me know.

Thnaks.
Re: Multiple eclipse version support. [message #331520 is a reply to message #331516] Thu, 11 September 2008 10:18 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33180
Registered: July 2009
Senior Member
Kim,

In Window->Preferences->Plug-in Development->Target Platform you can
pick which the version of the platform you'd like to develop against.


Kim Myoungki wrote:
> Hi all.
>
> I'm developing an eclipse plugin for version 3.2, but recently, I have
> to support the version 3.3 also.
>
> The problem is I'm using some eclipse api related JDT but the api spec
> is different between 3.2 and 3.3.
> I'd like to make development environment with 3.3. If the pde can
> support multiple JDT version, I think it will be done.
>
> Is it possible? or If you have any good guide about it, let me know.
> Thnaks.
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Multiple eclipse version support. [message #331527 is a reply to message #331520] Thu, 11 September 2008 12:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Ed Merks wrote:
> Kim,
>
> In Window->Preferences->Plug-in Development->Target Platform you can
> pick which the version of the platform you'd like to develop against.

If you need your code to run on both versions, you will have to decide
whether or not you want different code for 3.3 than for 3.2. If you
decide that is too difficult to manage (it IS difficult to manage), then
you can't use any of the new API that is in 3.3; you'll have to stick
with 3.2 API.
If you wanted to have different code for each Eclipse version, what I
would recommend is having two separate plugins, each one specified so
that it will only load into the appropriate Eclipse version (you can do
this by carefully specifying the dependencies, using specific version
ranges). You may have to also specify a feature in a special way, too.
Finally, you'll have to set your Target Platform to be 3.3 to write the
version of your plugin that uses 3.3 API.

As I said, this is difficult to manage and set up correctly. If you can
avoid it, that is what I'd recommend.

Eric


> Kim Myoungki wrote:
>> Hi all.
>>
>> I'm developing an eclipse plugin for version 3.2, but recently, I have
>> to support the version 3.3 also.
>>
>> The problem is I'm using some eclipse api related JDT but the api spec
>> is different between 3.2 and 3.3.
>> I'd like to make development environment with 3.3. If the pde can
>> support multiple JDT version, I think it will be done.
>>
>> Is it possible? or If you have any good guide about it, let me know.
>> Thnaks.
>>
Re: Multiple eclipse version support. [message #331575 is a reply to message #331527] Fri, 12 September 2008 01:04 Go to previous messageGo to next message
Kim Myoungki is currently offline Kim MyoungkiFriend
Messages: 12
Registered: July 2009
Junior Member
Eric Rizzo wrote:

> Ed Merks wrote:
>> Kim,
>>
>> In Window->Preferences->Plug-in Development->Target Platform you can
>> pick which the version of the platform you'd like to develop against.

> If you need your code to run on both versions, you will have to decide
> whether or not you want different code for 3.3 than for 3.2. If you
> decide that is too difficult to manage (it IS difficult to manage), then
> you can't use any of the new API that is in 3.3; you'll have to stick
> with 3.2 API.
> If you wanted to have different code for each Eclipse version, what I
> would recommend is having two separate plugins, each one specified so
> that it will only load into the appropriate Eclipse version (you can do
> this by carefully specifying the dependencies, using specific version
> ranges). You may have to also specify a feature in a special way, too.
> Finally, you'll have to set your Target Platform to be 3.3 to write the
> version of your plugin that uses 3.3 API.

> As I said, this is difficult to manage and set up correctly. If you can
> avoid it, that is what I'd recommend.

> Eric

Thank you for your tip.

We seperated the code and we made the feature (target to 3.2) and fragment
patch (target to 3.3). It works well. But, we have to make 2 development
environment because of compiling error. Eclipse 3.2 is for the main
stream. Eclipse 3.3 is for the patch.

I'm finding the way the main stream uses eclipse 3.2 jdt library and the
patch uses eclipse 3.3 jdt in one developing environment. Is it possible?


>> Kim Myoungki wrote:
>>> Hi all.
>>>
>>> I'm developing an eclipse plugin for version 3.2, but recently, I have
>>> to support the version 3.3 also.
>>>
>>> The problem is I'm using some eclipse api related JDT but the api spec
>>> is different between 3.2 and 3.3.
>>> I'd like to make development environment with 3.3. If the pde can
>>> support multiple JDT version, I think it will be done.
>>>
>>> Is it possible? or If you have any good guide about it, let me know.
>>> Thnaks.
>>>
Re: Multiple eclipse version support. [message #331598 is a reply to message #331575] Fri, 12 September 2008 13:09 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Kim Myoungki wrote:
>
> We seperated the code and we made the feature (target to 3.2) and
> fragment patch (target to 3.3). It works well. But, we have to make 2
> development environment because of compiling error. Eclipse 3.2 is for
> the main stream. Eclipse 3.3 is for the patch.
> I'm finding the way the main stream uses eclipse 3.2 jdt library and the
> patch uses eclipse 3.3 jdt in one developing environment. Is it possible?

Not in 3.3 or 3.4. It sounds like you would need the ability to have
per-project target platforms. I would think that there was already a
bug or 2 open about this, but the closest I was able to find was
https://bugs.eclipse.org/bugs/show_bug.cgi?id=186618

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/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Re: Multiple eclipse version support. [message #331667 is a reply to message #331598] Tue, 16 September 2008 05:34 Go to previous message
Kim Myoungki is currently offline Kim MyoungkiFriend
Messages: 12
Registered: July 2009
Junior Member
Paul Webster wrote:

> Kim Myoungki wrote:
>>
>> We seperated the code and we made the feature (target to 3.2) and
>> fragment patch (target to 3.3). It works well. But, we have to make 2
>> development environment because of compiling error. Eclipse 3.2 is for
>> the main stream. Eclipse 3.3 is for the patch.
>> I'm finding the way the main stream uses eclipse 3.2 jdt library and the
>> patch uses eclipse 3.3 jdt in one developing environment. Is it possible?

> Not in 3.3 or 3.4. It sounds like you would need the ability to have
> per-project target platforms. I would think that there was already a
> bug or 2 open about this, but the closest I was able to find was
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=186618

> PW

Thank you for your reply. I think it is same situation. There is no
solution now. :(

Anyway thanks again.
Previous Topic:JDT Debugger Big Slowdown
Next Topic:Exportwizard enablement for specific project
Goto Forum:
  


Current Time: Tue Jul 16 08:12:14 GMT 2024

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

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

Back to the top