JFace ListViewer-Update in an Editor-Part? [message #464068] |
Fri, 23 February 2007 08:50  |
Eclipse User |
|
|
|
Originally posted by: unidad.gmx.net
Hi!
I'm trying to adapt the following JFace-ListViewer-example
to work in an editor-page of a RCP-application.
http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/SampleList Viewer.htm
i.e. I have a ListViewer and three buttons
(new item, edit item and remove item).
The view of the list shall be updated after a button-click.
I tried following update-code in the
button.widgetSelected(SelectionEvent)-methods.
New item -> listViewer.refresh(false);
Edit item -> listViewer.update(item, null);
Remove item -> listViewer.refresh(false);
In the SWT-example the ListViewer is updated well.
In my Editor, it is not.
Any idea, what I'm missing?
Greetings, Hermann
|
|
|
|
Powered by
FUDForum. Page generated in 0.04832 seconds