Package com.eviware.soapui.impl.wsdl.support

Examples of com.eviware.soapui.impl.wsdl.support.WsdlAttachment


  public void setValueAt( Object aValue, int rowIndex, int columnIndex )
  {
    if( !( container instanceof MutableAttachmentContainer ) )
      return;

    WsdlAttachment att = ( WsdlAttachment )container.getAttachmentAt( rowIndex );
    if( columnIndex == 0 )
    {
      if( att.isCached() )
        att.setName( ( String )aValue );
      else
        att.setUrl( aValue.toString() );
    }
    else if( columnIndex == 1 )
      att.setContentType( ( String )aValue );
    else if( columnIndex == 3 )
      att.setPart( ( String )aValue );
    else if( columnIndex == 5 )
      att.setContentID( ( String )aValue );

    fireTableRowsUpdated( rowIndex, rowIndex );
  }
View Full Code Here


  {
    int selectedRow = fileTable.getSelectedRow();
    if( selectedRow == -1 )
      return;

    WsdlAttachment attachment = ( WsdlAttachment )tableModel.getAttachmentAt( selectedRow );
    if( attachment == null )
      return;

    File file = UISupport.getFileDialogs().open( this, "Reload Attachment..", "*", "Any File", attachment.getUrl() );
    if( file != null )
    {
      Boolean retval = UISupport.confirmOrCancel( "Cache attachment in request?", "Reload Attachment" );
      if( retval == null )
        return;

      try
      {
        attachment.reload( file, retval );
        tableModel.fireTableRowsUpdated( selectedRow, selectedRow );
      }
      catch( IOException e )
      {
        UISupport.showErrorMessage( e );
View Full Code Here

    public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
        if (!(container instanceof MutableAttachmentContainer)) {
            return;
        }

        WsdlAttachment att = (WsdlAttachment) container.getAttachmentAt(rowIndex);
        if (columnIndex == 0) {
            if (att.isCached()) {
                att.setName((String) aValue);
            } else {
                att.setUrl(aValue.toString());
            }
        } else if (columnIndex == 1) {
            att.setContentType((String) aValue);
        } else if (columnIndex == 3) {
            att.setPart((String) aValue);
        } else if (columnIndex == 5) {
            att.setContentID((String) aValue);
        }

        fireTableRowsUpdated(rowIndex, rowIndex);
    }
View Full Code Here

        int selectedRow = fileTable.getSelectedRow();
        if (selectedRow == -1) {
            return;
        }

        WsdlAttachment attachment = (WsdlAttachment) tableModel.getAttachmentAt(selectedRow);
        if (attachment == null) {
            return;
        }

        File file = UISupport.getFileDialogs().open(this, "Reload Attachment..", "*", "Any File", attachment.getUrl());
        if (file != null) {
            Boolean retval = UISupport.confirmOrCancel("Cache attachment in request?", "Reload Attachment");
            if (retval == null) {
                return;
            }

            try {
                attachment.reload(file, retval);
                tableModel.fireTableRowsUpdated(selectedRow, selectedRow);
            } catch (IOException e) {
                UISupport.showErrorMessage(e);
            }
        }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.support.WsdlAttachment

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.