Expand tree on search
This commit is contained in:
parent
62a809b514
commit
4280ee9806
@ -77,6 +77,10 @@ public class TreeView implements DataSynchronizer {
|
|||||||
@Override
|
@Override
|
||||||
public void synchronize(@NotNull Translations translations, @Nullable String searchQuery) {
|
public void synchronize(@NotNull Translations translations, @Nullable String searchQuery) {
|
||||||
tree.setModel(new TreeModelTranslator(project, translations, searchQuery));
|
tree.setModel(new TreeModelTranslator(project, translations, searchQuery));
|
||||||
|
|
||||||
|
if(searchQuery != null && !searchQuery.isEmpty()) {
|
||||||
|
expandAll().run();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void handlePopup(MouseEvent e) {
|
private void handlePopup(MouseEvent e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user