Bug 263544 [context] Add dependency injection context -> user object
examples/org.eclipse.e4.demo.e4photo/src/org/eclipse/e4/demo/e4photo/Thumbnails.java
return new Point(newWidth, newHeight);
	}
	public void setInput(Object input) {
		if (input == null) {
			return;
		}
		try {
			IContainer container = (IContainer) input;
			IResource[] members;
			members = container.members();
			gallery.removeAll();
			group = new GalleryItem(gallery, SWT.NONE);
			group.setExpanded(true);
			for (int i = 0; i < members.length; i++) {
				IResource resource = members[i];
				if (resource.getType() == IResource.FILE) {
					addImage((IFile) resource);
				}
			}
		} catch (CoreException e) {
			
			e.printStackTrace();
		}
	}
	private void addImage(final IFile file) {
		gallery.getDisplay().asyncExec(new Runnable() {
			public void run() {
				InputStream contents;
				try {
					contents = file.getContents();