Package org.eclipse.jface.viewers

Examples of org.eclipse.jface.viewers.TableViewer.editElement()


                if (event.keyCode == SWT.F2 && event.stateMask == 0) {
                    ISelection selection = tableViewer.getSelection();
                    if (!(selection instanceof IStructuredSelection))
                        return;
                    IStructuredSelection structuredSelection = (IStructuredSelection) selection;
                    tableViewer.editElement(structuredSelection.getFirstElement(), 0);
                }
            }
        });
        GridData gd = (GridData) fSuperInterfacesDialogField.getListControl(null).getLayoutData();
        if (fTypeKind == CLASS_TYPE) {
View Full Code Here


                if (event.keyCode == SWT.F2 && event.stateMask == 0) {
                    ISelection selection = tableViewer.getSelection();
                    if (!(selection instanceof IStructuredSelection))
                        return;
                    IStructuredSelection structuredSelection = (IStructuredSelection) selection;
                    tableViewer.editElement(structuredSelection.getFirstElement(), 0);
                }
            }
        });
        GridData gd = (GridData) fSuperInterfacesDialogField.getListControl(null).getLayoutData();
        if (fTypeKind == CLASS_TYPE) {
View Full Code Here

            logger.trace("source: " + event.getSource());

            ViewerCell vc = (ViewerCell)viewer.getData("selectedCell");
            logger.trace("selectedCell: " + vc);

            viewer.editElement(item, vc.getColumnIndex());
        }
    }

    private class EncounterTrackerEditingSupport
            extends EditingSupport {
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.