congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
TreeViewerFocusCellManager.setFocusCell
Code IndexAdd Tabnine to your IDE (free)

How to use
setFocusCell
method
in
org.eclipse.jface.viewers.TreeViewerFocusCellManager

Best Java code snippets using org.eclipse.jface.viewers.TreeViewerFocusCellManager.setFocusCell (Showing top 2 results out of 315)

origin: org.eclipse.platform/org.eclipse.jface

  @Override
  public ViewerCell getFocusCell() {
    ViewerCell cell = super.getFocusCell();
    Tree t = (Tree) getViewer().getControl();

    // It is possible that the selection has changed under the hood
    if (cell != null) {
      if (t.getSelection().length == 1
          && t.getSelection()[0] != cell.getItem()) {
        setFocusCell(getViewer().getViewerRowFromItem(
            t.getSelection()[0]).getCell(cell.getColumnIndex()));
      }
    }

    return super.getFocusCell();
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

  @Override
  public ViewerCell getFocusCell() {
    ViewerCell cell = super.getFocusCell();
    Tree t = (Tree) getViewer().getControl();

    // It is possible that the selection has changed under the hood
    if (cell != null) {
      if (t.getSelection().length == 1
          && t.getSelection()[0] != cell.getItem()) {
        setFocusCell(getViewer().getViewerRowFromItem(
            t.getSelection()[0]).getCell(cell.getColumnIndex()));
      }
    }

    return super.getFocusCell();
  }
}
org.eclipse.jface.viewersTreeViewerFocusCellManagersetFocusCell

Popular methods of TreeViewerFocusCellManager

  • <init>
    Create a new manager with a custom navigation strategy
  • columnInVisibleArea
  • getViewer

Popular in Java

  • Updating database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • runOnUiThread (Activity)
  • onRequestPermissionsResult (Fragment)
  • Kernel (java.awt.image)
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • IsNull (org.hamcrest.core)
    Is the value null?
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now