Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Gallery with SWT.VIRTUAL
Gallery with SWT.VIRTUAL [message #599309] Wed, 24 March 2010 17:37 Go to next message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

I'm trying to use SWT.VIRTUAL on the gallery widget. I look at the official http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.neb ula/org.eclipse.swt.nebula.snippets/src/org/eclipse/swt/nebu la/snippets/gallery/SnippetVirtual.java?root=Technology_Proj ect&view=co

Unfortunately,
if I let
gallery.setItemCount(100);
I've got a NPE:
java.lang.NullPointerException
at org.eclipse.nebula.widgets.gallery.Gallery.calculateSize(Gal lery.java:1516)
at org.eclipse.nebula.widgets.gallery.Gallery.updateStructuralV alues(Gallery.java:1455)
at org.eclipse.nebula.widgets.gallery.Gallery.setItemCount(Gall ery.java:233)

If I remove it, none of my Image is displayed. And in fact the listener on SWT.SetData is never called.

Any hints are welcome.

regards,


--
Aurelien Pupier - BonitaSoft S.A.
"http://scratsh.wordpress.com/"


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Re: Gallery with SWT.VIRTUAL [message #599322 is a reply to message #599309] Thu, 25 March 2010 14:32 Go to previous messageGo to next message
Nicolas Richeton is currently offline Nicolas RichetonFriend
Messages: 179
Registered: July 2009
Senior Member
Strange.
Are you using the released version or the latest nightly ?
Could you try to remove virtual groups and see if it works ?

--
Nicolas

Le 24/03/10 18:37, Aurelien Pupier a écrit :
> Hi,
>
> I'm trying to use SWT.VIRTUAL on the gallery widget. I look at the
> official
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.neb ula/org.eclipse.swt.nebula.snippets/src/org/eclipse/swt/nebu la/snippets/gallery/SnippetVirtual.java?root=Technology_Proj ect&view=co
>
>
> Unfortunately,
> if I let gallery.setItemCount(100);
> I've got a NPE:
> java.lang.NullPointerException
> at
> org.eclipse.nebula.widgets.gallery.Gallery.calculateSize(Gal lery.java:1516)
> at
> org.eclipse.nebula.widgets.gallery.Gallery.updateStructuralV alues(Gallery.java:1455)
>
> at
> org.eclipse.nebula.widgets.gallery.Gallery.setItemCount(Gall ery.java:233)
>
> If I remove it, none of my Image is displayed. And in fact the listener
> on SWT.SetData is never called.
>
> Any hints are welcome.
>
> regards,
>
>
Re: Gallery with SWT.VIRTUAL [message #599372 is a reply to message #599309] Sat, 27 March 2010 18:04 Go to previous message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

hum I understand better how it works and... it works with a Gallery :)

By now, I don't understand how it works with the viewer but not look deeper into that.

Thanks for your help.
--
Aurelien Pupier - BonitaSoft S.A.
"http://scratsh.wordpress.com/"


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Previous Topic:Gallery with SWT.VIRTUAL
Next Topic:grid with hierarchical column group
Goto Forum:
  


Current Time: Wed Apr 24 14:00:44 GMT 2024

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

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

Back to the top