Nebula Gallery widget updates

Here are the latest news of the Nebula Gallery widget :

JFace Viewer : a viewer is now available for the Gallery widget :
The widget can be used this way :

GalleryTreeViewer viewer = new GalleryTreeViewer(shell);
viewer.setContentProvider(contentProvider);
viewer.setLabelProvider(labelProvider);
viewer.setInput(new Object());

See SnippetGalleryViewerTester

Item-level font and color settings :
Each item can use a different font or color :

item.setFont( font );
item.setForegroundColor( textColor );
item.setBackgroundColor( backgroundColor );

Gallery Viewer snippet

Fixed H_SCROLL problems :
A gallery can be created using H_SCROLL and previous issues like partial redraws and margin problems are fixed.

Improved API : better consistency with SWT controls :
- getSelection() does no longer return null when nothing is selected.
- other small fixes.

Thanks to Peter Centgraf who contributed the jface viewer and several other patchs.

Gallery Navigator plugin :
I’ve also started to write an eclipse plugin which displays the current folder’s content in a Gallery. Images are loaded so you can get a quick overview right within Eclipse. Thumbnail size can be set in real time.

Gallery navigator

Sources are on sourceforge, see Gallery navigator plugin.

Until next time…


  • http://mea-bloga.blogspot.com/ Chris Aniszczyk

    It looks very pretty!

  • http://mea-bloga.blogspot.com Chris Aniszczyk

    It looks very pretty!