ex.printStackTrace();
}
}
else if(userData.equals("remove"))
{
TreeView tree = (TreeView)mainGlade.getWidget("treeview");
TreePath[] rows = tree.getSelection().getSelectedRows();
for(TreePath tp : rows)
{
TreeIter row = model.getIter(tp);
Download d = (Download)model.getValue(row, download);
d.removeTempFolder();
model.removeRow(row);
}
}
else if(userData.equals("pause"))
{
TreeView tree = (TreeView)mainGlade.getWidget("treeview");
TreePath[] rows = tree.getSelection().getSelectedRows();
for(TreePath tp : rows)
{
TreeIter row = model.getIter(tp);
Download d = (Download)model.getValue(row, download);
d.pause();
}
}
else if(userData.equals("resume"))
{
TreeView tree = (TreeView)mainGlade.getWidget("treeview");
TreePath[] rows = tree.getSelection().getSelectedRows();
for(TreePath tp : rows)
{
TreeIter row = model.getIter(tp);
Download d = (Download)model.getValue(row, download);
d.resume();