Example usage for org.apache.http.entity.mime MultipartEntityBuilder toString

List of usage examples for org.apache.http.entity.mime MultipartEntityBuilder toString

Introduction

In this page you can find the example usage for org.apache.http.entity.mime MultipartEntityBuilder toString.

Prototype

public String toString() 

Source Link

Document

Returns a string representation of the object.

Usage

From source file:mesquite.zephyr.RAxMLRunnerCIPRes.RAxMLRunnerCIPRes.java

public void actionPerformed(ActionEvent e) {
    if (e.getActionCommand().equalsIgnoreCase("composeRAxMLCommand")) {

        MultipartEntityBuilder arguments = MultipartEntityBuilder.create();
        StringBuffer sb = new StringBuffer();
        getArguments(arguments, sb, "fileName", proteinModelField.getText(), dnaModelField.getText(),
                otherOptionsField.getText(), bootStrapRepsField.getValue(), bootstrapSeed,
                numRunsField.getValue(), outgroupTaxSetString, null, false);
        String command = externalProcRunner.getExecutableCommand() + arguments.toString();
        commandLabel.setText("This command will be used by CIPRes to run RAxML:");
        commandField.setText(command);/*  w  w w.j  a v  a2s .  com*/
    } else if (e.getActionCommand().equalsIgnoreCase("clearCommand")) {
        commandField.setText("");
        commandLabel.setText("");
    }
}