Examples of AdapterFactoryListCellFactory


Examples of at.bestsolution.efxclipse.runtime.emf.edit.ui.AdapterFactoryListCellFactory

    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>() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.