summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Stryker2013-01-08 04:32:08 (EST)
committerRob Stryker2013-04-24 10:50:31 (EDT)
commitc3e836435fa4f16c09137e4fc89f46a03ee454d2 (patch)
tree1506477b4b149a82c1926f9e9381a77f68ec051e
parenta527c8b389ec9e3a7dadf30ee33d3936051b78f2 (diff)
downloadwebtools.common-c3e836435fa4f16c09137e4fc89f46a03ee454d2.zip
webtools.common-c3e836435fa4f16c09137e4fc89f46a03ee454d2.tar.gz
webtools.common-c3e836435fa4f16c09137e4fc89f46a03ee454d2.tar.bz2
added error loggingv201305012300
-rw-r--r--plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/flat/GlobalHeirarchyParticipant.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/flat/GlobalHeirarchyParticipant.java b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/flat/GlobalHeirarchyParticipant.java
index e1b360c..76d835f 100644
--- a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/flat/GlobalHeirarchyParticipant.java
+++ b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/flat/GlobalHeirarchyParticipant.java
@@ -16,6 +16,7 @@ import java.util.Iterator;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExtensionRegistry;
+import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Platform;
import org.eclipse.wst.common.componentcore.internal.ModulecorePlugin;
import org.eclipse.wst.common.componentcore.internal.flat.FlatVirtualComponent.FlatComponentTaskModel;
@@ -58,15 +59,18 @@ public class GlobalHeirarchyParticipant extends AbstractFlattenParticipant {
IExtensionRegistry registry = Platform.getExtensionRegistry();
IConfigurationElement[] cf2 = registry.getConfigurationElementsFor(ModulecorePlugin.PLUGIN_ID, "heirarchyFlattenParticipant"); //$NON-NLS-1$
for( int i = 0; i < cf2.length; i++ ) {
+ String clazz = cf2[i].getAttribute("class");
try {
IFlattenParticipant o = (IFlattenParticipant)cf2[i].createExecutableExtension("class");
if( o != null )
list.add(o);
else {
- // TODO log a warning
+ ModulecorePlugin.log(IStatus.WARNING, 0,
+ "Unable to create global heirarchy participant " + clazz, null);
}
} catch(CoreException ce) {
- // TODO log a warning
+ ModulecorePlugin.log(IStatus.WARNING, 0,
+ "Unable to create global heirarchy participant " + clazz, ce);
}
}
}