Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2018-11-01 07:42:42 -0400
committerLars Vogel2019-04-23 08:17:59 -0400
commit1834241fe498f4a889f7bdda7751e1ba7b1af84a (patch)
tree984acc9482f70d37115c102ee79bfe5c16cbbced
parenta840833365652e6a2f37b6287af77969655ebb51 (diff)
downloadrt.equinox.bundles-1834241fe498f4a889f7bdda7751e1ba7b1af84a.tar.gz
rt.equinox.bundles-1834241fe498f4a889f7bdda7751e1ba7b1af84a.tar.xz
rt.equinox.bundles-1834241fe498f4a889f7bdda7751e1ba7b1af84a.zip
Bug 540688: Add toString method to SubMonitor
Change-Id: I2142780f1c45801be4b2fc7f51c980fd76008c54 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/SubMonitor.java6
1 files changed, 6 insertions, 0 deletions
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 c4cfd42e..d704e244 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 @@ public final class SubMonitor implements IProgressMonitorWithBlocking {
}
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 + "]";
+ }
+
}

Back to the top