diff options
author | Darin Swanson | 2003-02-01 19:15:02 +0000 |
---|---|---|
committer | Darin Swanson | 2003-02-01 19:15:02 +0000 |
commit | 4f59b5ad7178de8f7ce72c2f83d224014bfeab4e (patch) | |
tree | 0d18a959ebc36549fd8e0c360fc6027e88d763d6 /org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/model/ExternalToolsPlugin.java | |
parent | 510d620724a636da32c99f76e3e423db5d402d65 (diff) | |
download | eclipse.platform.debug-4f59b5ad7178de8f7ce72c2f83d224014bfeab4e.tar.gz eclipse.platform.debug-4f59b5ad7178de8f7ce72c2f83d224014bfeab4e.tar.xz eclipse.platform.debug-4f59b5ad7178de8f7ce72c2f83d224014bfeab4e.zip |
Bug 30559 - ExternalToolsPlugin.log(Throwable) logs no message
Diffstat (limited to 'org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/model/ExternalToolsPlugin.java')
-rw-r--r-- | org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/model/ExternalToolsPlugin.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/model/ExternalToolsPlugin.java b/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/model/ExternalToolsPlugin.java index deec56496..477a7c374 100644 --- a/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/model/ExternalToolsPlugin.java +++ b/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/model/ExternalToolsPlugin.java @@ -45,7 +45,7 @@ public final class ExternalToolsPlugin extends AbstractUIPlugin { private RefreshScopeVariableRegistry refreshVarRegistry; private ExternalToolVariableRegistry toolVariableRegistry; - public static final String EMPTY_STRING= ""; //$NON-NLS-1$ + private static final String EMPTY_STRING= ""; //$NON-NLS-1$ /** * Create an instance of the External Tools plug-in. @@ -94,8 +94,9 @@ public final class ExternalToolsPlugin extends AbstractUIPlugin { * Returns the registry of refresh scope variables. */ public RefreshScopeVariableRegistry getRefreshVariableRegistry() { - if (refreshVarRegistry == null) + if (refreshVarRegistry == null) { refreshVarRegistry = new RefreshScopeVariableRegistry(); + } return refreshVarRegistry; } @@ -110,7 +111,9 @@ public final class ExternalToolsPlugin extends AbstractUIPlugin { } public void log(Throwable exception) { - getLog().log(newErrorStatus(null, exception)); + //this message is intentionally not internationalized, as an exception may + // be due to the resource bundle itself + getLog().log(newErrorStatus("Error logged from External Tools UI: ", exception)); //$NON-NLS-1$ } /** |