Examples of ActionCallback


Examples of com.intellij.openapi.util.ActionCallback

                                        @NotNull final JstdServer server,
                                        @NotNull final JstdRunSettings runSettings) {
    if (server.isReadyForRunningTests()) {
      final JstdDebugBrowserInfo debugBrowserInfo = JstdDebugBrowserInfo.build(server, runSettings);
      if (debugBrowserInfo != null) {
        ActionCallback prepareDebuggerCallback = debugBrowserInfo.getDebugEngine().prepareDebugger(project, debugBrowserInfo.getBrowser());
        prepareDebuggerCallback.notifyWhenRejected(result).doWhenDone(new Runnable() {
          @Override
          public void run() {
            result.setDone(new MyDebugStarter(server, debugBrowserInfo));
          }
        });
View Full Code Here

Examples of mage.cards.action.ActionCallback

        DialogManager.getManager(gameId).fadeOut();
        this.abilityPicker.show(choices, MageFrame.getDesktop().getMousePosition());
    }

    private void hideAll() {
        ActionCallback callback = Plugins.getInstance().getActionCallback();
        ((MageActionCallback)callback).hideGameUpdate(gameId);
    }
View Full Code Here

Examples of mage.cards.action.ActionCallback

        KeyStroke ksAltE = KeyStroke.getKeyStroke(KeyEvent.VK_E, InputEvent.ALT_MASK);
        this.getInputMap(c).put(ksAltE, "ENLARGE");
        this.getActionMap().put("ENLARGE", new AbstractAction() {
            @Override
            public void actionPerformed(ActionEvent actionEvent) {
                ActionCallback callback = Plugins.getInstance().getActionCallback();
                ((MageActionCallback)callback).enlargeCard(EnlargeMode.NORMAL);
            }
        });

        KeyStroke ksAltS = KeyStroke.getKeyStroke(KeyEvent.VK_S, InputEvent.ALT_MASK);
        this.getInputMap(c).put(ksAltS, "ENLARGE_SOURCE");
        this.getActionMap().put("ENLARGE_SOURCE", new AbstractAction() {
            @Override
            public void actionPerformed(ActionEvent actionEvent) {
                ActionCallback callback = Plugins.getInstance().getActionCallback();
                ((MageActionCallback)callback).enlargeCard(EnlargeMode.ALTERNATE);
            }
        });

        KeyStroke ksAltD = KeyStroke.getKeyStroke(KeyEvent.VK_D, InputEvent.ALT_MASK);
        this.getInputMap(c).put(ksAltD, "BIG_IMAGE");
        this.getActionMap().put("BIG_IMAGE", new AbstractAction() {
            @Override
            public void actionPerformed(ActionEvent actionEvent) {
                imagePanelState = !imagePanelState;
                if (!imagePanelState) {
                    jSplitPane0.resetToPreferredSizes();
                    jSplitPane0.setDividerLocation(jSplitPane0.getSize().width - jSplitPane0.getInsets().right - jSplitPane0.getDividerSize() - 260);
                } else {
                    jSplitPane0.setDividerLocation(1.0);
                }
            }
        });

        final BasicSplitPaneUI myUi = (BasicSplitPaneUI) jSplitPane0.getUI();
        final BasicSplitPaneDivider divider = myUi.getDivider();
        final JButton upArrowButton = (JButton) divider.getComponent(0);
        upArrowButton.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent actionEvent) {
                PreferencesDialog.saveValue(PreferencesDialog.KEY_BIG_CARD_TOGGLED, "up");
            }
        });

        final JButton downArrowButton = (JButton) divider.getComponent(1);
        downArrowButton.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent actionEvent) {
                PreferencesDialog.saveValue(PreferencesDialog.KEY_BIG_CARD_TOGGLED, "down");
            }
        });

        KeyStroke ksAltEReleased = KeyStroke.getKeyStroke(KeyEvent.VK_E, InputEvent.ALT_MASK, true);
        this.getInputMap(c).put(ksAltEReleased, "ENLARGE_RELEASE");
        KeyStroke ksAltSReleased = KeyStroke.getKeyStroke(KeyEvent.VK_S, InputEvent.ALT_MASK, true);
        this.getInputMap(c).put(ksAltSReleased, "ENLARGE_RELEASE");
        this.getActionMap().put("ENLARGE_RELEASE", new AbstractAction() {
            @Override
            public void actionPerformed(ActionEvent actionEvent) {
                ActionCallback callback = Plugins.getInstance().getActionCallback();
                ((MageActionCallback)callback).hideEnlargedCard();
            }
        });

        btnSwitchHands.setContentAreaFilled(false);
View Full Code Here

Examples of mage.cards.action.ActionCallback

                        topCardPanel.setVisible(true);
                    }
                    topCard = player.getTopCard();
                    topCardPanel.update(topCard);
                    topCardPanel.updateImage();
                    ActionCallback callback = Plugins.getInstance().getActionCallback();
                    ((MageActionCallback)callback).refreshSession();
                    topCardPanel.updateCallback(callback, gameId);
                }
            } else if (topCard != null) {
                topCard = null;
View Full Code Here

Examples of mage.cards.action.ActionCallback

            copyIconPanel.add(showCopySourceButton);

            showCopySourceButton.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    ActionCallback callback = Plugins.getInstance().getActionCallback();
                    ((MageActionCallback) callback).enlargeCard(EnlargeMode.COPY);
                }
            });
        }
View Full Code Here

Examples of org.groovymud.shell.security.ActionCallback

        if (conf.getMessageType() != ConfirmationCallback.YES_NO_OPTION) {
          throw new UnsupportedCallbackException(conf, "cannot handle none YN questions yet");
        }
        confirmNewPlayer(conf);
      } else if (callbacks[x] instanceof ActionCallback) {
        ActionCallback cp = (ActionCallback) callbacks[x];
        if (cp.getAction().equals(ActionCallback.LOAD_ACTION)) {
          this.setPlayer(tryToloadPlayer(cp.getObjectName()));
          cp.setMudObject(player);
          if (player != null) {
            player.getSubject().getPrivateCredentials().add(player.getPlayerCredentials());
          }
        }
        if (cp.getAction().equals(ActionCallback.CREATE_ACTION)) {
          this.setPlayer(this.doRegisterNewPlayer(cp.getObjectName()));
          cp.setMudObject(player);
        }
        if (cp.getAction().equals(ActionCallback.EXISTS_ACTION)) {
          cp.setMudObject(getLoggedInPlayer(cp.getObjectName()));
        }
      } else if (callbacks[x] instanceof TextOutputCallback) {
        TextOutputCallback cb = (TextOutputCallback) callbacks[x];
        getExtendedTerminalIO().writeln(cb.getMessage());
      } else {
View Full Code Here

Examples of org.springframework.ws.soap.addressing.client.ActionCallback

            // Add WS-Addressing Action to webservice request (the WS-Addressing
            // 'to' header will default to the URL of the connection).
            // Note that exchange header takes precedence over endpoint option
            URI wsAddressingAction = wsAddressingActionHeader != null ? wsAddressingActionHeader : endpoint.getConfiguration().getWsAddressingAction();
            if (wsAddressingAction != null) {
                new ActionCallback(wsAddressingAction).doWithMessage(message);
            }
        }
View Full Code Here

Examples of org.springframework.ws.soap.addressing.client.ActionCallback

            // Add WS-Addressing Action to webservice request (the WS-Addressing
            // 'to' header will default to the URL of the connection).
            // Note that exchange header takes precedence over endpoint option
            URI wsAddressingAction = wsAddressingActionHeader != null ? wsAddressingActionHeader : configuration.getWsAddressingAction();
            if (wsAddressingAction != null) {
                new ActionCallback(wsAddressingAction).doWithMessage(message);
            }
        }
View Full Code Here

Examples of org.springframework.ws.soap.addressing.client.ActionCallback

            // Add WS-Addressing Action to webservice request (the WS-Addressing
            // 'to' header will default to the URL of the connection).
            // Note that exchange header takes precedence over endpoint option
            URI wsAddressingAction = wsAddressingActionHeader != null ? wsAddressingActionHeader : endpoint.getConfiguration().getWsAddressingAction();
            if (wsAddressingAction != null) {
                new ActionCallback(wsAddressingAction).doWithMessage(message);
            }
        }
View Full Code Here

Examples of org.springframework.ws.soap.addressing.client.ActionCallback

        return newChannelParams();
    }

    @Test
    public void endpointSender() throws Exception {
        ActionCallback requestCallback = channelIn("http://sender-default.com");

        webServiceTemplate.sendSourceAndReceiveToResult(source, requestCallback, result);

        Assertions.assertThat(channelOut().getTo()).isEqualTo(new URI("mailto:andrej@chocolatejar.eu"));
        Assertions.assertThat(endpointCamelDirect.getReceivedCounter()).isZero();
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.