Search in sources :

Example 1 with UserTemplate

use of com.ramussoft.pb.dmaster.UserTemplate in project ramus by Vitaliy-Yakovchuk.

the class FunctionBeansClipboard method setCopy.

public static void setCopy(Function function, DataPlugin dataPlugin, SectorRefactor refactor, List<Function> functions) {
    UserTemplate template = new UserTemplate(function, dataPlugin, "", refactor, functions);
    ByteArrayOutputStream stream = new ByteArrayOutputStream();
    try {
        template.saveToStream(stream);
        data = stream.toByteArray();
    } catch (IOException e) {
        e.printStackTrace();
    }
}
Also used : UserTemplate(com.ramussoft.pb.dmaster.UserTemplate) ByteArrayOutputStream(java.io.ByteArrayOutputStream) IOException(java.io.IOException)

Aggregations

UserTemplate (com.ramussoft.pb.dmaster.UserTemplate)1 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 IOException (java.io.IOException)1