@PluginPrefs

Applies to ReadyAPI 3.9, last modified on July 29, 2021

PluginPrefs creates a custom tab in the global Preferences. Use it for managing global settings related to your plugin.

Note: Project-specific settings are better managed via a custom Project Action.

The plugin shows up as a tab in the Preferences window.

The annotated class must implement the Prefs interface.

Sample Preferences

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

import com.eviware.soapui.actions.Prefs;
import com.eviware.soapui.model.settings.Settings;
import com.eviware.soapui.plugins.auto.PluginPrefs;
import com.eviware.soapui.support.components.SimpleForm;
import com.eviware.soapui.support.types.StringToStringMap;

/**
*
*/
@PluginPrefs
public class SamplePrefs implements Prefs {
@Override
public SimpleForm getForm() {
return new SimpleForm();
}

@Override
public void setFormValues(Settings settings) {

}

@Override
public void getFormValues(Settings settings) {

}

@Override
public void storeValues(StringToStringMap values, Settings settings) {

}

@Override
public StringToStringMap getValues(Settings settings) {
return null;
}

@Override
public String getTitle() {
return "Sample Prefs";
}
}
Highlight search results