Bug 299990 Example project for an Eclipse 4 Editor
examples/org.eclipse.e4.demo.e4photo/src/org/eclipse/e4/demo/e4photo/ExifTable.java
}
			c.addControlListener(new ControlAdapter() {
				@Override
				public void controlResized(ControlEvent e) {
					state.set(name, c.getWidth() + "");
					setPersistedState(state.serialize());
				}
			});
		}
		ObservableListContentProvider contentProvider = new ObservableListContentProvider();
		viewer.setContentProvider(contentProvider);
		viewer.addSelectionChangedListener(new ISelectionChangedListener() {
			public void selectionChanged(SelectionChangedEvent event) {
				Object selected = ((StructuredSelection) event.getSelection()).getFirstElement();
				IEventBroker eventBroker = (IEventBroker) context.get(IEventBroker.class.getName());
				if (eventBroker != null)
					eventBroker.post(EVENT_NAME, selected);
			}
		});
		viewer
				.setLabelProvider(new ObservableMapLabelProvider(PojoObservables
						.observeMaps(contentProvider.getKnownElements(), Exif.class,
								columnNames)));
		viewer.setInput(inputList);
	}
	void dispose() {
		
	}
}