Package com.eviware.soapui.support.action.swing

Examples of com.eviware.soapui.support.action.swing.DefaultActionList


        return mockRequest;
    }

    public ActionList getActions() {
        if (actions == null) {
            actions = new DefaultActionList("MockResult");
        }

        return actions;
    }
View Full Code Here


        }
    }

    public ActionList getActions() {
        if (getModelItem() instanceof PropertiesModelItem && holder instanceof MutableTestPropertyHolder) {
            DefaultActionList actions = new DefaultActionList();
            actions.addAction(new AddPropertyAction());
            return actions;
        }

        return super.getActions();
    }
View Full Code Here

            }
        }
    }

    public ActionList buildprevNextCancelActions() {
        DefaultActionList actions = new DefaultActionList("Actions");
        actions.addAction(new NextAction());
        actions.addAction(new CancelAction());
        return actions;
    }
View Full Code Here

        return null;
    }

    public void addAction(Action action) {
        DefaultActionList actions = new DefaultActionList();
        actions.addAction(action);
        buttons.addActions(actions);
    }
View Full Code Here

    public void dispose() {
        dialog.dispose();
    }

    private void initActions(Action helpAction) {
        actions = new DefaultActionList();
        actions.addAction(new BackAction());
        actions.addAction(new NextAction());
        actions.addAction(new CancelAction());
        actions.addAction(new FinishAction());
        if (helpAction != null) {
View Full Code Here

            actions.addAction(helpAction);
        }
    }

    public void addAction(Action action) {
        DefaultActionList actions = new DefaultActionList();
        actions.addAction(action);
        buttons.addActions(actions);
    }
View Full Code Here

            startSignal.countDown();
        }
    }

    public void addAction(Action action) {
        DefaultActionList actions = new DefaultActionList();
        actions.addAction(action);
        buttons.addActions(actions);
    }
View Full Code Here

            private DefaultActionList defaultActions;

            @Override
            protected ActionList getDefaultActions() {
                if (defaultActions == null) {
                    defaultActions = new DefaultActionList();
                    defaultActions.addAction(SwingActionDelegate.createDelegate(NewMockResponseAction.SOAPUI_ACTION_ID,
                            getModelItem(), null, getAddToMockOperationIconPath()));
                }

                return defaultActions;
View Full Code Here

    public StandaloneDesktop(Workspace workspace) {
        super(workspace);

        buildUI();

        actions = new DefaultActionList("Desktop");
        actions.addAction(closeCurrentAction);
        actions.addAction(closeOtherAction);
        actions.addAction(closeAllAction);

        // Setting Mac-like color for all platforms pending
View Full Code Here

        super("Clone TestSuite", "Clones this TestSuite");
    }

    public void perform(final WsdlTestSuite testSuite, Object param) {
        if (dialog == null) {
            ActionList actions = new DefaultActionList();

            final AbstractAction cloneAction = new AbstractAction("Clone") {
                @Override
                public void actionPerformed(ActionEvent e) {
                    if (dialog.validate()) {
                        dialog.setVisible(false);

                        String targetProjectName = dialog.getValue(Form.PROJECT);
                        String name = dialog.getValue(Form.NAME);

                        WsdlProject project = testSuite.getProject();

                        // within same project?
                        boolean move = dialog.getBooleanValue(Form.MOVE);
                        boolean cloneDescription = dialog.getBooleanValue(Form.CLONE_DESCRIPTION);
                        String description = testSuite.getDescription();
                        if (!cloneDescription) {
                            description = dialog.getValue(Form.DESCRIPTION);
                        }

                        TestSuite result;

                        if (targetProjectName.equals(testSuite.getProject().getName())) {
                            result = cloneTestSuiteWithinProject(testSuite, name, project, description);
                        } else {
                            result = cloneToAnotherProject(testSuite, targetProjectName, name, move, description);
                        }

                        if (move && result != null) {
                            testSuite.getProject().removeTestSuite(testSuite);
                        }
                    }
                }
            };
            actions.addAction(cloneAction);

            actions.addAction(new AbstractAction("Cancel") {
                @Override
                public void actionPerformed(ActionEvent e) {
                    dialog.setVisible(false);
                }
            });
            actions.setDefaultAction(cloneAction);


            dialog = ADialogBuilder.buildDialog(Form.class, actions, false);
        }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.support.action.swing.DefaultActionList

Copyright © 2018 www.massapicom. 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.