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

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

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

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
  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.ui/trace

TreeViewerFocusCellManager focusCellManager = new TreeViewerFocusCellManager(getViewer(), new FocusCellOwnerDrawHighlighter(getViewer()));
ColumnViewerEditorActivationStrategy actSupport = new ColumnViewerEditorActivationStrategy(getViewer()) {
  protected boolean isEditorActivationEvent(ColumnViewerEditorActivationEvent event) {
origin: org.eclipse.platform/org.eclipse.ui.trace

TreeViewerFocusCellManager focusCellManager = new TreeViewerFocusCellManager(getViewer(), new FocusCellOwnerDrawHighlighter(getViewer()));
ColumnViewerEditorActivationStrategy actSupport = new ColumnViewerEditorActivationStrategy(getViewer()) {
  @Override
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;
}
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.viewersTreeViewerFocusCellManager

Javadoc

This class is responsible to provide the concept of cells for Tree. This concept is needed to provide features like editor activation with the keyboard

Most used methods

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

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
  • Best plugins for Eclipse
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