FileDocCategorySizeDatePackage
UnInstallPluginWizard.javaAPI DocAzureus 3.0.3.42454Tue May 08 19:02:34 BST 2007org.gudy.azureus2.ui.swt.pluginsuninstaller

UnInstallPluginWizard

public class UnInstallPluginWizard extends org.gudy.azureus2.ui.swt.wizard.Wizard
author
Olivier Chalouhi

Fields Summary
List
plugins
Constructors Summary
public UnInstallPluginWizard(com.aelitis.azureus.core.AzureusCore azureus_core, org.eclipse.swt.widgets.Display display)

  
   
      			
 		 	 
	
		super(azureus_core,"uninstallPluginsWizard.title");			
		
		UIPWListPanel list_panel = new UIPWListPanel(this,null);
	
		setFirstPanel(list_panel);
	
Methods Summary
public java.util.ListgetPluginList()

  		return( plugins );
  	
public voidonClose()

		// Call the parent class to clean up resources
		super.onClose();	
	
public voidperformUnInstall()

  	  PluginInterface[]	ps = new PluginInterface[ plugins.size()];
  	  
  	  plugins.toArray( ps );
  	  
  	  if ( ps.length > 0 ){
  	  	
  	    try{
  	    	
  	      ps[0].getPluginManager().getPluginInstaller().uninstall( ps );
  	      
  	    }catch(Exception e){
  	    	
  	      Debug.printStackTrace(e);
  	      
  	      Logger.log(new LogAlert(LogAlert.REPEATABLE,
						"Failed to initialise installer", e));
  	    }
  	  }
  	
public voidsetPluginList(java.util.List _plugins)

  	  plugins = _plugins;