Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Which components to use
Which components to use [message #463927] Tue, 20 February 2007 09:49
Eclipse UserFriend
Hello,

I'm pretty new to developing plugins, and to these newsgroups. I first posted this
message on the newcomer group, but I guess that it's here I should have posted it.

I'd like to develop a plugin that is a kind of Console. I have a Collection of
objects, (collection that is supposed to grow) and I want to display a String that is
based on these object's content.
I also need to be able to color a part of the String that is displayed.

Up to here, I have a plugin that has a View, and a TableViewer. The viewer is used
with a manager, that holds the collection of objets to be displayed. A
ContentProvider and a LabelProvider are also here to provide, well, content and
labels :) .

This situation is not really bad as is, but is slow. The objects are coming in the
collection pretty fast and the view is not refreshed fast enough. So I thought about
using a TextViewer.

Is it going to be faster with a TextViewer? I've seen that it uses Document objects
as its content. Can I easily add lines to the document when a new objects is added to
my Collection? Or should I use other components, such as IOConsole, which seems to
provide an OutputStream to add content to it?

I've found that people use MessageConsole quite a lot... I've started to study this
component... but I can't get my view to display a MessageConsole...

Any help would be highly appreciated :)

Cheers,

Sébastien
Previous Topic:maximized editor area on startup
Next Topic:Problem with communication between Views over Selection Mechanism
Goto Forum:
  


Current Time: Wed Mar 19 13:30:56 EDT 2025

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

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

Back to the top