Methods Summary |
---|
public void | reportCurrentTask(java.lang.String task_description)
Utils.execSWTThread(new AERunnable() {
public void runSupport() {
if (dialog == null) {
dialog = new progressDialog(display);
if (dialog == null) {
return;
}
}
if (tasks != null && !tasks.isDisposed()) {
dialog.showPanel();
tasks.append(task_description + Text.DELIMITER);
int lines = tasks.getLineCount();
// tasks(nbLines - 2, 1, colors[_color]);
tasks.setTopIndex(lines - 1);
}
}
});
|
public void | reportProgress(int percent_complete)
Utils.execSWTThread(new AERunnable() {
public void runSupport() {
if (progress != null && !progress.isDisposed()) {
if (dialog == null) {
dialog = new progressDialog(display);
if (dialog == null) {
return;
}
}
// only allow percentage updates to make the window visible
// if it hasn't been manually hidden
if (!dialog.isShown() && !manually_hidden) {
dialog.showPanel();
}
cancel_button.setEnabled(percent_complete < 100);
progress.setSelection(percent_complete);
}
}
});
|
public void | resourceAdded(org.gudy.azureus2.plugins.sharing.ShareResource resource)
// we don't want to pick these additions up
if ( !share_manager.isInitialising()){
reportCurrentTask( "Resource added: " + resource.getName());
}
|
public void | resourceDeleted(org.gudy.azureus2.plugins.sharing.ShareResource resource)
reportCurrentTask( "Resource deleted: " + resource.getName());
|
public void | resourceModified(org.gudy.azureus2.plugins.sharing.ShareResource resource)
reportCurrentTask( "Resource modified: " + resource.getName());
|