provide speed search component in popups

This commit is contained in:
Konstantin Bulenkov
2016-09-05 15:03:22 +02:00
parent c8acd8f263
commit 80d9e742ae
2 changed files with 7 additions and 2 deletions
@@ -156,7 +156,7 @@ public class AbstractPopup implements JBPopup {
}
};
private JTextField mySpeedSearchPatternField;
protected JTextField mySpeedSearchPatternField;
private boolean myNativePopup;
private boolean myMayBeParent;
private AbstractPopup.SpeedSearchKeyListener mySearchKeyListener;
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2015 JetBrains s.r.o.
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -581,6 +581,11 @@ public class ListPopupImpl extends WizardPopup implements ListPopup {
if (PlatformDataKeys.SELECTED_ITEMS.is(dataId)){
return myList.getSelectedValues();
}
if (PlatformDataKeys.SPEED_SEARCH_COMPONENT.is(dataId)) {
if (mySpeedSearchPatternField != null && mySpeedSearchPatternField.isVisible()) {
return mySpeedSearchPatternField;
}
}
return null;
}
}