Methods Summary |
---|
public org.eclipse.swt.widgets.Composite | getComposite()
return panel;
|
public java.lang.String | getData()
return "VivaldiView.title.full";
|
public java.lang.String | getFullTitle()
return MessageText.getString("VivaldiView.title.full"); //$NON-NLS-1$
|
private void | init()
try {
PluginInterface dht_pi = AzureusCoreFactory.getSingleton().getPluginManager().getPluginInterfaceByClass( DHTPlugin.class );
if ( dht_pi == null ){
return;
}
DHT[] dhts = ((DHTPlugin)dht_pi.getPlugin()).getDHTs();
if (dhts.length == 0){
return;
}
dht = dhts[dhts.length-1];
} catch(Exception e) {
Debug.printStackTrace( e );
}
|
public void | initialize(org.eclipse.swt.widgets.Composite composite)
panel = new Composite(composite,SWT.NULL);
panel.setLayout(new FillLayout());
drawPanel = new VivaldiPanel(panel);
drawPanel.setAutoAlpha(autoAlpha);
|
public void | refresh()
if (dht == null) {
init();
}
if(dht != null) {
List l = dht.getControl().getContacts();
drawPanel.refreshContacts(l,dht.getControl().getTransport().getLocalContact());
}
|