Which components to use [message #463927] |
Tue, 20 February 2007 09:49 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03993 seconds