org.eclipse.swtbot.swt.finder.utils
Class ImageFormatConverter

java.lang.Object
  extended by org.eclipse.swtbot.swt.finder.utils.ImageFormatConverter

public class ImageFormatConverter
extends Object

Translates from strings to one of the constants in SWT#IMAGE_*

Since:
1.3
Version:
$Id$
Author:
Ketan Padegaonkar <KetanPadegaonkar [at] gmail [dot] com>

Nested Class Summary
protected  class ImageFormatConverter.ImageType
          Mapping from strings to constants in SWT#IMAGE_*
 
Constructor Summary
ImageFormatConverter()
          The default constructor.
 
Method Summary
 int imageTypeOf(String extension)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageFormatConverter

public ImageFormatConverter()
The default constructor.

Method Detail

imageTypeOf

public int imageTypeOf(String extension)
Parameters:
extension - the image format
Returns:
one of the constants defined in SWT#IMAGE*
Throws:
IllegalArgumentException - if the type could not be resolved