org.eclipse.swtbot.swt.finder.utils
Class ImageFormatConverter
java.lang.Object
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>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageFormatConverter
public ImageFormatConverter()
- The default constructor.
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