Java 类com.intellij.ui.popup.WizardPopup 实例源码

项目:intellij-ce-playground    文件:MnemonicsSearch.java   
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);
    }
  }
}
项目:tools-idea    文件:MnemonicsSearch.java   
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);
    }
  }
}
项目:consulo    文件:MnemonicsSearch.java   
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);
    }
  }
}
项目:consulo    文件:AsyncPopupImpl.java   
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);
      }
    }
  });
}
项目:intellij-ce-playground    文件:ListPopupImpl.java   
public ListPopupImpl(WizardPopup aParent, @NotNull ListPopupStep aStep, Object parentValue, int maxRowCount) {
  super(aParent, aStep);
  setParentValue(parentValue);
  if (maxRowCount != -1){
    myMaxRowCount = maxRowCount;
  }
}
项目:intellij-ce-playground    文件:BranchActionGroupPopup.java   
@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;
}
项目:tools-idea    文件:ListPopupImpl.java   
public ListPopupImpl(WizardPopup aParent, @NotNull ListPopupStep aStep, Object parentValue, int maxRowCount) {
  super(aParent, aStep);
  setParentValue(parentValue);
  if (maxRowCount != -1){
    myMaxRowCount = maxRowCount;
  }
}
项目:tools-idea    文件:BranchActionGroupPopup.java   
@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;
}
项目:consulo    文件:ListPopupImpl.java   
public ListPopupImpl(WizardPopup aParent, @Nonnull ListPopupStep aStep, Object parentValue, int maxRowCount) {
  super(aParent, aStep);
  setParentValue(parentValue);
  if (maxRowCount != -1){
    myMaxRowCount = maxRowCount;
  }
  replacePasteAction();
}
项目:consulo    文件:FlatSpeedSearchPopup.java   
protected FlatSpeedSearchPopup(@Nullable WizardPopup parent,
                               @Nonnull ListPopupStep step,
                               @Nonnull DataContext dataContext,
                               @Nullable Object value) {
  super(parent, step, null, dataContext, null, -1);
  setParentValue(value);
}
项目:intellij-ce-playground    文件:ListPopupImpl.java   
public ListPopupImpl(WizardPopup aParent, @NotNull ListPopupStep aStep, Object parentValue) {
  this(aParent, aStep, parentValue, -1);
}
项目:intellij-ce-playground    文件:ChooseRunConfigurationPopup.java   
protected RunListPopup(WizardPopup aParent, ListPopupStep aStep, Object parentValue) {
  super(aParent, aStep, parentValue);
  registerActions(this);
}
项目:intellij-ce-playground    文件:ChooseRunConfigurationPopup.java   
@Override
protected WizardPopup createPopup(WizardPopup parent, PopupStep step, Object parentValue) {
  return new RunListPopup(parent, (ListPopupStep)step, parentValue);
}
项目:tools-idea    文件:ListPopupImpl.java   
public ListPopupImpl(WizardPopup aParent, @NotNull ListPopupStep aStep, Object parentValue) {
  this(aParent, aStep, parentValue, -1);
}
项目:tools-idea    文件:ChooseRunConfigurationPopup.java   
protected RunListPopup(WizardPopup aParent, ListPopupStep aStep, Object parentValue) {
  super(aParent, aStep, parentValue);
  registerActions(this);
}
项目:tools-idea    文件:ChooseRunConfigurationPopup.java   
@Override
protected WizardPopup createPopup(WizardPopup parent, PopupStep step, Object parentValue) {
  return new RunListPopup(parent, (ListPopupStep)step, parentValue);
}
项目:guards    文件:GuardPopupController.java   
@Override
protected WizardPopup createPopup(WizardPopup parent, PopupStep step, Object parentValue) {
    ChildPopup popup = new ChildPopup(parent, (ListPopupStep)step, parentValue);
    initPopup(popup);
    return popup;
}
项目:guards    文件:GuardPopupController.java   
ChildPopup(WizardPopup aParent, ListPopupStep aStep, Object parentValue) {
    super(aParent, aStep, parentValue);
}
项目:guards    文件:GuardPopupController.java   
@Override
protected WizardPopup createPopup(WizardPopup parent, PopupStep step, Object parentValue) {
    return RootPopup.this.createPopup(parent, step, parentValue);
}
项目:consulo    文件:ListPopupImpl.java   
public ListPopupImpl(WizardPopup aParent, @Nonnull ListPopupStep aStep, Object parentValue) {
  this(aParent, aStep, parentValue, -1);
}
项目:consulo    文件:BranchActionGroupPopup.java   
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);
}
项目:consulo    文件:BranchActionGroupPopup.java   
@Override
protected WizardPopup createPopup(WizardPopup parent, PopupStep step, Object parentValue) {
  return createListPopupStep(parent, step, parentValue);
}
项目:consulo    文件:BranchActionGroupPopup.java   
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);
}
项目:consulo    文件:ChooseRunConfigurationPopup.java   
protected RunListPopup(WizardPopup aParent, ListPopupStep aStep, Object parentValue) {
  super(aParent, aStep, parentValue);
  registerActions(this);
}
项目:consulo    文件:ChooseRunConfigurationPopup.java   
@Override
protected WizardPopup createPopup(WizardPopup parent, PopupStep step, Object parentValue) {
  return new RunListPopup(parent, (ListPopupStep)step, parentValue);
}