2
Fork 0

[svn r236] fixed swt test and added annotations

This commit is contained in:
willemc 2007-03-28 19:16:40 +02:00
parent 5e425bd032
commit 54ca574e58
18 changed files with 931 additions and 23 deletions

View file

@ -163,8 +163,6 @@ public class SwtVascViewRenderer implements VascViewRenderer {
// Set the content and label providers
tableViewer.setContentProvider(new ListConverterContentProvider());
tableViewer.setLabelProvider(new DefaultLabelProvider(table));
//tv.setSorter(new PlayerViewerSorter());
tableViewer.setInput(table);
for(VascTableColumn c:table.getTableColumns()) {
TableColumn tc = new TableColumn(table2, SWT.LEFT);
@ -224,22 +222,10 @@ public class SwtVascViewRenderer implements VascViewRenderer {
}
}
logger.fine("Table with columns created: "+table2.getColumnCount());
tableViewer.setInput(table);
}
/*
private static AbstractColumn[] getTableColumns(VascTable crudTable) {
AbstractColumn[] cols = new AbstractColumn[crudTable.getCrudTableColumns().size()];
int i=0;
for(VascTableColumn c:crudTable.getTableColumns()) {
AbstractColumn ac = new PropertyColumn(crudTable.i18n(c.getName()),c.getObjectProperty());
ac.setEditable(false);
ac.setReorderable(true);
ac.setSortable(true);
cols[i]=ac;
i++;
}
return cols;
}*/
public void createFooter(Composite footer) {
logger.finest("Creating footer");