How to programmatically find resolution of a source plug-in when P2 is enabled? [message #328976] |
Mon, 09 June 2008 13:59 |
Eclipse User |
|
|
|
Hello,
Could somebody please tell me how to programmatically find the resolution of
a source plug-in in an environment (Eclipse IDE) where P2 is enabled?
In the past, the particular task was achived via the
org.eclipse.core.runtime.Platform class as shown in the code snippet below:
String sourcePluginID = "org.acme.plugin1.source";
org.osgi.framework.Bundle[] resolvedSourcePlugin =
Platform.getBundles(sourcePluginID, null);
if(resolvedSourcePlugin != null){
// source plug-in resolved
}
else{
// source plug-in did not resolve
}// end if
In P2, the source plug-ins are NOT installed in OSGI in order to improve
performance.
Therefore, the following call to the Platform class would always return null
even though the particular source plug-in may have resolved in Eclipse.
Thanks in advance!
Sudarsha Wijenayake
|
|
|
Powered by
FUDForum. Page generated in 0.03231 seconds