Package org.eclipse.jface.viewers

Examples of org.eclipse.jface.viewers.CellNavigationStrategy


      propertiesTable = propertiesViewer.getTable();
      propertiesTable.setLinesVisible(true);
      propertiesTable.setHeaderVisible(true);
      propertiesTable.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 2));
     
      CellNavigationStrategy strategy = new CellNavigationStrategy();
    TableViewerFocusCellManager focusCellMgr = new TableViewerFocusCellManager(propertiesViewer,
          new FocusCellOwnerDrawHighlighter(propertiesViewer),
          strategy);
   
        ColumnViewerEditorActivationStrategy actSupport = new ColumnViewerEditorActivationStrategy(
View Full Code Here


        };
        tableParent.setLayout(tableLayout);
       
        viewer = new TableViewer(tableParent, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER | SWT.HIDE_SELECTION | SWT.FULL_SELECTION);
        TableViewerFocusCellManager focusCellManager = new TableViewerFocusCellManager(
                viewer, new FocusCellOwnerDrawHighlighter(viewer), new CellNavigationStrategy());
        ColumnViewerEditorActivationStrategy actSupport = new ColumnViewerEditorActivationStrategy(
                viewer){

            @Override
            protected boolean isEditorActivationEvent(
View Full Code Here

  /*
   * Q: teh fuck is this?
   * A: http://bingjava.appspot.com/snippet.jsp?id=2213
   */
  private void addEditorSupport(TableViewer tv) {
    final CellNavigationStrategy cellNavigation = createCellNavigationStrategy(tv);
    final TableViewerFocusCellManager focusCellManager = new TableViewerFocusCellManager(tv, new FocusCellOwnerDrawHighlighter(tv), cellNavigation);
    final ColumnViewerEditorActivationStrategy activationStrategy = createEditorActivationStrategy(tv);
    TableViewerEditor.create(tv, focusCellManager, activationStrategy,
        ColumnViewerEditor.TABBING_HORIZONTAL
        | ColumnViewerEditor.TABBING_MOVE_TO_ROW_NEIGHBOR
View Full Code Here

        | ColumnViewerEditor.KEYBOARD_ACTIVATION);
    tv.getColumnViewerEditor().addEditorActivationListener(createEditorActivationListener(tv));
  }
  private CellNavigationStrategy createCellNavigationStrategy(TableViewer tv) {
    final Table t = tv.getTable();
    return new CellNavigationStrategy() {
      @Override
      public ViewerCell findSelectedCell(ColumnViewer viewer,
          ViewerCell currentSelectedCell, Event event) {
        final ViewerCell cell = super.findSelectedCell(viewer, currentSelectedCell, event);
        if(cell != null) {
View Full Code Here

TOP

Related Classes of org.eclipse.jface.viewers.CellNavigationStrategy

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.