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

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

javascript - Handling constructor related functions while testing with mocha and sinon -