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


      SecurityResult 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

    private JMenu buildFileMenu() {
        JMenu fileMenu = new JMenu("File");
        fileMenu.setMnemonic(KeyEvent.VK_F);

        ActionList actions = ActionListBuilder.buildActions(workspace);
        actions.removeAction(actions.getActionCount() - 1);

        ActionSupport.addActions(actions, fileMenu);

        fileMenu.add(SoapUIPreferencesAction.getInstance());
        fileMenu.add(new SavePreferencesAction());
View Full Code Here

                row = statisticsTable.convertRowIndexToModel(row);

                ModelItem modelItem = row == statisticsTable.getRowCount() - 1 ? loadTest.getTestCase() : loadTest
                        .getStatisticsModel().getTestStepAtRow(row);

                ActionList actions = ActionListBuilder.buildActions(modelItem);
                if (actions != null) {
                    actions.performDefaultAction(new ActionEvent(statisticsTable, 0, null));
                }
            }
        }
View Full Code Here

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

        testSuite.addTestSuiteListener(testSuiteListener);

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

        DragSource dragSource = DragSource.getDefaultDragSource();

        SoapUIDragAndDropHandler dragAndDropHandler = new SoapUIDragAndDropHandler(
View Full Code Here

            progressBar.setValue(0);
            progressBar.setString("");
        }

        private void initPopup(WsdlTestCase testCase) {
            ActionList actions = ActionListBuilder.buildActions(testCase);
            actions.insertAction(
                    SwingActionDelegate.createDelegate(AddNewTestCaseAction.SOAPUI_ACTION_ID, testSuite, null, null), 0);
            actions.insertAction(ActionSupport.SEPARATOR_ACTION, 1);

            setComponentPopupMenu(ActionSupport.buildPopup(actions));
        }
View Full Code Here

        XForm form = newDialogBuilder.createForm("");
        uriLabelKey = messages.get("Form.URI.Label");
        exampleUri = messages.get("Form.Example.URI");
        form.addTextField(uriLabelKey, messages.get("Form.URI.Description"), XForm.FieldType.TEXT);

        ActionList actions = newDialogBuilder.buildOkCancelHelpActions(helpUrl);

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

        dialog = newDialogBuilder.buildDialog(actions, messages.get("Description"), UISupport.TOOL_ICON);
        dialog.setValue(uriLabelKey, exampleUri);
        XFormField uriField = dialog.getFormField(uriLabelKey);
View Full Code Here

                    if (e.getKeyChar() == KeyEvent.VK_ENTER) {
                        if (assertion.isConfigurable()) {
                            assertion.configure();
                        }
                    } else {
                        ActionList actions = ActionListBuilder.buildActions(assertion);
                        if (actions != null) {
                            actions.dispatchKeyEvent(e);
                        }
                    }
                } else {
                    TestAssertion[] testAssertion = new TestAssertion[indices.length];
                    for (int c = 0; c < indices.length; c++) {
                        testAssertion[c] = assertionListModel.getAssertionAt(indices[c]);
                    }

                    ActionList actions = ActionListBuilder.buildMultiActions(testAssertion);
                    ActionSupport.addActions(actions, assertionListPopup);

                    if (actions != null) {
                        actions.dispatchKeyEvent(e);
                    }
                }
            }
        });
View Full Code Here

                return;
            }

            if (mainTree.getSelectionCount() == 1) {
                SoapUITreeNode lastPathComponent = (SoapUITreeNode) selectionPath.getLastPathComponent();
                ActionList actions = lastPathComponent.getActions();
                if (actions != null) {
                    actions.dispatchKeyEvent(e);
                }

                if (!e.isConsumed()) {
                    KeyStroke ks = KeyStroke.getKeyStrokeForEvent(e);
                    if (ks.equals(UISupport.getKeyStroke("alt C"))) {
                        mainTree.collapsePath(selectionPath);
                        e.consume();
                    } else if (ks.equals(UISupport.getKeyStroke("alt E"))) {
                        mainTree.collapsePath(selectionPath);
                        int row = mainTree.getSelectionRows()[0];
                        TreePath nextPath = mainTree.getPathForRow(row + 1);

                        TreePath path = mainTree.getPathForRow(row);
                        while (path != null && !path.equals(nextPath)) {
                            mainTree.expandRow(row);
                            path = mainTree.getPathForRow(++row);
                        }

                        e.consume();
                    }
                }
            } else {
                TreePath[] selectionPaths = mainTree.getSelectionPaths();
                List<ModelItem> targets = new ArrayList<ModelItem>();
                for (TreePath treePath : selectionPaths) {
                    SoapUITreeNode node = (SoapUITreeNode) treePath.getLastPathComponent();
                    targets.add(node.getModelItem());
                }

                if (targets.size() > 0) {
                    ActionList actions = ActionListBuilder
                            .buildMultiActions(targets.toArray(new ModelItem[targets.size()]));
                    if (actions.getActionCount() > 0) {
                        actions.dispatchKeyEvent(e);
                    }
                }
            }
        }
View Full Code Here

                    SoapUITreeNode node = (SoapUITreeNode) treePath.getLastPathComponent();
                    targets.add(node.getModelItem());
                }

                if (targets.size() > 0) {
                    ActionList actions = ActionListBuilder
                            .buildMultiActions(targets.toArray(new ModelItem[targets.size()]));
                    if (actions.getActionCount() > 0) {
                        JPopupMenu popup = new JPopupMenu();
                        ActionSupport.addActions(actions, popup);
                        showToolTipLessPopupMenu(popup, e.getX(), e.getY());
                    }
                }
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.