mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
progress manager: static method for text2
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user