Examples of ToolWindowAnchor


Examples of com.intellij.openapi.wm.ToolWindowAnchor

    public void projectOpened() {
        final ToolWindowManager toolMgr = ToolWindowManager.getInstance(project);
        final String twName = SynchronizationResultsPanel.NAME;

        final SynchronizationResultsPanel ui = new SynchronizationResultsPanel(project);
        final ToolWindowAnchor anchor = ToolWindowAnchor.BOTTOM;
        final ToolWindow tw = toolMgr.registerToolWindow(twName, ui, anchor);

        tw.setIcon(Icons.SYNC);
        tw.setAvailable(false, null);
    }
View Full Code Here

Examples of org.noos.xing.mydoggy.ToolWindowAnchor

                publicEvent = false;

                setAvailable(false);

                ToolWindowAnchor oldAnchor = this.anchor;
                this.anchor = anchor;
                this.lastAnchorIndex = anchor.getIndex();

                setAvailable(true);
                if (tempActive)
                    setActive(true);
                else if (tempVisible)
                    setVisible(true);

                publicEvent = true;

                fireAnchorEvent(oldAnchor, anchor);
            } else {
                ToolWindowAnchor oldAnchor = this.anchor;
                this.anchor = anchor;
                this.lastAnchorIndex = anchor.getIndex();

                fireAnchorEvent(oldAnchor, anchor);
            }
View Full Code Here

Examples of org.noos.xing.mydoggy.ToolWindowAnchor

        return content;
    }

    public JComponent getRepresentativeAnchor(Component parent) {
        if (representativeAnchor == null) {
            ToolWindowAnchor anchor = getAnchor();

            String labelText = getResourceManager().getUserString(content.getId());
            Icon toolIcon = content.getIcon();

            switch (anchor) {
View Full Code Here

Examples of org.noos.xing.mydoggy.ToolWindowAnchor

        return getToolBar().getRepresentativeAnchorIndex(representativeAnchor);
    }

    public void updateRepresentativeAnchor() {
        if (representativeAnchor != null) {
            ToolWindowAnchor anchor = getAnchor();

            String labelText = getResourceManager().getUserString(content.getId());
            Icon toolIcon = content.getIcon();

            JLabel representativeLabel = (JLabel) representativeAnchor;
View Full Code Here

Examples of org.noos.xing.mydoggy.ToolWindowAnchor

        public void dragMouseMoved(DragSourceDragEvent dsde) {
            if (!checkStatus())
                return;

            // Obtain anchor for location
            ToolWindowAnchor newAnchor = manager.getToolWindowAnchor(
                    SwingUtil.convertPointFromScreen(dsde.getLocation(), manager)
            );

            if (newAnchor != lastAnchor) {
                if (newAnchor == null) {
View Full Code Here

Examples of org.noos.xing.mydoggy.ToolWindowAnchor

        public void dragMouseMoved(DragSourceDragEvent dsde) {
            if (!checkStatus())
                return;

            // Obtain anchor for location
            ToolWindowAnchor newAnchor = manager.getToolWindowAnchor(
                    SwingUtil.convertPointFromScreen(dsde.getLocation(), manager)
            );

            // Produce updatedGhostImage
            if (newAnchor != lastAnchor) {
View Full Code Here

Examples of org.noos.xing.mydoggy.ToolWindowAnchor

        public void dragMouseMoved(DragSourceDragEvent dsde) {
            if (!checkStatus())
                return;

            // Obtain anchor for location
            ToolWindowAnchor newAnchor = manager.getToolWindowAnchor(
                    SwingUtil.convertPointFromScreen(dsde.getLocation(), manager)
            );

            // Produce updatedGhostImage
            if (newAnchor != lastAnchor) {
View Full Code Here

Examples of org.noos.xing.mydoggy.ToolWindowAnchor

                            resourceBundle.getString("@@tool.hide") :
                            resourceBundle.getString("@@tool.show"));
        }

        protected void enableMoveToItem() {
            ToolWindowAnchor anchor = toolWindow.getAnchor();
            if (anchor == ToolWindowAnchor.LEFT) {
                left.setVisible(false);
                right.setVisible(true);
                top.setVisible(true);
                bottom.setVisible(true);
View Full Code Here

Examples of org.noos.xing.mydoggy.ToolWindowAnchor

        public void dragMouseMoved(DragSourceDragEvent dsde) {
            if (!checkStatus())
                return;

            // Obtain anchor for location
            ToolWindowAnchor newAnchor = manager.getToolWindowAnchor(
                    SwingUtil.convertPointFromScreen(dsde.getLocation(), manager)
            );

            if (newAnchor != lastAnchor) {
                if (newAnchor == null) {
View Full Code Here

Examples of org.noos.xing.mydoggy.ToolWindowAnchor

    public void dragMouseMoved(DragSourceDragEvent dsde) {
        if (!checkStatus())
            return;

        // Obtain anchor for location
        ToolWindowAnchor newAnchor = manager.getToolWindowAnchor(
                SwingUtil.convertPointFromScreen(dsde.getLocation(), manager)
        );

        // Produce updatedGhostImage
        if (newAnchor != lastAnchor) {
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.