private org.eclipse.swt.graphics.Image getSWTImage(Image modelImage) { org.eclipse.swt.graphics.Image img = null; try { try { img = new org.eclipse.swt.graphics.Image(Display.getCurrent(), new URL(modelImage.getURL()) .openStream()); } catch (MalformedURLException e1 ) { img = new org.eclipse.swt.graphics.Image(Display.getCurrent(), new FileInputStream(modelImage.getURL())); } } catch (FileNotFoundException e ) {  e.printStackTrace(); } catch (IOException e ) {  e.printStackTrace(); } return img; }
private org.eclipse.swt.graphics.Image getSWTImage( Image modelImage ) { org.eclipse.swt.graphics.Image img = null; try { try { img = new org.eclipse.swt.graphics.Image( Display.getCurrent( ), new URL( modelImage.getURL( ) ).openStream( ) ); } catch ( MalformedURLException e1 ) { img = new org.eclipse.swt.graphics.Image( Display.getCurrent( ), new FileInputStream( modelImage.getURL( ) ) ); } } catch ( FileNotFoundException ex ) { logger.log( ex ); ex.printStackTrace( ); } catch ( IOException ex ) { logger.log( ex ); ex.printStackTrace( ); } return img; }
    private org.eclipse.swt.graphics.Image getSWTImage(Image modelImage)    {        org.eclipse.swt.graphics.Image img = null;        try        {            try            {                img = new org.eclipse.swt.graphics.Image(Display.getCurrent(), new URL(modelImage.getURL())                    .openStream());            }            catch (MalformedURLException e1 )            {                img = new org.eclipse.swt.graphics.Image(Display.getCurrent(), new FileInputStream(modelImage.getURL()));            }        }        catch (FileNotFoundException e )        {            // TODO Auto-generated catch block            e.printStackTrace();        }        catch (IOException e )        {            // TODO Auto-generated catch block            e.printStackTrace();        }        return img;    }