Modelers

org.topcased.search.ui.utils
Class ModelSearchImages

java.lang.Object
  extended by org.topcased.search.ui.utils.ModelSearchImages

public class ModelSearchImages
extends java.lang.Object

A class defining a bundle of all images used by the System Editor plugin.


Field Summary
static java.lang.String ERROR_IMAGE_PATH
           
static java.lang.String FILE_IMAGE_PATH
           
static java.lang.String ICONS_PATH
           
 
Constructor Summary
ModelSearchImages()
           
 
Method Summary
static org.eclipse.swt.graphics.Image getErrorImage()
           
static org.eclipse.swt.graphics.Image getFileImage()
           
static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(org.osgi.framework.Bundle bundle, java.lang.String imagePath)
          Get an ImageDescriptor from a bundle ID and image relative path to the given bundle location
static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String imagePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ICONS_PATH

public static final java.lang.String ICONS_PATH
See Also:
Constant Field Values

ERROR_IMAGE_PATH

public static final java.lang.String ERROR_IMAGE_PATH
See Also:
Constant Field Values

FILE_IMAGE_PATH

public static final java.lang.String FILE_IMAGE_PATH
See Also:
Constant Field Values
Constructor Detail

ModelSearchImages

public ModelSearchImages()
Method Detail

getImageDescriptor

public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String imagePath)

getImageDescriptor

public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(org.osgi.framework.Bundle bundle,
                                                                            java.lang.String imagePath)
Get an ImageDescriptor from a bundle ID and image relative path to the given bundle location

Parameters:
bundle - Given bundle ID wich location will be resolve as root to search images into
imagePath - Relative path to the wanted image
Returns:
ImageDescriptor built from the image file, Empty non null ImageDescriptor otherwise
See Also:
ImageDescriptor

getErrorImage

public static org.eclipse.swt.graphics.Image getErrorImage()

getFileImage

public static org.eclipse.swt.graphics.Image getFileImage()

Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.