private void
taTest()
{
try{
final TorrentAttribute ta = plugin_interface.getTorrentManager().getAttribute(TorrentAttribute.TA_CATEGORY);
ta.addTorrentAttributeListener(
new TorrentAttributeListener()
{
public void
event(
TorrentAttributeEvent ev )
{
System.out.println( "ev: " + ev.getType() + ", " + ev.getData());
if ( ev.getType() == TorrentAttributeEvent.ET_ATTRIBUTE_VALUE_ADDED ){
if ( "plop".equals( ev.getData())){
ta.removeDefinedValue( "plop" );
}
}
}
});
ta.addDefinedValue( "wibble" );
plugin_interface.getDownloadManager().addListener(
new DownloadManagerListener()
{