public class ProgressUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ProgressUtil.MonitorWrapper
A small wrapper around the
IProgressMonitor that keeps a default label -- the string
to show when a current stage has no label of its own. |
static class |
ProgressUtil.Stage
Represents one stage of the whole process with a name and relative length called "weight".
|
Constructor and Description |
---|
ProgressUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
layoutProgressPlan(ProgressUtil.Stage... stages)
From a list of all stages of some process calculates their tick numbers
for
IProgressMonitor according to their weights. |
public static boolean layoutProgressPlan(ProgressUtil.Stage... stages)
IProgressMonitor
according to their weights. The whole process
should be LAYOUT_TOTAL_STEPS
in ticks.
Method has a return value so that it could be called from expressions (notably,
constant initializer of an interface so that layout could be performed in initialization
phase).Copyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.