Bug 263544 [context] Add dependency injection context -> user object
examples/org.eclipse.e4.demo.e4photo/src/org/eclipse/e4/demo/e4photo/Thumbnails.java
try {
						ImageData imageData = new ImageData(contents);
						
						Point size = getBestSize(imageData.width, imageData.height, 100, 100);
					
						ImageData scaled = imageData.scaledTo(size.x, size.y);
						GalleryItem item = new GalleryItem(group, SWT.NONE);
						item.setText(file.getName());
						Image image = new Image(gallery.getDisplay(), scaled);
						item.setImage(image);
						item.setData(file);
						gallery.redraw();	
					} catch (SWTException ex) {
					} finally {
						try {
							contents.close();
						} catch (IOException e) {
							
							e.printStackTrace();
						}
					}
				} catch (CoreException e1) {
					
					e1.printStackTrace();
				}
			}
		});
	}
}