Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » many images in jface tableviewer (display large number of swt images in jface tableviewer )
many images in jface tableviewer [message #639223] Mon, 15 November 2010 16:46 Go to next message
fran81 Missing name is currently offline fran81 Missing nameFriend
Messages: 27
Registered: November 2010
Junior Member
I'm trying to show a jface scrollable tableviewer with a large number of images (>10000).
I have followed the example in this tutorial to build the table
http://www.vogella.de/articles/EclipseJFaceTable/article.htm l

Looks like if I try to do so I get a "no more handles" error, which does not occur if the number of images does not go beyond a certain threshold.

What is the way to load only images that are actually displayed? I.e. one only sees what is on the screen, and not images that have not been scrolled yet?

Thank you
Re: many images in jface tableviewer [message #639265 is a reply to message #639223] Mon, 15 November 2010 19:01 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
You need to clean them up when they go out of scope. The problem is that
ther's not really a reliable way to do it [1].

The only clean solution I know currently is to use Nebula-Grid which
allows you to track the currently visible cells and so you can dispose
invisible images.

Tom

[1] http://tomsondev.bestsolution.at/2007/01/05/what-items-are-v isible-in-tabletree/

Am 15.11.10 17:46, schrieb fran81:
> I'm trying to show a jface scrollable tableviewer with a large number of
> images (>10000). I have followed the example in this tutorial to build
> the table http://www.vogella.de/articles/EclipseJFaceTable/article.htm l
>
> Looks like if I try to do so I get a "no more handles" error, which does
> not occur if the number of images does not go beyond a certain threshold.
>
> What is the way to load only images that are actually displayed? I.e.
> one only sees what is on the screen, and not images that have not been
> scrolled yet?
>
> Thank you
Re: many images in jface tableviewer [message #639299 is a reply to message #639265] Mon, 15 November 2010 23:53 Go to previous message
fran81 Missing name is currently offline fran81 Missing nameFriend
Messages: 27
Registered: November 2010
Junior Member
Thanks Tom for the clarification!
Previous Topic:TextEditor and View
Next Topic:Thumbnail view
Goto Forum:
  


Current Time: Thu Apr 18 04:19:04 GMT 2024

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

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

Back to the top