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

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -