mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
tolerate wolf resetting the log message text
This commit is contained in:
+3
-2
@@ -58,6 +58,7 @@ import java.awt.event.MouseEvent;
|
||||
import java.util.*;
|
||||
|
||||
public class InfoAndProgressPanel extends JPanel implements CustomStatusBarWidget {
|
||||
private static final String INTERNAL_LOG_REQUESTOR = "Internal log requestor";
|
||||
private final ProcessPopup myPopup;
|
||||
|
||||
private final StatusPanel myInfoPanel = new StatusPanel();
|
||||
@@ -364,8 +365,8 @@ public class InfoAndProgressPanel extends JPanel implements CustomStatusBarWidge
|
||||
return Pair.create(myInfoPanel.getText(), myCurrentRequestor);
|
||||
}
|
||||
|
||||
boolean logMode = myInfoPanel.updateText(!hasProgressIndicators(), text);
|
||||
myCurrentRequestor = logMode ? null : requestor;
|
||||
boolean logMode = myInfoPanel.updateText(!hasProgressIndicators(), requestor == INTERNAL_LOG_REQUESTOR ? "" : text);
|
||||
myCurrentRequestor = logMode ? INTERNAL_LOG_REQUESTOR : requestor;
|
||||
return Pair.create(text, requestor);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user