Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » [TreeViewer] Force update
[TreeViewer] Force update [message #446692] Tue, 30 November 2004 17:46 Go to next message
Arnaud is currently offline ArnaudFriend
Messages: 16
Registered: July 2009
Junior Member
Hi !

I have a treeviewer in my RCP app that lists all the files from a given
directory.

I allow users to create new files in this directory, but I don't know how
to force the treeviewer to update its contentprovider. So, till I restart
the app, the created files are not shown in the treeviewer.

TIA,

Arnaud
Re: [TreeViewer] Force update [message #446695 is a reply to message #446692] Tue, 30 November 2004 18:12 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
TreeViewer is part of JFace. Please ask this question on the eclipse
platform newsgroup.

news://news.eclipse.org/eclipse.platform

"Arnaud" <mags75@club-internet.fr> wrote in message
news:coibkv$a3f$1@www.eclipse.org...
> Hi !
>
> I have a treeviewer in my RCP app that lists all the files from a given
> directory.
>
> I allow users to create new files in this directory, but I don't know how
> to force the treeviewer to update its contentprovider. So, till I restart
> the app, the created files are not shown in the treeviewer.
>
> TIA,
>
> Arnaud
>
Re: [TreeViewer] Force update [message #446757 is a reply to message #446692] Thu, 02 December 2004 13:59 Go to previous message
Stefan Pietsch is currently offline Stefan PietschFriend
Messages: 68
Registered: July 2009
Member
Hi Arnaud,

you have to call TreeViewer.add if you insert some items in your
contentprovider. Have a look at the javadoc for detailed information.

Bye Stefan

"Arnaud" <mags75@club-internet.fr> schrieb im Newsbeitrag
news:coibkv$a3f$1@www.eclipse.org...
> Hi !
>
> I have a treeviewer in my RCP app that lists all the files from a given
> directory.
>
> I allow users to create new files in this directory, but I don't know how
> to force the treeviewer to update its contentprovider. So, till I restart
> the app, the created files are not shown in the treeviewer.
>
> TIA,
>
> Arnaud
>
Previous Topic:How to get a control from a specific column of a TableTreeItem ?
Next Topic:Scrollable Composite for Icons / thumbnails
Goto Forum:
  


Current Time: Sat Nov 28 06:18:47 GMT 2020

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

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

Back to the top