Package com.eviware.soapui.support

Examples of com.eviware.soapui.support.MessageSupport


    if( formAnnotation == null )
    {
      throw new RuntimeException( "formClass is not annotated correctly.." );
    }

    MessageSupport messages = MessageSupport.getMessages( formClass );

    XFormDialogBuilder builder = XFormFactory.createDialogBuilder( messages.get( formAnnotation.name() ) );
    XForm form = builder.createForm( "Basic" );

    for( Field field : formClass.getFields() )
    {
      AField fieldAnnotation = field.getAnnotation( AField.class );
      if( fieldAnnotation != null )
      {
        try
        {
          addFormField( form, field, fieldAnnotation, messages );
        }
        catch( Exception e )
        {
          e.printStackTrace();
        }
      }
    }

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

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

    XFormDialog dialog = builder.buildDialog( actions, messages.get( formAnnotation.description() ),
        UISupport.createImageIcon( formAnnotation.icon() ) );

    return dialog;
  }
View Full Code Here


    if( formAnnotation == null )
    {
      throw new RuntimeException( "formClass is not annotated correctly.." );
    }

    MessageSupport messages = MessageSupport.getMessages( formClass );

    XFormDialogBuilder builder = XFormFactory.createDialogBuilder( messages.get( formAnnotation.name() ) );
    XForm form = builder.createForm( "Basic" );

    for( Field field : formClass.getFields() )
    {
      AField fieldAnnotation = field.getAnnotation( AField.class );
      if( fieldAnnotation != null )
      {
        try
        {
          addFormField( form, field, fieldAnnotation, messages );
        }
        catch( Exception e )
        {
          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

    if( formAnnotation == null )
    {
      throw new RuntimeException( "formClass is not annotated correctly.." );
    }

    MessageSupport messages = MessageSupport.getMessages( tabbedFormClass );
    XFormDialogBuilder builder = XFormFactory.createDialogBuilder( formAnnotation.name() );

    for( Field field : tabbedFormClass.getFields() )
    {
      APage pageAnnotation = field.getAnnotation( APage.class );
View Full Code Here

    if( formAnnotation == null )
    {
      throw new RuntimeException( "formClass is not annotated correctly.." );
    }

    MessageSupport messages = MessageSupport.getMessages( tabbedFormClass );
    XFormDialogBuilder builder = XFormFactory.createDialogBuilder( formAnnotation.name() );

    for( Field field : tabbedFormClass.getFields() )
    {
      APage pageAnnotation = field.getAnnotation( APage.class );
View Full Code Here

    if( formAnnotation == null )
    {
      throw new RuntimeException( "formClass is not annotated correctly.." );
    }

    MessageSupport messages = MessageSupport.getMessages( tabbedFormClass );
    XFormDialogBuilder builder = XFormFactory.createDialogBuilder( formAnnotation.name() );

    for( Field field : tabbedFormClass.getFields() )
    {
      APage pageAnnotation = field.getAnnotation( APage.class );
View Full Code Here

        AForm formAnnotation = formClass.getAnnotation(AForm.class);
        if (formAnnotation == null) {
            throw new RuntimeException("formClass is not annotated correctly..");
        }

        MessageSupport messages = MessageSupport.getMessages(formClass);

        XFormDialogBuilder builder = XFormFactory.createDialogBuilder(messages.get(formAnnotation.name()));
        XForm form = createForm(builder, layout);

        for (Field field : formClass.getFields()) {
            AField fieldAnnotation = field.getAnnotation(AField.class);
            if (fieldAnnotation != null) {
                try {
                    addFormField(form, field, fieldAnnotation, messages);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        }

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

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

        XFormDialog dialog = builder.buildDialog(actions, messages.get(formAnnotation.description()),
                UISupport.createImageIcon(formAnnotation.icon()));

        return dialog;
    }
View Full Code Here

        AForm formAnnotation = formClass.getAnnotation(AForm.class);
        if (formAnnotation == null) {
            throw new RuntimeException("formClass is not annotated correctly..");
        }

        MessageSupport messages = MessageSupport.getMessages(formClass);

        XFormDialogBuilder builder = XFormFactory.createDialogBuilder(messages.get(formAnnotation.name()));
        XForm form = createForm(builder, null);

        for (Field field : formClass.getFields()) {
            AField fieldAnnotation = field.getAnnotation(AField.class);
            if (fieldAnnotation != null) {
                try {
                    addFormField(form, field, fieldAnnotation, messages);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        }

        ActionList defaultActions = StringUtils.isBlank(formAnnotation.helpUrl()) ? 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

        AForm formAnnotation = tabbedFormClass.getAnnotation(AForm.class);
        if (formAnnotation == null) {
            throw new RuntimeException("formClass is not annotated correctly..");
        }

        MessageSupport messages = MessageSupport.getMessages(tabbedFormClass);
        XFormDialogBuilder builder = XFormFactory.createDialogBuilder(formAnnotation.name());

        for (Field field : tabbedFormClass.getFields()) {
            APage pageAnnotation = field.getAnnotation(APage.class);
            if (pageAnnotation != null) {
View Full Code Here

        AForm formAnnotation = tabbedFormClass.getAnnotation(AForm.class);
        if (formAnnotation == null) {
            throw new RuntimeException("formClass is not annotated correctly..");
        }

        MessageSupport messages = MessageSupport.getMessages(tabbedFormClass);
        XFormDialogBuilder builder = XFormFactory.createDialogBuilder(formAnnotation.name());

        for (Field field : tabbedFormClass.getFields()) {
            APage pageAnnotation = field.getAnnotation(APage.class);
            if (pageAnnotation != null) {
View Full Code Here

        AForm formAnnotation = tabbedFormClass.getAnnotation(AForm.class);
        if (formAnnotation == null) {
            throw new RuntimeException("formClass is not annotated correctly..");
        }

        MessageSupport messages = MessageSupport.getMessages(tabbedFormClass);
        XFormDialogBuilder builder = XFormFactory.createDialogBuilder(formAnnotation.name());

        for (Field field : tabbedFormClass.getFields()) {
            APage pageAnnotation = field.getAnnotation(APage.class);
            if (pageAnnotation != null) {
View Full Code Here

TOP

Related Classes of com.eviware.soapui.support.MessageSupport

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.