java - Get list of target Platform programmatically -


how can list of available target definitions workspace programmatically? writing plugin requires display list of available target platforms.

the itargetplatformservice osgi service provides information target platforms.

get like:

servicereference<itargetplatformservice> ref = bundlecontext.getservice(itargetplatformservice.class);  itargetplatformservice service = bundlecontext.getservice(ref); 

where bundlecontext bundlecontext passed start method of plugin's activator.

call

public itargethandle[] gettargets(iprogressmonitor monitor) 

method of itargetplatformservice array of target platforms.


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -