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

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


          continue;

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

        AbstractAction delegate = new SwingActionDelegate( mapping, SoapUI.getWorkspace() );
        recentWorkspacesMenu.add( new JMenuItem( delegate ) );
      }
    }
    else
    {
View Full Code Here


            ImportWsdlProjectAction.SOAPUI_ACTION_ID, null, null, false, filePath );
        String wsName = history.get( filePath );
        mapping.setName( wsName );
        mapping.setDescription( "Switches to the [" + wsName + "] project" );

        AbstractAction delegate = new SwingActionDelegate( mapping, SoapUI.getWorkspace() );
        recentProjectsMenu.add( new JMenuItem( delegate ) );
      }
    }
    else
    {
View Full Code Here

      Action action = item.getAction();
      if( !( action instanceof SwingActionDelegate ) )
        continue;

      SwingActionDelegate actionDelegate = ( SwingActionDelegate )action;
      if( actionDelegate == null )
        continue;

      SoapUIActionMapping mapping = actionDelegate.getMapping();
      if( filePath.equals( mapping.getParam() ) )
      {
        recentProjectsMenu.remove( c );
        break;
      }
View Full Code Here

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

    AbstractAction delegate = new SwingActionDelegate( mapping, SoapUI.getWorkspace() );

    recentProjectsMenu.add( new JMenuItem( delegate ), recentProjectsMenu.getItemCount() - 2 );

    recentProjectsMenu.getItem( recentProjectsMenu.getItemCount() - 1 ).setEnabled( true );
View Full Code Here

      Action action = item.getAction();
      if( !( action instanceof SwingActionDelegate ) )
        continue;

      SwingActionDelegate actionDelegate = ( SwingActionDelegate )action;
      if( actionDelegate == null )
        continue;

      SoapUIActionMapping mapping = actionDelegate.getMapping();
      if( filePath.equals( mapping.getParam() ) )
      {
        recentWorkspacesMenu.remove( c );
        break;
      }
View Full Code Here

    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

                        ImportWsdlProjectAction.SOAPUI_ACTION_ID, null, null, false, filePath);
                String wsName = entry.getValue();
                mapping.setName(wsName);
                mapping.setDescription("Switches to the [" + wsName + "] project");

                AbstractAction delegate = new SwingActionDelegate(mapping, SoapUI.getWorkspace());
                recentProjectsMenu.add(new JMenuItem(delegate));
            }
        } else {
            recentProjectsMenu.add(EMPTYMARKER).setEnabled(false);
        }
View Full Code Here

            Action action = item.getAction();
            if (!(action instanceof SwingActionDelegate)) {
                continue;
            }

            SwingActionDelegate actionDelegate = (SwingActionDelegate) action;
            if (actionDelegate == null) {
                continue;
            }

            SoapUIActionMapping mapping = actionDelegate.getMapping();
            if (filePath.equals(mapping.getParam())) {
                recentProjectsMenu.remove(c);
                break;
            }
        }
View Full Code Here

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

        AbstractAction delegate = new SwingActionDelegate(mapping, SoapUI.getWorkspace());

        recentProjectsMenu.add(new JMenuItem(delegate), recentProjectsMenu.getItemCount() - 2);

        recentProjectsMenu.getItem(recentProjectsMenu.getItemCount() - 1).setEnabled(true);
View Full Code Here

            Action action = item.getAction();
            if (!(action instanceof SwingActionDelegate)) {
                continue;
            }

            SwingActionDelegate actionDelegate = (SwingActionDelegate) action;
            if (actionDelegate == null) {
                continue;
            }

            SoapUIActionMapping mapping = actionDelegate.getMapping();
            if (filePath.equals(mapping.getParam())) {
                recentWorkspacesMenu.remove(c);
                break;
            }
        }
View Full Code Here

TOP

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

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.