Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Webster2010-12-08 14:04:52 +0000
committerPaul Webster2010-12-08 14:04:52 +0000
commiteeef2a639704464a855b28104321d37e7c62480a (patch)
tree0e63191b2a66bfd6a0876e0a1a073e7c4b6e0de4 /bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
parentf99ae33e6c0ffae5dd7665e57a6feac699b66704 (diff)
downloadeclipse.platform.ui-eeef2a639704464a855b28104321d37e7c62480a.tar.gz
eclipse.platform.ui-eeef2a639704464a855b28104321d37e7c62480a.tar.xz
eclipse.platform.ui-eeef2a639704464a855b28104321d37e7c62480a.zip
Bug 332038 - Logs filled with "Defining a binding table" messagesv20101208-1430
tie the logging to tracing, so they only show up in debug mode
Diffstat (limited to 'bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java')
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
index cccd636397f..d07a9edcfea 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
@@ -1803,7 +1803,9 @@ public final class Workbench extends EventManager implements IWorkbench {
if (contains(bindingTables, id)) {
return;
}
- WorkbenchPlugin.log("Defining a binding table: " + id); //$NON-NLS-1$
+ if (WorkbenchPlugin.getDefault().isDebugging()) {
+ WorkbenchPlugin.log("Defining a binding table: " + id); //$NON-NLS-1$
+ }
MBindingTable bt = CommandsFactoryImpl.eINSTANCE.createBindingTable();
bt.setBindingContextId(id);
bindingTables.add(bt);

Back to the top