Create and set a target platform programatically [message #665266] |
Wed, 13 April 2011 23:48 |
Eclipse User |
|
|
|
Originally posted by: jonas.helming.googlemail.com
Hi,
I would like to create and set a target platform programatically, say
from a given target definition in xml. I have browsed the internal
classes a bit and maybe it would work somehow like this:
ITargetDefinition newTarget =
TargetPlatformService.getDefault().newTarget();
TargetDefinitionPersistenceHelper.initFromXML(newTarget, new
FileInputStream(new File("test.target")));
However all these classes are internal, not accessible and not part of
the API.
I have found a related post :
news://news.eclipse.org:119/gnjbai$eb6$1@build.eclipse.org
The proposed solution was to use
org.eclipse.pde.internal.core.target.provisional.ITargetPlat formService
But AFAICS this is also not acessible.
Is there any API I missed?
Thanks in advance!
Cheers
Jonas
|
|
|
|
Powered by
FUDForum. Page generated in 0.02825 seconds