InstallPluginWizardpublic class InstallPluginWizard extends org.gudy.azureus2.ui.swt.wizard.Wizard
Fields Summary |
---|
int | mode | org.gudy.azureus2.plugins.installer.StandardPlugin[] | standard_plugins | List | plugins | boolean | shared | String | list_title_text |
Methods Summary |
---|
protected java.lang.String | getListTitleText()
if ( list_title_text == null ){
list_title_text = MessageText.getString( "installPluginsWizard.list.loaded" );
}
return( list_title_text );
| public java.util.List | getPluginList()
return( plugins );
| protected org.gudy.azureus2.plugins.installer.StandardPlugin[] | getStandardPlugins()
if ( standard_plugins == null ){
standard_plugins = getAzureusCore().getPluginManager().getPluginInstaller().getStandardPlugins();
}
return( standard_plugins );
| public void | onClose()
// Call the parent class to clean up resources
super.onClose();
| public void | performInstall()
InstallablePlugin[] ps = new InstallablePlugin[ plugins.size()];
plugins.toArray( ps );
if ( ps.length > 0 ){
try{
ps[0].getInstaller().install(ps,shared);
}catch(Exception e){
Debug.printStackTrace(e);
Logger.log(new LogAlert(LogAlert.REPEATABLE,
"Failed to initialise installer", e));
}
}
| public static void | register(com.aelitis.azureus.core.AzureusCore core, org.eclipse.swt.widgets.Display display)
core.getPluginManager().getPluginInstaller().addListener(
new PluginInstallerListener()
{
public boolean
installRequest(
final String reason,
final InstallablePlugin plugin )
throws PluginException
{
if ( plugin instanceof StandardPlugin ){
display.asyncExec(
new Runnable()
{
public void
run()
{
new InstallPluginWizard( core, display, reason, (StandardPlugin)plugin );
}
});
return( true );
}else{
return( false );
}
}
});
| public void | setPluginList(java.util.List _plugins)
plugins = _plugins;
|
|