@Override
public void widgetSelected(SelectionEvent e) {
Object[] objs = contentProvider.getElements(null);
for (Object obj : objs) {
ProjectDiff diff = (ProjectDiff) obj;
diff.setRelease(true);
}
tableViewer.refresh();
}
});
ToolItem tiUncheckAll = new ToolItem(toolbar, SWT.FLAT);
tiUncheckAll.setImage(Activator.getImageDescriptor("icons/uncheck_all.gif").createImage());
tiUncheckAll.setToolTipText(Messages.uncheckAll);
tiUncheckAll.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
Object[] objs = contentProvider.getElements(null);
for (Object obj : objs) {
ProjectDiff diff = (ProjectDiff) obj;
diff.setRelease(false);
}
tableViewer.refresh();
}
});
}