Is there possible to programmatically change the target platform of a workspace? [message #47482] |
Thu, 19 February 2009 05:12  |
Eclipse User |
|
|
|
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 #47921 is a reply to message #47611] |
Tue, 24 February 2009 07:48  |
Eclipse User |
|
|
|
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 09:46  |
Eclipse User |
|
|
|
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] |
Thu, 19 February 2009 22:57  |
Eclipse User |
|
|
|
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 07:48  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03720 seconds