list.add(new MyClass());
list.add(new MyClass());
list.add(new MyClass());
try {
t.addKeyBinding(new SuggestedKeyBinding('N', true, false, false),
new Task() {
public void run() {
MyClass newClass = new MyClass();
t.add(newClass);
List select = new ArrayList();
select.add(newClass);
t.setSelected(select);
}
});
t.addKeyBinding(new SuggestedKeyBinding(KeyBinding.DELETE, true,
false, false),
new Task() {
public void run() {
List selected = t.getSelected();
List value = (List) t.getValue();