mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-232707 refactor: drop myQueryEmpty field
GitOrigin-RevId: d5a6b5c4578723956b7f6af71f9581a69ef324d6
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6955664383
commit
f6f425a36d
@@ -29,9 +29,8 @@ public abstract class SearchResultPanel {
|
||||
protected final PluginsGroupComponent myPanel;
|
||||
private JScrollBar myVerticalScrollBar;
|
||||
private PluginsGroup myGroup;
|
||||
private String myQuery;
|
||||
private @NotNull String myQuery = "";
|
||||
private AtomicBoolean myRunQuery;
|
||||
private boolean isQueryEmpty = true;
|
||||
private boolean isMarketplace;
|
||||
private boolean isLoading;
|
||||
private SingleAlarm myAnnounceSearchResultsAlarm;
|
||||
@@ -84,11 +83,10 @@ public abstract class SearchResultPanel {
|
||||
}
|
||||
|
||||
public boolean isQueryEmpty() {
|
||||
return isQueryEmpty;
|
||||
return myQuery.isEmpty();
|
||||
}
|
||||
|
||||
public void setEmptyQuery() {
|
||||
isQueryEmpty = true;
|
||||
myQuery = "";
|
||||
}
|
||||
|
||||
@@ -102,7 +100,6 @@ public abstract class SearchResultPanel {
|
||||
setEmptyText(query);
|
||||
|
||||
if (query.equals(myQuery)) {
|
||||
isQueryEmpty = query.isEmpty();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -115,7 +112,7 @@ public abstract class SearchResultPanel {
|
||||
removeGroup();
|
||||
myQuery = query;
|
||||
|
||||
if (!(isQueryEmpty = query.isEmpty())) {
|
||||
if (!isQueryEmpty()) {
|
||||
handleQuery(query);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user