congrats Icon
New! Announcing our next generation AI code completions
Read here
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

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Permission (java.security)
    Legacy security code; do not use.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • PhpStorm for WordPress
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