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 -

wpf - C# NAudio - Changing audio playback position still plays a small buffer of old position -

Log not being recorded for quickfix c++ Session -