FileDocCategorySizeDatePackage
StandardPluginImpl.javaAPI DocAzureus 3.0.3.43225Mon Jul 02 14:00:20 BST 2007org.gudy.azureus2.pluginsimpl.local.installer

StandardPluginImpl

public class StandardPluginImpl extends Object implements InstallablePluginImpl, StandardPlugin
author
parg

Fields Summary
private PluginInstallerImpl
installer
private org.gudy.azureus2.pluginsimpl.update.sf.SFPluginDetails
details
private String
version
Constructors Summary
protected StandardPluginImpl(PluginInstallerImpl _installer, org.gudy.azureus2.pluginsimpl.update.sf.SFPluginDetails _details, String _version)

		installer	= _installer;
		details		= _details;
		version		= _version==null?"":_version;
	
Methods Summary
public voidaddUpdate(org.gudy.azureus2.plugins.update.UpdateCheckInstance inst, org.gudy.azureus2.pluginsimpl.update.PluginUpdatePlugin plugin_update_plugin, Plugin plugin, PluginInterface plugin_interface)

		inst.addUpdatableComponent(
				plugin_update_plugin.getCustomUpdateableComponent( getId(), false), false );
	
public PluginInterfacegetAlreadyInstalledPlugin()
Returns the plugin's interface if already installed, null if it isn't

return

		return( installer.getAlreadyInstalledPlugin( getId()));
	
public java.lang.StringgetDescription()

		try{
			List lines = HTMLUtils.convertHTMLToText("", details.getDescription());
			
			String	res = "";
			
			for (int i=0;i<lines.size();i++){
				res += (i==0?"":"\n") + lines.get(i);
			}
			
			return( res );
			
		}catch( Throwable e ){
			
			return( Debug.getNestedExceptionMessage( e ));
		}
	
public java.lang.StringgetId()

		return( details.getId());
	
public PluginInstallergetInstaller()

		return( installer );
	
public java.lang.StringgetName()

		return( details.getName());
	
public java.lang.StringgetRelativeURLBase()

		return( details.getRelativeURLBase());
	
public java.lang.StringgetVersion()

		return( version );
	
public voidinstall(boolean shared)

		installer.install( this, shared );
	
public voiduninstall()

		installer.uninstall( this );