Examples of showCenteredInCurrentWindow()


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

    }

    public void showPopup(Project project) {
        ComponentPopupBuilder popupBuilder = JBPopupFactory.getInstance().createComponentPopupBuilder(mainPanel, null);
        JBPopup popup = popupBuilder.createPopup();
        popup.showCenteredInCurrentWindow(project);
    }
}
View Full Code Here

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

});*/


        PopupChooserBuilder popupChooserBuilder = new PopupChooserBuilder(list);
        JBPopup popup = popupChooserBuilder.createPopup();
        popup.showCenteredInCurrentWindow(project);


        list.addMouseListener(new MouseAdapter()
        {
            @Override public void mousePressed(MouseEvent e)
View Full Code Here

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

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

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

                                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

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

                                    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

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

            });
          }
        });

      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

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

                              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

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

                                                                  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

Examples of scratch.ide.popup.ScratchListPopup.showCenteredInCurrentWindow()

      @Override public void dispose() {
        scratchListSelectedIndex = getSelectedIndex();
        super.dispose();
      }
    };
    popup.showCenteredInCurrentWindow(takeProjectFrom(userDataHolder));
  }

  public void openScratch(Scratch scratch, UserDataHolder userDataHolder) {
    Project project = takeProjectFrom(userDataHolder);
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.