congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
TreeViewerFocusCellManager.getViewer
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.eclipse.jface.viewers.TreeViewerFocusCellManager.getViewer (Showing top 4 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();
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

@Override
ViewerCell getInitialFocusCell() {
  Tree tree = (Tree) getViewer().getControl();
  if (! tree.isDisposed() && tree.getItemCount() > 0 && ! tree.getTopItem().isDisposed()) {
    ViewerRow aViewerRow = getViewer().getViewerRowFromItem(tree.getTopItem());
    if (tree.getColumnCount() == 0) {
      return aViewerRow.getCell(0);
    }
    Rectangle clientArea = tree.getClientArea();
    for (int i = 0; i < tree.getColumnCount(); i++) {
      if (aViewerRow.getWidth(i) > 0 && columnInVisibleArea(clientArea,aViewerRow,i))
        return aViewerRow.getCell(i);
    }
  }
  return null;
}
origin: org.eclipse.platform/org.eclipse.jface

@Override
ViewerCell getInitialFocusCell() {
  Tree tree = (Tree) getViewer().getControl();
  if (! tree.isDisposed() && tree.getItemCount() > 0 && ! tree.getTopItem().isDisposed()) {
    ViewerRow aViewerRow = getViewer().getViewerRowFromItem(tree.getTopItem());
    if (tree.getColumnCount() == 0) {
      return aViewerRow.getCell(0);
    }
    Rectangle clientArea = tree.getClientArea();
    for (int i = 0; i < tree.getColumnCount(); i++) {
      if (aViewerRow.getWidth(i) > 0 && columnInVisibleArea(clientArea,aViewerRow,i))
        return aViewerRow.getCell(i);
    }
  }
  return null;
}
org.eclipse.jface.viewersTreeViewerFocusCellManagergetViewer

Popular methods of TreeViewerFocusCellManager

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

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • setContentView (Activity)
  • runOnUiThread (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Path (java.nio.file)
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • JTable (javax.swing)
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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