View newView;
static int total_ip_count;
public void initialize(PluginInterface pluginInterface) {
this.pluginInterface = pluginInterface;
Utilities utils = pluginInterface.getUtilities();
UIManager ui_manager = pluginInterface.getUIManager();
BasicPluginConfigModel config_model = ui_manager.createBasicPluginConfigModel( "plugins", "plugin.AzTrackerFind");
total_ip_count = 0;
config_model.addBooleanParameter2("AutoOpen","AzTrackerFind.auto.open",false);
config_model.addIntParameter2( "timeout_value", "AzTrackerFind.timeout.value", 30);
config_model.addIntParameter2("AzTrackerFind_port1","AzTrackerFind.port1",6969 );
config_model.addIntParameter2("AzTrackerFind_port2","AzTrackerFind.port2",0 );
config_model.addIntParameter2("AzTrackerFind_port3","AzTrackerFind.port3",0);
config_model.addStringParameter2( "AzTrackerFind_url_user","AzTrackerFind.url.user","username");
config_model.addStringParameter2("AzTrackerFind_url_password", "AzTrackerFind.url.password", "password");
config_model.addBooleanParameter2("AzTrackerFind_autoinsert","AzTrackerFind.autoinsert",false);
config_model.addBooleanParameter2("MilitaryTime", "AzTrackerFind.military.time", false);
BooleanParameter enable = config_model.addBooleanParameter2("AutoDownload","AzTrackerFind.auto.download",false);
String default_dir = pluginInterface.getPluginDirectoryName() + System.getProperty("file.separator") + "torrents";
DirectoryParameter enabled_dir = config_model.addDirectoryParameter2("AutoDownload_dir","AzTrackerFind.autodownload.dir",default_dir);
enable.addEnabledOnSelection( enabled_dir );
if (utils.isLinux())
{
config_model.addStringParameter2("AzTrackerFind_url_commandline", "AzTrackerFind.url.commandline","firefox");
}
else if (utils.isOSX())
{
config_model.addLabelParameter2("AzTrackerFind.url.maclabel");
}
else
{