[サンプル] Eclipse Plugin - View - Graphics Context

Eclipse 3.x plugin でビューに画像表示(サンプル)
public class ImgView extends ViewPart {

    public void createPartControl(Composite parent) {    
        final Canvas img = new Canvas(parent, SWT.NONE);
        img.addPaintListener(new PaintListener() {
                public void paintControl(PaintEvent e){
                    final Image image = new Image(e.display, "/home/xxx/sample.gif");
                    e.gc.drawImage(image, e.x, e.y);
                }
        });
    }
    public void setFocus() {
    }
}