Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Finding fragment that contributes to extension point
Finding fragment that contributes to extension point [message #336467] Mon, 15 June 2009 15:17
Eclipse UserFriend
Hi,

I have an extension point declared in my core plugin.

I also have fragments contributing to that extension point.
If during the parsing of the extension point I foind an outdate
construct I want to log to the error log identfying the frament name.
How do I do that?

for (IConfigurationElement elem : config) {
try {
if (elem.getName().equals(NEW_WAY_ID)) {
// prefer this extension point

} else if (elem.getName().equals(OLD_WAY_ID)) {
// tell the user about it
String fragmentid = elem.getContributor().getName(); // <- ??

IStatus obsolete = CoreLogger.createStatus(IStatus.WARNING, 0,
"Using old style Persistor extension point in "
+ fragmentid,
null);
CoreLogger.log(obsolete);
// do old way anyway

} catch(...)
Previous Topic:Compare fails synchronization in Galileo RC4 (Linux GTK)
Next Topic:Workspace ADDED distinguished from file system ADDED
Goto Forum:
  


Current Time: Thu May 01 08:24:03 EDT 2025

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

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

Back to the top