commit | f4409b5d474dcc815f1b81310af253408a65b2ad | [log] [tgz] |
---|---|---|
author | rchaves <rchaves> | Mon Feb 16 17:17:40 2004 +0000 |
committer | rchaves <rchaves> | Mon Feb 16 17:17:40 2004 +0000 |
tree | 4311935f88d0b07f6465746e72b96fb26c7a5248 | |
parent | 151caaea358307b397c94810396d434848c2e4c7 [diff] |
Fixed Bug 52169 - PluginStopper should be logging errors
diff --git a/bundles/org.eclipse.core.runtime.compatibility/src-runtime/org/eclipse/core/internal/plugins/PluginStopper.java b/bundles/org.eclipse.core.runtime.compatibility/src-runtime/org/eclipse/core/internal/plugins/PluginStopper.java index d3d0720..a6fa620 100644 --- a/bundles/org.eclipse.core.runtime.compatibility/src-runtime/org/eclipse/core/internal/plugins/PluginStopper.java +++ b/bundles/org.eclipse.core.runtime.compatibility/src-runtime/org/eclipse/core/internal/plugins/PluginStopper.java
@@ -100,8 +100,10 @@ System.out.println("Stopping: " + orderedBundles[i].getGlobalName() + " (#" + orderedBundles[i].getBundleId() + ")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ orderedBundles[i].stop(); } - } catch (Exception be) { - be.printStackTrace();//TODO Need to log the error + } catch (Exception e) { + String message = Policy.bind("activator.errorStoppingPlugin",orderedBundles[i].toString()); //$NON-NLS-1$ + IStatus status = new Status(IStatus.ERROR, IPlatform.PI_RUNTIME_COMPATIBILITY, 1, message, e); + InternalPlatform.getDefault().log(status); } } }
diff --git a/bundles/org.eclipse.core.runtime.compatibility/src-runtime/org/eclipse/core/internal/plugins/messages.properties b/bundles/org.eclipse.core.runtime.compatibility/src-runtime/org/eclipse/core/internal/plugins/messages.properties index c5a4e39..8984544 100644 --- a/bundles/org.eclipse.core.runtime.compatibility/src-runtime/org/eclipse/core/internal/plugins/messages.properties +++ b/bundles/org.eclipse.core.runtime.compatibility/src-runtime/org/eclipse/core/internal/plugins/messages.properties
@@ -12,10 +12,11 @@ ok = OK -# Plugin activation messages +# Plugin activation/deactivation messages activator.applicationNotStarted=Legacy plug-in \"{0}\" must not be automatically activated on startup. This is probably caused by a previous crash in Eclipse. activator.unknownPrerequisite=Unknown prerequisite \"{0}\" for plugin \"{1}\". activator.errorStartingPrerequisite=Prerequisite \"{0}\" for plugin \"{1}\" for could not be started. +activator.errorStoppingPlugin=Error while stopping plug-in \"{0}\". # Plugin event dispatcher messages pluginEvent.errorListener=Error dispatching plugin event.