public MnemonicsSearch(WizardPopup popup) { myPopup = popup; if (!myPopup.getStep().isMnemonicsNavigationEnabled()) return; final MnemonicNavigationFilter filter = myPopup.getStep().getMnemonicNavigationFilter(); final List<T> values = filter.getValues(); for (T each : values) { final int pos = filter.getMnemonicPos(each); if (pos != -1) { final String text = filter.getTextFor(each); final String charText = text.substring(pos + 1, pos + 2); myChar2ValueMap.put(StringUtil.toUpperCase(charText), each); myChar2ValueMap.put(charText.toLowerCase(), each); } } }
public AsyncPopupImpl(@Nullable WizardPopup parent, @Nonnull AsyncPopupStep step, Object parentValue) { super(parent, step); if (!(parent instanceof NextStepHandler)) throw new IllegalArgumentException("parent must be NextStepHandler"); myCallBackParent = (NextStepHandler)parent; myParentValue = parentValue; myFuture = ApplicationManager.getApplication().executeOnPooledThread(step); myAlarm = new Alarm(this); myAlarm.addRequest(this, 200); Disposer.register(this, new Disposable() { @Override public void dispose() { if (!myFuture.isCancelled() && !myFuture.isDone()) { myFuture.cancel(false); } } }); }
public ListPopupImpl(WizardPopup aParent, @NotNull ListPopupStep aStep, Object parentValue, int maxRowCount) { super(aParent, aStep); setParentValue(parentValue); if (maxRowCount != -1){ myMaxRowCount = maxRowCount; } }
@Override protected WizardPopup createPopup(WizardPopup parent, PopupStep step, Object parentValue) { WizardPopup popup = super.createPopup(parent, step, parentValue); RootAction rootAction = getRootAction(parentValue); if (rootAction != null) { popup.setAdText((rootAction).getCaption()); } return popup; }
public ListPopupImpl(WizardPopup aParent, @Nonnull ListPopupStep aStep, Object parentValue, int maxRowCount) { super(aParent, aStep); setParentValue(parentValue); if (maxRowCount != -1){ myMaxRowCount = maxRowCount; } replacePasteAction(); }
protected FlatSpeedSearchPopup(@Nullable WizardPopup parent, @Nonnull ListPopupStep step, @Nonnull DataContext dataContext, @Nullable Object value) { super(parent, step, null, dataContext, null, -1); setParentValue(value); }
public ListPopupImpl(WizardPopup aParent, @NotNull ListPopupStep aStep, Object parentValue) { this(aParent, aStep, parentValue, -1); }
protected RunListPopup(WizardPopup aParent, ListPopupStep aStep, Object parentValue) { super(aParent, aStep, parentValue); registerActions(this); }
@Override protected WizardPopup createPopup(WizardPopup parent, PopupStep step, Object parentValue) { return new RunListPopup(parent, (ListPopupStep)step, parentValue); }
@Override protected WizardPopup createPopup(WizardPopup parent, PopupStep step, Object parentValue) { ChildPopup popup = new ChildPopup(parent, (ListPopupStep)step, parentValue); initPopup(popup); return popup; }
ChildPopup(WizardPopup aParent, ListPopupStep aStep, Object parentValue) { super(aParent, aStep, parentValue); }
@Override protected WizardPopup createPopup(WizardPopup parent, PopupStep step, Object parentValue) { return RootPopup.this.createPopup(parent, step, parentValue); }
public ListPopupImpl(WizardPopup aParent, @Nonnull ListPopupStep aStep, Object parentValue) { this(aParent, aStep, parentValue, -1); }
private BranchActionGroupPopup(@Nullable WizardPopup aParent, @Nonnull ListPopupStep aStep, @Nullable Object parentValue) { super(aParent, aStep, DataContext.EMPTY_CONTEXT, parentValue); // don't store children popup userSize; myKey = null; DataManager.registerDataProvider(getList(), dataId -> POPUP_MODEL == dataId ? getListModel() : null); }
@Override protected WizardPopup createPopup(WizardPopup parent, PopupStep step, Object parentValue) { return createListPopupStep(parent, step, parentValue); }
private WizardPopup createListPopupStep(WizardPopup parent, PopupStep step, Object parentValue) { if (step instanceof ListPopupStep) { return new BranchActionGroupPopup(parent, (ListPopupStep)step, parentValue); } return super.createPopup(parent, step, parentValue); }