mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
IJPL-177749 Restore three dots button in lookup 2
Keep the original component hierarchy. (cherry picked from commit 8746d61bef8c62a1a41e27631c574ade59608ed7) IJ-CR-157279 GitOrigin-RevId: 5466789040175232ac60e928bf85cc011d1c133b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
43135022ff
commit
93eca7fbd3
@@ -97,15 +97,9 @@ final class LookupUi {
|
||||
menuAction.addSeparator();
|
||||
menuAction.add(new ShowCompletionSettingsAction());
|
||||
|
||||
ActionButton menuButton = new ActionButton(menuAction, null, ActionPlaces.EDITOR_POPUP, ActionToolbar.NAVBAR_MINIMUM_BUTTON_SIZE);
|
||||
myMenuButton = UiDataProvider.wrapComponent(menuButton, sink -> {
|
||||
sink.set(CommonDataKeys.PROJECT, this.lookup.getProject());
|
||||
sink.set(CommonDataKeys.EDITOR, this.lookup.getEditor());
|
||||
});
|
||||
|
||||
AnAction hintAction = new HintAction();
|
||||
hintButton = new ActionButton(hintAction, hintAction.getTemplatePresentation().clone(),
|
||||
ActionPlaces.EDITOR_POPUP, ActionToolbar.NAVBAR_MINIMUM_BUTTON_SIZE);
|
||||
myMenuButton = new ActionButton(menuAction, null, ActionPlaces.EDITOR_POPUP, ActionToolbar.NAVBAR_MINIMUM_BUTTON_SIZE);
|
||||
HintAction hintAction = new HintAction();
|
||||
hintButton = new ActionButton(hintAction, null, ActionPlaces.EDITOR_POPUP, ActionToolbar.NAVBAR_MINIMUM_BUTTON_SIZE);
|
||||
hintButton.setVisible(false);
|
||||
|
||||
LookupLayeredPane layeredPane = new LookupLayeredPane();
|
||||
@@ -386,7 +380,7 @@ final class LookupUi {
|
||||
}
|
||||
}
|
||||
|
||||
private final class LookupLayeredPane extends JBLayeredPane {
|
||||
private final class LookupLayeredPane extends JBLayeredPane implements UiDataProvider {
|
||||
final JPanel mainPanel = new JPanel(new BorderLayout());
|
||||
|
||||
private LookupLayeredPane() {
|
||||
@@ -434,6 +428,12 @@ final class LookupUi {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public void uiDataSnapshot(@NotNull DataSink sink) {
|
||||
sink.set(CommonDataKeys.PROJECT, lookup.getProject());
|
||||
sink.set(CommonDataKeys.EDITOR, lookup.getEditor());
|
||||
}
|
||||
}
|
||||
|
||||
private final class HintAction extends DumbAwareAction {
|
||||
|
||||
Reference in New Issue
Block a user