@PluginImportMethod

Applies to ReadyAPI 3.10, last modified on October 07, 2021

Creates a custom Project Importer to import project definitions, for example, an external API file format.

The annotated class must implement the SoapUIAction interface and is invoked from the New Project dialog. Here is how you can implement this class:

package com.smartbear.ready.plugin.template.factories;

import com.eviware.soapui.impl.WorkspaceImpl;
import com.eviware.soapui.plugins.auto.PluginImportMethod;
import com.eviware.soapui.support.UISupport;
import com.eviware.soapui.support.action.support.AbstractSoapUIAction;

/**
* Created by ole on 20/06/14.
*/

@PluginImportMethod(label = "Sample Importer")
public class SampleImportMethod extends AbstractSoapUIAction<WorkspaceImpl> {
public SampleImportMethod() {
super("SampleImportMethod", "A sample importer", "A sample importer description");
}

@Override
public void perform(WorkspaceImpl target, Object param) {
UISupport.showInfoMessage("bu!");
}
}
Highlight search results