Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to programmatically find resolution of a source plug-in when P2 is enabled?
How to programmatically find resolution of a source plug-in when P2 is enabled? [message #328976] Mon, 09 June 2008 13:59
Eclipse UserFriend
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
Previous Topic:How to create branding for feature in eclipse 3.3 or higher
Next Topic:[Databinding] Possible to bind the enable property of button
Goto Forum:
  


Current Time: Mon Jun 02 18:02:08 EDT 2025

Powered by FUDForum. Page generated in 0.03231 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top