org.gudy.azureus2.plugins.ui.SWT
Interface SWTManager


Deprecated. use UISWTInstance

public interface SWTManager

Evil SWT Specific stuff that plugins may need access to

Author:
TuxPaper

Method Summary
 void addView(PluginView view)
          Deprecated. A Plugin might call this method to add a View to Azureus's views The View will be accessible from View > Plugins > View name
 void addView(PluginView view, boolean autoOpen)
          Deprecated. A Plugin might call this method to add a View to Azureus's views The View will be accessible from View > Plugins > View name
 GraphicSWT createGraphic(org.eclipse.swt.graphics.Image img)
          Deprecated. Creates an UIImageSWT object with the supplied SWT Image
 org.eclipse.swt.widgets.Display getDisplay()
          Deprecated. Retrieve the SWT Display object that Azureus uses (when in SWT mode).
 

Method Detail

getDisplay

org.eclipse.swt.widgets.Display getDisplay()
Deprecated. 
Retrieve the SWT Display object that Azureus uses (when in SWT mode). If you have a thread that does some periodic/asynchronous stuff, Azureus will crashes with and 'InvalidThreadAccess' exception unless you embed your calls in a Runnable, and use getDisplay().aSyncExec(Runnable r);

Returns:
SWT Display object that Azureus uses
Since:
2.1.0.0

createGraphic

GraphicSWT createGraphic(org.eclipse.swt.graphics.Image img)
Deprecated. 
Creates an UIImageSWT object with the supplied SWT Image

Parameters:
img - Image to assign to the object
Returns:
a new UIImagetSWT object
Since:
2.1.0.0

addView

void addView(PluginView view)
Deprecated. 
A Plugin might call this method to add a View to Azureus's views The View will be accessible from View > Plugins > View name

Parameters:
view - The PluginView to be added
Since:
2.1.0.2

addView

void addView(PluginView view,
             boolean autoOpen)
Deprecated. 
A Plugin might call this method to add a View to Azureus's views The View will be accessible from View > Plugins > View name

Parameters:
view - The PluginView to be added
autoOpen - Whether the plugin should auto-open at startup
Since:
2.1.0.2