Examples of ActionList


Examples of cc.co.evenprime.bukkit.nocheat.actions.types.ActionList

        return actions.toArray(new Action[actions.size()]);
    }

    public ActionList createActionList(String definition, String permission) {
        ActionList list = new ActionList(permission);

        boolean first = true;

        for(String s : definition.split("vl>")) {
            s = s.trim();

            if(s.length() == 0) {
                first = false;
                continue;
            }

            try {
                Integer vl;
                String def;
                if(first) {
                    first = false;
                    vl = 0;
                    def = s;
                } else {
                    String[] listEntry = s.split("\\s+", 2);
                    vl = Integer.parseInt(listEntry[0]);
                    def = listEntry[1];
                }
                list.setActions(vl, createActions(def.split("\\s+")));
            } catch(Exception e) {
                System.out.println("NoCheat couldn't parse action definition 'vl:" + s + "'");
            }
        }
View Full Code Here

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

          e.printStackTrace();
        }
      }
    }

    ActionList defaultActions = formAnnotation.helpUrl() == null ? builder.buildOkCancelActions() : builder
        .buildOkCancelHelpActions( formAnnotation.helpUrl() );

    if( actions == null )
      actions = defaultActions;
    else
View Full Code Here

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

          e.printStackTrace();
        }
      }
    }

    ActionList defaultActions = formAnnotation.helpUrl() == null ? null : builder.buildHelpActions( formAnnotation
        .helpUrl() );

    if( actions == null )
      actions = defaultActions;
    else
    {
      // since there is only one action do it like this
      actions.insertAction( defaultActions.getActionAt( 0 ), 0 );
    }
    XFormDialog dialog = builder.buildDialog( actions, messages.get( formAnnotation.description() ),
        UISupport.createImageIcon( formAnnotation.icon() ) );

    return dialog;
View Full Code Here

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

          SoapUI.logError( e );
        }
      }
    }

    ActionList defaultActions = formAnnotation.helpUrl().length() == 0 ? builder.buildOkCancelActions() : builder
        .buildOkCancelHelpActions( formAnnotation.helpUrl() );

    if( actions == null )
      actions = defaultActions;
    else
View Full Code Here

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

          SoapUI.logError( e );
        }
      }
    }

    ActionList defaultActions = formAnnotation.helpUrl().length() == 0 ? null : builder
        .buildHelpActions( formAnnotation.helpUrl() );

    if( actions == null )
      actions = defaultActions;
    else
    {
      defaultActions.addActions( actions );
      actions = defaultActions;
    }

    XFormDialog dialog = builder.buildDialog( actions, formAnnotation.description(),
        UISupport.createImageIcon( formAnnotation.icon() ) );
View Full Code Here

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

  private JMenu buildFileMenu()
  {
    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

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

      private DefaultActionList defaultActions;

      @Override
      protected ActionList getActionsForRow( JList list, int row )
      {
        ActionList actions = super.getActionsForRow( list, row );

        actions.insertAction( SwingActionDelegate.createDelegate( NewMockResponseAction.SOAPUI_ACTION_ID,
            getModelItem(), null, "/addToMockService.gif" ), 0 );

        actions.insertAction( SwingActionDelegate.createDelegate(
            OpenRequestForMockOperationAction.SOAPUI_ACTION_ID, getModelItem(), null, "/open_request.gif" ), 1 );

        if( actions.getActionCount() > 2 )
          actions.insertAction( ActionSupport.SEPARATOR_ACTION, 2 );

        return actions;
      }

      @Override
View Full Code Here

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

    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

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

      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

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

          UISupport.selectAndShow( testCase );
          e.consume();
        }
        else
        {
          ActionList actions = ActionListBuilder.buildActions( testCase );
          if( actions != null )
            actions.dispatchKeyEvent( e );
        }
      }
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.