Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » JFace ListViewer-Update in an Editor-Part?
JFace ListViewer-Update in an Editor-Part? [message #464068] Fri, 23 February 2007 08:50 Go to next message
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
Re: JFace ListViewer-Update in an Editor-Part? [message #464103 is a reply to message #464068] Sat, 24 February 2007 04:51 Go to previous message
Eclipse User
Originally posted by: unidad.gmx.net

Don't know why, but now it updates as it should *sigh*.

Greetings, Hermann
Previous Topic:Opening preferences in a tab
Next Topic:Querying Eclipse app directory
Goto Forum:
  


Current Time: Wed Jul 23 06:07:47 EDT 2014

Powered by FUDForum. Page generated in 0.01944 seconds