Finding fragment that contributes to extension point [message #336467] |
Mon, 15 June 2009 15:17 |
Eclipse User |
|
|
|
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(...)
|
|
|
Powered by
FUDForum. Page generated in 0.05737 seconds