Search in sources :

Example 1 with GalleryTreeViewer

use of org.netxms.nebula.jface.galleryviewer.GalleryTreeViewer in project netxms by netxms.

the class Bug217988Test method testBug217988.

public void testBug217988() {
    GalleryTreeViewer viewer = new GalleryTreeViewer(s);
    viewer.setContentProvider(new GalleryTestContentProvider());
    viewer.setLabelProvider(new GalleryTestLabelProvider());
    viewer.setComparator(new ViewerComparator());
    viewer.setInput(new Object());
    // Setting input raised a NPE
    viewer.setInput(new Object());
}
Also used : ViewerComparator(org.eclipse.jface.viewers.ViewerComparator) GalleryTreeViewer(org.netxms.nebula.jface.galleryviewer.GalleryTreeViewer)

Aggregations

ViewerComparator (org.eclipse.jface.viewers.ViewerComparator)1 GalleryTreeViewer (org.netxms.nebula.jface.galleryviewer.GalleryTreeViewer)1