[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] TableEditor - How to remove after resetting?
|
Hi,
How can I remove TableEditor still appearing after removing all items
in a table. This happens after editor is used, then subsequently removed
all items (rows) in the table. I tried "setEditor(null, ". But no effect!
Text newEditor = new Text(table, SWT.NONE);
newEditor.setText(item.getText(editcolumn));
newEditor.addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent me) {
Text text = (Text)getEditor();
getItem().setText(editcolumn, text.getText());
text.dispose();
setEditor(null, item, editcolumn);
}
});