parent.setCenter(listView);
listView.setItems(new AdapterFactoryObservableList<Object>(adapterFactory, contactsManager.getRootGroup()));
listView.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
AdapterFactoryListCellFactory listCellFactory = new AdapterFactoryListCellFactory(adapterFactory);
listCellFactory.addCellCreationListener(new CellDragAdapter());
EditingDomainCellDropAdapter dropAdapter = new EditingDomainCellDropAdapter(editingDomain);
dropAdapter.setFeedbackHandler(new CustomFeedbackHandler());
listCellFactory.addCellCreationListener(dropAdapter);
listView.setCellFactory(listCellFactory);
// add edit support
listView.setEditable(true);
listCellFactory.addCellEditHandler(new EAttributeCellEditHandler(ContactsPackage.eINSTANCE.getGroup_Name(), editingDomain));
// add the context menu
ContextMenuProvider contextMenuProvider = new ContextMenuProvider(contactsManager);
listCellFactory.addCellUpdateListener(contextMenuProvider);
listView.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
listView.getSelectionModel().getSelectedItems().addListener(new ListChangeListener<Object>() {