Bug 296364 [context] The constructors used by the injection mechanism should have @Inject
examples/org.eclipse.e4.demo.contacts/src/org/eclipse/e4/demo/contacts/views/DetailsView.java
uiItem.setName(title.toString());
	}
	@Inject
	public void setSelection(@Optional @Named(IServiceConstants.SELECTION) Contact contact) {
		if (contact != null) {
			if (dirtyable.isDirty()) {
				MessageDialog dialog = new MessageDialog(detailComposite
						.getShell(), "Save vCard", null,
						"The current vCard has been modified. Save changes?",
						MessageDialog.CONFIRM, new String[] {
								IDialogConstants.YES_LABEL,
								IDialogConstants.NO_LABEL }, 0);
				dialog.create();
				ThemeUtil.applyDialogStyles(engine, dialog.getShell());
				if (dialog.open() == Window.OK) {
					ParameterizedCommand saveCommand = commandService
							.createCommand("contacts.save",
									Collections.EMPTY_MAP);
					handlerService.executeHandler(saveCommand);
				}
			}
			updatePartTitle(contact);
		} else {
			uiItem.setName("Details");
		}
		dirtyable.setDirty(false);
		detailComposite.update(contact);
	}
}