mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
provide speed search component in popups
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user