public static Image getImage(String sPluginRelativePath) { org.eclipse.swt.graphics.Image img = null; try { try { img = new org.eclipse.swt.graphics.Image(Display.getCurrent(), getURL(sPluginRelativePath).openStream()); } catch (MalformedURLException e1 ) { img = new org.eclipse.swt.graphics.Image(Display.getCurrent(), new FileInputStream(getURL( sPluginRelativePath).toString())); } } catch (FileNotFoundException e ) { e.printStackTrace(); } catch (IOException e ) { e.printStackTrace(); }   if (img == null) { img = new Image(Display.getCurrent(), 1, 1); } return img; }
public static Image getImage( String sPluginRelativePath ) { org.eclipse.swt.graphics.Image img = null; try { try { img = new org.eclipse.swt.graphics.Image( Display.getCurrent( ), getURL( sPluginRelativePath ).openStream( ) ); } catch ( MalformedURLException e1 ) { img = new org.eclipse.swt.graphics.Image( Display.getCurrent( ), new FileInputStream( getURL( sPluginRelativePath ).toString( ) ) ); } } catch ( FileNotFoundException e ) { logger.log( e ); } catch ( IOException e ) { logger.log( e ); }   if ( img == null ) { img = new Image( Display.getCurrent( ), 1, 1 ); } return img; }
    public static Image getImage(String sPluginRelativePath)    {        org.eclipse.swt.graphics.Image img = null;        try        {            try            {                img = new org.eclipse.swt.graphics.Image(Display.getCurrent(), getURL(sPluginRelativePath).openStream());            }            catch (MalformedURLException e1 )            {                img = new org.eclipse.swt.graphics.Image(Display.getCurrent(), new FileInputStream(getURL(                    sPluginRelativePath).toString()));            }        }        catch (FileNotFoundException e )        {            e.printStackTrace();        }        catch (IOException e )        {            e.printStackTrace();        }                // If still can't load, return a dummy image.        if (img == null)        {        	img = new Image(Display.getCurrent(), 1, 1);        }        return img;    }