Examples of SwingActionDelegate


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

        DefaultActionMapping<WorkspaceImpl> mapping = new DefaultActionMapping<WorkspaceImpl>(
                SwitchWorkspaceAction.SOAPUI_ACTION_ID, null, null, false, filePath);
        mapping.setName(workspace.getName());
        mapping.setDescription("Switches to the [" + workspace.getName() + "] workspace");

        AbstractAction delegate = new SwingActionDelegate(mapping, SoapUI.getWorkspace());
        recentWorkspacesMenu.add(new JMenuItem(delegate), recentWorkspacesMenu.getItemCount() - 2);

        recentWorkspacesMenu.getItem(recentWorkspacesMenu.getItemCount() - 1).setEnabled(true);
        System.out.println(recentWorkspacesMenu.getItem(recentWorkspacesMenu.getItemCount() - 1).getText());
View Full Code Here

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

                }

                mapping.setName(wsName);
                mapping.setDescription("Switches to the [" + wsName + "] workspace");

                AbstractAction delegate = new SwingActionDelegate(mapping, SoapUI.getWorkspace());
                recentWorkspacesMenu.add(new JMenuItem(delegate));
            }
        } else {
            recentWorkspacesMenu.add(EMPTYMARKER).setEnabled(false);
        }
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.