Example usage for org.eclipse.jface.viewers ViewerCell scrollIntoView

List of usage examples for org.eclipse.jface.viewers ViewerCell scrollIntoView

Introduction

In this page you can find the example usage for org.eclipse.jface.viewers ViewerCell scrollIntoView.

Prototype

public boolean scrollIntoView() 

Source Link

Document

Scroll the cell into view

Usage

From source file:com.netxforge.screens.editing.base.tables.SWTFocusBlockManager.java

License:Open Source License

void setFocusCell(ViewerCell focusCell, Event event) {
    ViewerCell oldCell = this.focusCell;

    if (this.focusCell != null && !this.focusCell.getItem().isDisposed()) {
        this.focusCell.getItem().removeDisposeListener(itemDeletionListener);
    }/* w w  w .j  a v  a  2s.c o  m*/

    this.focusCell = focusCell;

    if (this.focusCell != null && !this.focusCell.getItem().isDisposed()) {
        this.focusCell.getItem().addDisposeListener(itemDeletionListener);
    }

    if (focusCell != null) {
        focusCell.scrollIntoView();
    }
    this.cellHighlighter.focusCellChanged(focusCell, oldCell);
    focusBlockActionHandler.updateCommand(focusCell, getTargets(), event);
    getViewer().getControl().getAccessible().setFocus(ACC.CHILDID_SELF);
}