progress manager: static method for text2

This commit is contained in:
irengrig
2013-02-11 20:27:17 +04:00
parent c8ee35d7f0
commit 778cd2c1aa
@@ -73,6 +73,14 @@ public abstract class ProgressManager {
progress(text, "");
}
public static void progress2(@NotNull final String text) throws ProcessCanceledException {
final ProgressIndicator pi = getInstance().getProgressIndicator();
if (pi != null) {
pi.checkCanceled();
pi.setText2(text);
}
}
public static void progress(final String text, @Nullable String text2) throws ProcessCanceledException {
final ProgressIndicator pi = getInstance().getProgressIndicator();
if (pi != null) {