Package at.bestsolution.efxclipse.runtime.emf.edit.ui

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


    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);
   
View Full Code Here


    TreeView<Object> treeView = new TreeView<>();
    treeView.setRoot(new AdapterFactoryTreeItem(contactsManager.getRootGroup(), treeView, contactsManager.getAdapterFactory()));
    AdapterFactoryTreeCellFactory treeCellFactory = new AdapterFactoryTreeCellFactory(contactsManager.getAdapterFactory());

    // add edit support
    treeCellFactory.addCellEditHandler(new EAttributeCellEditHandler(ContactsPackage.eINSTANCE.getGroup_Name(), editingDomain));

    // adds drag support
    treeCellFactory.addCellCreationListener(new CellDragAdapter());

    // adds drop support
View Full Code Here

    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);
View Full Code Here

TOP

Related Classes of at.bestsolution.efxclipse.runtime.emf.edit.ui.EAttributeCellEditHandler

Copyright © 2018 www.massapicom. 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.