tableView.setItems(new AdapterFactoryObservableList<Object>(adapterFactory, contactsManager.getRootGroup()));
tableView.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
// add edit support
tableView.setEditable(true);
firstNameCellFactory.addCellEditHandler(new EAttributeCellEditHandler(ContactsPackage.eINSTANCE.getContact_FirstName(),
editingDomain));
lastNameCellFactory
.addCellEditHandler(new EAttributeCellEditHandler(ContactsPackage.eINSTANCE.getContact_LastName(), editingDomain));
// add the context menu
ContextMenuProvider contextMenuProvider = new ContextMenuProvider(contactsManager);
firstNameCellFactory.addCellUpdateListener(contextMenuProvider);
lastNameCellFactory.addCellUpdateListener(contextMenuProvider);