Package com.eviware.soapui.support.action

Examples of com.eviware.soapui.support.action.SoapUIAction


    {
      SoapUIActionMapping mapping = ( SoapUIActionMapping )actionMappings.get( c );
      if( mapping == null )
        continue;

      SoapUIAction action = mapping.getAction();

      if( action instanceof SeperatorAction )
      {
        if( !prevWasSeparator )
        {
          actions.addAction( ActionSupport.SEPARATOR_ACTION );
        }
        prevWasSeparator = true;
      }
      else if( action instanceof SoapUIActionGroupAction )
      {
        DefaultActionList subActions = new DefaultActionList( mapping.getName() );
        SoapUIActionGroup subGroup = ( ( SoapUIActionGroupAction )action ).getActionGroup();
        addMultiActions( modelItems, subActions, subGroup );
        ActionSupport.ActionListAction actionListAction = new ActionSupport.ActionListAction( subActions );
        actions.addAction( actionListAction );
        actionListAction.setEnabled( mapping.isEnabled() );
        prevWasSeparator = false;
      }
      else if( action instanceof SoapUIMultiAction )
      {
        List<ModelItem> targets = new ArrayList<ModelItem>();
        for( ModelItem target : modelItems )
        {
          if( action.applies( target ) )
          {
            targets.add( target );
          }
        }
View Full Code Here


      {
        JComponent component = null;

        if( action instanceof SoapUIActionMarker )
        {
          SoapUIAction soapUIAction = ( ( SoapUIActionMarker )action ).getSoapUIAction();
          component = ActionComponentRegistry.buildActionComponent( soapUIAction, modelItem );
          actionMap.put( soapUIAction.getId(), action );
        }

        if( component != null )
          add( component );
        else
View Full Code Here

            SoapUIActionMapping mapping = (SoapUIActionMapping) actionMappings.get(c);
            if (mapping == null) {
                continue;
            }

            SoapUIAction action = mapping.getAction();

            if (action instanceof SeperatorAction) {
                if (!prevWasSeparator) {
                    actions.addAction(ActionSupport.SEPARATOR_ACTION);
                }
                prevWasSeparator = true;
            } else if (action instanceof SoapUIActionGroupAction) {
                DefaultActionList subActions = new DefaultActionList(mapping.getName());
                SoapUIActionGroup subGroup = ((SoapUIActionGroupAction) action).getActionGroup();
                addMultiActions(modelItems, subActions, subGroup);
                ActionSupport.ActionListAction actionListAction = new ActionSupport.ActionListAction(subActions);
                actions.addAction(actionListAction);
                actionListAction.setEnabled(mapping.isEnabled());
                prevWasSeparator = false;
            } else if (action instanceof SoapUIMultiAction) {
                List<ModelItem> targets = new ArrayList<ModelItem>();
                for (ModelItem target : modelItems) {
                    if (action.applies(target)) {
                        targets.add(target);
                    }
                }

                if (targets.size() > 0) {
View Full Code Here

                // menu.add( subMenu);
            } else if (action != null) {
                JComponent component = null;

                if (action instanceof SoapUIActionMarker) {
                    SoapUIAction soapUIAction = ((SoapUIActionMarker) action).getSoapUIAction();
                    component = ActionComponentRegistry.buildActionComponent(soapUIAction, modelItem);
                    actionMap.put(soapUIAction.getId(), action);
                }

                if (component != null) {
                    add(component);
                } else {
View Full Code Here

TOP

Related Classes of com.eviware.soapui.support.action.SoapUIAction

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.