Codota Logo
TreeViewerFocusCellManager.getViewer
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
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

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • compareTo (BigDecimal)
  • getApplicationContext (Context)
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • JFrame (javax.swing)
  • Runner (org.openjdk.jmh.runner)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now