Examples of showInScreenCoordinates()


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

        }
    };

    public JBPopup show(Component component) {
        JBPopup popup = createPopup();
        popup.showInScreenCoordinates(component,
                new Point(
                        (int) (component.getLocationOnScreen().getX() + component.getWidth() + 8),
                        (int) component.getLocationOnScreen().getY()));
        return popup;
    }
View Full Code Here

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

        JBPopup popup = createPopup();
        point.setLocation(
                point.getX() + component.getLocationOnScreen().getX(),
                point.getY() + component.getLocationOnScreen().getY());

        popup.showInScreenCoordinates(component, point);
        return popup;
    }

    private JBPopup createPopup() {
        ComponentPopupBuilder popupBuilder = JBPopupFactory.getInstance().createComponentPopupBuilder(mainPanel, valueTextArea);
View Full Code Here

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

    }

    public void show(Component component) {
        JBPopup popup = createPopup();
        popup.showInScreenCoordinates(component,
                new Point(
                        (int) (component.getLocationOnScreen().getX() + component.getWidth() +8),
                        (int) component.getLocationOnScreen().getY()));
    }
View Full Code Here

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

        JBPopup popup = createPopup();
        point.setLocation(
                point.getX() + component.getLocationOnScreen().getX() + 16,
                point.getY() + component.getLocationOnScreen().getY() + 16);

        popup.showInScreenCoordinates(component, point);
    }

    private JBPopup createPopup() {
        ComponentPopupBuilder popupBuilder = JBPopupFactory.getInstance().createComponentPopupBuilder(viewer.getComponent(), viewer.getContentComponent());
        popupBuilder.setMovable(true);
View Full Code Here

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

        Point locationOnScreen = getLocationOnScreen();
        Point location = new Point(
                (int) (locationOnScreen.getX()),
                (int) locationOnScreen.getY() + getHeight() + 1);
        popup.showInScreenCoordinates(this, location);
        isActive = true;
    }

    public class SelectValueAction extends AnAction {
        private T value;
View Full Code Here

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

                    JBPopupFactory.ActionSelectionAid.SPEEDSEARCH,
                    true, null, 10);

            if (inputEvent instanceof MouseEvent) {
                MouseEvent mouseEvent = (MouseEvent) inputEvent;
                popup.showInScreenCoordinates(component, mouseEvent.getLocationOnScreen());
                       
            } else {
                popup.show(component);
            }
View Full Code Here

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

      }
    }

    if (location != null)
    {
      popup.showInScreenCoordinates(component, location);
    }
    else
    {
      popup.showInBestPositionFor(e.getDataContext());
    }
View Full Code Here

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

            Point locationOnScreen = selectMethodActionPanel.getLocationOnScreen();
            Point location = new Point(
                    (int) (locationOnScreen.getX()),
                    (int) locationOnScreen.getY() + selectMethodActionPanel.getHeight());
            popup.showInScreenCoordinates(selectMethodActionPanel, location);
        }
    }

    public class OpenMethodBrowserAction extends AnAction {
        public OpenMethodBrowserAction() {
View Full Code Here

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

                        actionGroup,
                        createDataContext(),
                        JBPopupFactory.ActionSelectionAid.MNEMONICS,
                        true);

                listPopup.showInScreenCoordinates(tree, point);
            }
        }
    }

    private AnActionEvent createAnActionEvent(String actionId)
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.