Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » TreeViewer refresh
TreeViewer refresh [message #462625] Wed, 31 January 2007 07:05 Go to next message
Eclipse UserFriend
Originally posted by: chaitrali.butala.cognizant.com

Problem Context:
I am developing a RCP based real time application. Objective of the application is to capture real time events (~200/sec) from information bus and display them in a tree format.

Tree hierarchy is required because events received, have parent child relationship I.e. an event received can be a parent event by it self or can be child of any already present event.

Right now I am using TreeViewer,Tree and TreeColumn to achieve above requirement.

Problem Statement:
As mentioned above, newly added event need to appear in Tree view as soon it arrives. I wanted to update only a specific node for which child event has been added, instead of refreshing whole tree which will lead to flicker. Is it possible and how?
Re: TreeViewer refresh [message #462645 is a reply to message #462625] Wed, 31 January 2007 10:41 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Why don't you use the add(*) methods instead of refreshing the whole tree?

Tom

chaitrali schrieb:
> Problem Context:
> I am developing a RCP based real time application. Objective of the application is to capture real time events (~200/sec) from information bus and display them in a tree format.
>
> Tree hierarchy is required because events received, have parent child relationship I.e. an event received can be a parent event by it self or can be child of any already present event.
>
> Right now I am using TreeViewer,Tree and TreeColumn to achieve above requirement.
>
> Problem Statement:
> As mentioned above, newly added event need to appear in Tree view as soon it arrives. I wanted to update only a specific node for which child event has been added, instead of refreshing whole tree which will lead to flicker. Is it possible and how?
Re: TreeViewer refresh [message #462672 is a reply to message #462625] Wed, 31 January 2007 12:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lamont_gilbert.rigidsoftware.com

On Wed, 31 Jan 2007 02:05:41 -0500, chaitrali wrote:

> Problem Context:
> I am developing a RCP based real time application. Objective of the
> application is to capture real time events (~200/sec) from information bus
> and display them in a tree format.
>
> Tree hierarchy is required because events received, have parent child
> relationship I.e. an event received can be a parent event by it self or
> can be child of any already present event.
>
> Right now I am using TreeViewer,Tree and TreeColumn to achieve above
> requirement.
>
> Problem Statement:
> As mentioned above, newly added event need to appear in Tree view as soon
> it arrives. I wanted to update only a specific node for which child event
> has been added, instead of refreshing whole tree which will lead to
> flicker. Is it possible and how?


Are you changing the structure of the tree, or changing the name of nodes,
or both?
Re: TreeViewer refresh [message #462815 is a reply to message #462672] Thu, 01 February 2007 09:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: chaitrali.butala.cognizant.com

I am changing the structure of the tree.
Seems,have got the solution. We can refresh a particular node instaed of complete tree. Thanks for the help.
Re: TreeViewer refresh [message #462818 is a reply to message #462645] Thu, 01 February 2007 09:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: chaitrali.butala.cognizant.com

I am already using add method but was unaware of the method refresh that can refresh only a particular node.
Now I am using it and it is working. Thanks for the help.
Re: TreeViewer refresh [message #463163 is a reply to message #462818] Wed, 07 February 2007 08:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: chaitrali.butala.cognizant.com

I am building up an Eclipse-RCP based application.
I have already tried organizing my code in MVC pattern, but wondering weather I can get better by usage of Spring IOC?
Re: TreeViewer refresh [message #463164 is a reply to message #463163] Wed, 07 February 2007 09:05 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

why don't use the newly developed databinding framework? I'm currently
developing an XML-Dialect to completely do gui-design/databinding in XML
but it is at the very early stages, I think this is the future for
datadriven applications written in SWT whether you use the databinding
component directly or through some layer.

Tom

chaitrali schrieb:
> I am building up an Eclipse-RCP based application.
> I have already tried organizing my code in MVC pattern, but wondering weather I can get better by usage of Spring IOC?
Previous Topic:Retarget Action does not work
Next Topic:Data should be entered in INSERT mode
Goto Forum:
  


Current Time: Wed Jan 15 10:53:52 GMT 2025

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

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

Back to the top