Search in sources :

Example 6 with ResourceImageDescriptor

use of de.jaret.util.ui.ResourceImageDescriptor in project translationstudio8 by heartsome.

the class TableExample method getImageRegistry.

public static ImageRegistry getImageRegistry() {
    if (_imageRegistry == null) {
        _imageRegistry = new ImageRegistry();
        ImageDescriptor imgDesc = new ResourceImageDescriptor("/de/jaret/examples/table/splash.bmp");
        _imageRegistry.put("splash", imgDesc);
        imgDesc = new ResourceImageDescriptor("/de/jaret/examples/table/keyboard.png");
        _imageRegistry.put("keyboard", imgDesc);
    }
    return _imageRegistry;
}
Also used : ImageRegistry(org.eclipse.jface.resource.ImageRegistry) ResourceImageDescriptor(de.jaret.util.ui.ResourceImageDescriptor) ResourceImageDescriptor(de.jaret.util.ui.ResourceImageDescriptor) ImageDescriptor(org.eclipse.jface.resource.ImageDescriptor)

Aggregations

ResourceImageDescriptor (de.jaret.util.ui.ResourceImageDescriptor)6 ImageDescriptor (org.eclipse.jface.resource.ImageDescriptor)6 ImageRegistry (org.eclipse.jface.resource.ImageRegistry)3