commit | 1834241fe498f4a889f7bdda7751e1ba7b1af84a | [log] [tgz] |
---|---|---|
author | Lars Vogel <Lars.Vogel@vogella.com> | Thu Nov 01 12:42:42 2018 +0100 |
committer | Lars Vogel <Lars.Vogel@vogella.com> | Tue Apr 23 08:17:59 2019 -0400 |
tree | 984acc9482f70d37115c102ee79bfe5c16cbbced | |
parent | a840833365652e6a2f37b6287af77969655ebb51 [diff] |
Bug 540688: Add toString method to SubMonitor Change-Id: I2142780f1c45801be4b2fc7f51c980fd76008c54 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
diff --git a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/SubMonitor.java b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/SubMonitor.java index c4cfd42..d704e24 100644 --- a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/SubMonitor.java +++ b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/SubMonitor.java
@@ -1041,4 +1041,10 @@ } RuntimeLog.log(new Status(IStatus.WARNING, "org.eclipse.core.runtime", message, new Throwable())); //$NON-NLS-1$ } + + @Override + public String toString() { + return "SubMonitor [totalParent=" + totalParent + ", usedForParent=" + usedForParent + ", usedForChildren=" + usedForChildren + ", totalForChildren=" + totalForChildren + ", beginTaskCalled=" + beginTaskCalled + "]"; + } + }