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
Post a Comment