Package com.intellij.openapi.ui.popup

Examples of com.intellij.openapi.ui.popup.ListPopup.showCenteredInCurrentWindow()


                actionGroup,
                DataManager.getInstance().getDataContext(editor.getComponent()),
                JBPopupFactory.ActionSelectionAid.SPEEDSEARCH,
                true);

        popupBuilder.showCenteredInCurrentWindow(project);


        /*
        // old dialog approach
        DBLanguageFile file = (DBLanguageFile) psiFile;
View Full Code Here


                actionGroup,
                DataManager.getInstance().getDataContext(editor.getComponent()),
                JBPopupFactory.ActionSelectionAid.SPEEDSEARCH,
                true);

        popupBuilder.showCenteredInCurrentWindow(project);


        /*
        // old dialog approach
        DBLanguageFile file = (DBLanguageFile) psiFile;
View Full Code Here

                                SelectConnectionAction selectConnectionAction = (SelectConnectionAction) action;
                                return latestSelection == selectConnectionAction.connectionHandler;
                            }
                        });

                popupBuilder.showCenteredInCurrentWindow(project);
            } else {
                if (singleConnectionHandler != null) {
                    openSQLConsole(singleConnectionHandler);
                } else {
                    int selection = Messages.showDialog(project,
View Full Code Here

                                    SelectConnectionAction selectConnectionAction = (SelectConnectionAction) action;
                                    return latestSelection == selectConnectionAction.connectionHandler;
                                }
                            });

                    popupBuilder.showCenteredInCurrentWindow(project);
                } else {
                    showLookupPopup(event, project, singleConnectionHandler, null);
                }
            } else {
                ConnectionManager connectionManager = ConnectionManager.getInstance(project);
View Full Code Here

            });
          }
        });

      if (!ApplicationManager.getApplication().isUnitTestMode()) {
        popupStep.showCenteredInCurrentWindow(step.getProject());
      } else {
        new WriteCommandAction.Simple(step.getProject()) {
          @Override
          protected void run() throws Throwable {
            createStepOrSteps(step, pairs.get(1).getFirst());
View Full Code Here

                              group,
                              e.getDataContext(),
                              JBPopupFactory.ActionSelectionAid.NUMBERING,
                              true);

    popup.showCenteredInCurrentWindow(e.getData(DataKeys.PROJECT));
  }

  public void update(AnActionEvent e) {
    super.update(e);
    e.getPresentation().setEnabled(e.getData(DataKeys.PROJECT) != null && isEnabled());
View Full Code Here

                                                                  group,
                                                                  context,
                                                                  JBPopupFactory.ActionSelectionAid.NUMBERING,
                                                                  true);

    popup.showCenteredInCurrentWindow(project);
  }

  public void createViewPopupActions(List<String> renderViews, DefaultActionGroup group, String betweenDirectory, String actionName) {
    Boolean grouped = false;
    for (String templateName : renderViews) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.