Bug 286867 Update demos and compatibility to use context#modify() instead of outputContext
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);
				
				
				stylingEngine.setId(item, null);
		
				gallery.redraw();
			} catch (SWTException ex) {
			} finally {
				try {
					contents.close();
				} catch (IOException e) {
					
					e.printStackTrace();
				}
			}
		} catch (CoreException e1) {
			
			e1.printStackTrace();
		}
	}
}