Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 19:17
maarten meijer is currently offline maarten meijerFriend
Messages: 146
Registered: July 2009
Senior Member
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: Wed Jul 03 17:23:07 GMT 2024

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

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

Back to the top