Skip to main content


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 13:50 Go to next message
Eclipse UserFriend
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 09:51 Go to previous message
Eclipse UserFriend
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: Thu Mar 28 22:22:46 GMT 2024

Powered by FUDForum. Page generated in 0.05540 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top