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

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


            TestStepResult result = logListModel.getTestStepResultAt(row);
            if (result == null)
                return;

            ActionList actions = result.getActions();

            if (actions == null || actions.getActionCount() == 0)
                return;

            JPopupMenu popup = ActionSupport.buildPopup(actions);
            UISupport.showPopup(popup, testLogList, e.getPoint());
        }
View Full Code Here


        add(Box.createVerticalGlue());
        setBackground(Color.WHITE);

        testSuite.addProjectListener(testSuiteListener);

        ActionList actions = ActionListBuilder.buildActions(testSuite);
        actions.removeAction(0);
        actions.removeAction(0);
        setComponentPopupMenu(ActionSupport.buildPopup(actions));

        DragSource dragSource = DragSource.getDefaultDragSource();

        SoapUIDragAndDropHandler dragAndDropHandler = new SoapUIDragAndDropHandler(new TestSuiteListDragAndDropable(
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

        }
        return classpath.toString();
    }

    protected ActionList buildDefaultActions(String helpUrl, T modelItem) {
        ActionList actions = new DefaultActionList("Actions");

        if (helpUrl != null) {
            actions.addAction(new ShowOnlineHelpAction(helpUrl));
            actions.addSeparator();
        }

        Action runAction = createRunOption(modelItem);
        actions.addAction(runAction);
        actions.setDefaultAction(runAction);
        actions.addAction(new CloseAction(modelItem));

        if (toolsSettingsAction != null) {
            actions.addAction(toolsSettingsAction);
        }

        return actions;
    }
View Full Code Here

        mainForm.addTextField(EJB_LINK, "The name of the source EJB to link to", XForm.FieldType.TEXT);
        mainForm.addTextField(SERVLET_LINK, "The name of the source Servlet to link to", XForm.FieldType.TEXT);

        buildArgsForm(builder, false, "wstools");

        ActionList actions = buildDefaultActions(HelpUrls.WSTOOLS_HELP_URL, project);
        actions.addAction(new ShowConfigFileAction("JBossWS Java2Wsdl", "Contents of generated wsconfig.xml file") {
            protected String getConfigFile() {
                ConfigurationDocument configDocument = createConfigFile(getDialog().getValues());
                return configDocument.toString();
            }
        });
View Full Code Here

        mainForm.addTextField(OUTPUT, "The root directory for all emitted files.", XForm.FieldType.PROJECT_FOLDER);
        mainForm.addTextField(PACKAGE, "The target package for generated classes", XForm.FieldType.JAVA_PACKAGE);

        buildArgsForm(builder, true, "wsa");

        ActionList actions = buildDefaultActions(HelpUrls.ORACLEWSA_HELP_URL, modelItem);
        return builder.buildDialog(actions, "Specify arguments for Oracle wsa.jar genProxy functionality",
                UISupport.TOOL_ICON);
    }
View Full Code Here

        mainForm.addTextField(EJB_LINK, "The name of the source EJB to link to", XForm.FieldType.TEXT);
        mainForm.addTextField(SERVLET_LINK, "The name of the source Servlet to link to", XForm.FieldType.TEXT);

        buildArgsForm(builder, false, "wstools");

        ActionList actions = buildDefaultActions(HelpUrls.WSTOOLS_HELP_URL, modelItem);
        actions.addAction(new ShowConfigFileAction("JBossWS Wsdl2Java", "Contents of generated wsconfig.xml file") {
            protected String getConfigFile() {
                ConfigurationDocument configDocument = createConfigFile(getDialog().getValues());
                return configDocument.toString();
            }
        });
View Full Code Here

        XForm advForm = builder.createForm("Advanced");
        advForm.addNameSpaceTable(NAMESPACE_MAPPING, modelItem);

        buildArgsForm(builder, false, "wscompile");

        ActionList actions = buildDefaultActions(HelpUrls.WSCOMPILE_HELP_URL, modelItem);
        actions.addAction(new WSCompileShowConfigFileAction("JAX-RPC wscompile",
                "Contents of generated config.xml file", modelItem));

        return builder.buildDialog(actions, "Specify arguments for JAX-RPC wscompile", UISupport.TOOL_ICON);
    }
View Full Code Here

        appendField = mainForm.addCheckBox(APPEND, "append to existing file");
        appendField.setEnabled(false);
        buildArgsForm(builder, false, "wstools");

        ActionList actions = buildDefaultActions(HelpUrls.WSTOOLS_HELP_URL, modelItem);
        actions.addAction(new JBossWSShowConfigFileAction("JBossWS Wsdl2Java",
                "Contents of generated wsconfig.xml file", modelItem));
        return builder.buildDialog(actions, "Specify arguments for JBossWS wstools wsdl2java functionality",
                UISupport.TOOL_ICON);
    }
View Full Code Here

        int selectedIndex = list.getSelectedRow();
        if (selectedIndex == -1) {
            return;
        }

        ActionList actions = getActionsForRow(list, selectedIndex);

        if (actions != null) {
            actions.performDefaultAction(new ActionEvent(this, 0, null));
        }
    }
View Full Code Here

TOP

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

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.