Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Is there possible to programmatically change the target platform of a workspace?
Is there possible to programmatically change the target platform of a workspace? [message #47482] Thu, 19 February 2009 10:12 Go to next message
Eclipse UserFriend
Originally posted by: laurent.redor.obeo.fr

This is a multi-part message in MIME format.
--------------020001050009040104040202
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hello,

For my needs, I launch an eclispe with command line "java -cp
../startup.jar org.eclipse.core.launcher.Main -application
id.of.my.application -data myWorkspacePath
I want to change the target platform of the workspace during the run of
the IPlatformRunnable. Is there a way to do that?

Best Regards,

Laurent

--------------020001050009040104040202
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_redor.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="laurent_redor.vcf"

begin:vcard
fn:Laurent Redor
n:Redor;Laurent
org:Obeo
adr;quoted-printable:;;2 rue Robert Schuman;Rez=C3=A9;;44400;France
email;internet:laurent.redor@obeo.fr
url:http://www.obeo.fr
version:2.1
end:vcard


--------------020001050009040104040202--
Re: Is there possible to programmatically change the target platform of a workspace? [message #47544 is a reply to message #47482] Thu, 19 February 2009 14:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jacek.pospychala.pl.ibm.com

Hi Laurent,
yes it should be possible. At least RAP can do that if you click their
button contributed to Welcome page to set RAP target platform.
But I don't know what's the API for that.

Laurent Redor pisze:
> Hello,
>
> For my needs, I launch an eclispe with command line "java -cp
> ./startup.jar org.eclipse.core.launcher.Main -application
> id.of.my.application -data myWorkspacePath
> I want to change the target platform of the workspace during the run of
> the IPlatformRunnable. Is there a way to do that?
Re: Is there possible to programmatically change the target platform of a workspace? [message #47611 is a reply to message #47482] Fri, 20 February 2009 03:57 Go to previous messageGo to next message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
Laurent Redor wrote:
> Hello,
>
> For my needs, I launch an eclispe with command line "java -cp
> ./startup.jar org.eclipse.core.launcher.Main -application
> id.of.my.application -data myWorkspacePath
> I want to change the target platform of the workspace during the run of
> the IPlatformRunnable. Is there a way to do that?

What version of Eclipse? In 3.5, we are redoing the whole target
platform story and added a provisional API around targets:

org.eclipse.pde.internal.core.target.provisional.ITargetPlat formService

If you're using something before 3.5, you can grok the code in:

org.eclipse.pde.internal.core.LoadTargetOperation

Note that it's not easy to do, so sorry for that. We are improving
things in 3.5 quite a bit and plan to improve more in the next release
once the provisional API solidifies... with feedback from great people
like you!

Cheers,

Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
http://twitter.com/caniszczyk | http://twitter.com/eclipsesource
Re: Is there possible to programmatically change the target platform of a workspace? [message #47921 is a reply to message #47611] Tue, 24 February 2009 12:48 Go to previous message
Eclipse UserFriend
Originally posted by: laurent.redor.obeo.fr

This is a multi-part message in MIME format.
--------------000402050005080000000005
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

I use Eclipse 3.4.
For the moment, I got out of this problem by saving a workspace pointing
to the right targetPlatform. But perhaps I will see what is possible
with LoadTargetOperation.

Thanks,

Laurent


Chris Aniszczyk a
Re: Is there possible to programmatically change the target platform of a workspace? [message #592175 is a reply to message #47482] Thu, 19 February 2009 14:46 Go to previous message
Jacek Pospychala is currently offline Jacek PospychalaFriend
Messages: 159
Registered: July 2009
Senior Member
Hi Laurent,
yes it should be possible. At least RAP can do that if you click their
button contributed to Welcome page to set RAP target platform.
But I don't know what's the API for that.

Laurent Redor pisze:
> Hello,
>
> For my needs, I launch an eclispe with command line "java -cp
> ./startup.jar org.eclipse.core.launcher.Main -application
> id.of.my.application -data myWorkspacePath
> I want to change the target platform of the workspace during the run of
> the IPlatformRunnable. Is there a way to do that?
Re: Is there possible to programmatically change the target platform of a workspace? [message #592195 is a reply to message #47482] Fri, 20 February 2009 03:57 Go to previous message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
Laurent Redor wrote:
> Hello,
>
> For my needs, I launch an eclispe with command line "java -cp
> ./startup.jar org.eclipse.core.launcher.Main -application
> id.of.my.application -data myWorkspacePath
> I want to change the target platform of the workspace during the run of
> the IPlatformRunnable. Is there a way to do that?

What version of Eclipse? In 3.5, we are redoing the whole target
platform story and added a provisional API around targets:

org.eclipse.pde.internal.core.target.provisional.ITargetPlat formService

If you're using something before 3.5, you can grok the code in:

org.eclipse.pde.internal.core.LoadTargetOperation

Note that it's not easy to do, so sorry for that. We are improving
things in 3.5 quite a bit and plan to improve more in the next release
once the provisional API solidifies... with feedback from great people
like you!

Cheers,

Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
http://twitter.com/caniszczyk | http://twitter.com/eclipsesource
Re: Is there possible to programmatically change the target platform of a workspace? [message #592296 is a reply to message #47611] Tue, 24 February 2009 12:48 Go to previous message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 29
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.
--------------000402050005080000000005
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

I use Eclipse 3.4.
For the moment, I got out of this problem by saving a workspace pointing
to the right targetPlatform. But perhaps I will see what is possible
with LoadTargetOperation.

Thanks,

Laurent


Chris Aniszczyk a
Previous Topic:Compiler warnings during headless build
Next Topic:plugins ---> features
Goto Forum:
  


Current Time: Thu Jul 29 07:10:40 GMT 2021

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

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

Back to the top