Codota Logo
TableViewerFocusCellManager
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using org.eclipse.jface.viewers.TableViewerFocusCellManager (Showing top 6 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();
  Table t = (Table) 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.rap/org.eclipse.rap.jface

ViewerCell getInitialFocusCell() {
  Table table = (Table) getViewer().getControl();
  if (table.isDisposed() || table.getItemCount() == 0) {
   return null;
  }
  TableItem topItem = table.getItem(table.getTopIndex());
  if (topItem != null && !topItem.isDisposed()) {
    final ViewerRow aViewerRow = getViewer().getViewerRowFromItem(topItem);
    if (table.getColumnCount() == 0) {
      return aViewerRow.getCell(0);
    }
    Rectangle clientArea = table.getClientArea();
    for (int i = 0; i < table.getColumnCount(); i++) {
      if (aViewerRow.getWidth(i) > 0 && columnInVisibleArea(clientArea,aViewerRow,i))
        return aViewerRow.getCell(i);
      }
    }
  return null;
}

origin: Adobe-Marketing-Cloud/aem-eclipse-developer-tools

TableViewerFocusCellManager focusCellMgr = new TableViewerFocusCellManager(
    propertiesViewer, new FocusCellOwnerDrawHighlighter(
        propertiesViewer), strategy);
origin: org.eclipse.platform/org.eclipse.jface

@Override
ViewerCell getInitialFocusCell() {
  Table table = (Table) getViewer().getControl();
  if (!table.isDisposed() && table.getItemCount() > 0
      && !table.getItem(table.getTopIndex()).isDisposed()) {
    final ViewerRow aViewerRow = getViewer().getViewerRowFromItem(
        table.getItem(table.getTopIndex()));
    if (table.getColumnCount() == 0) {
      return aViewerRow.getCell(0);
    }
    Rectangle clientArea = table.getClientArea();
    for (int i = 0; i < table.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
ViewerCell getInitialFocusCell() {
  Table table = (Table) getViewer().getControl();
  if (!table.isDisposed() && table.getItemCount() > 0
      && !table.getItem(table.getTopIndex()).isDisposed()) {
    final ViewerRow aViewerRow = getViewer().getViewerRowFromItem(
        table.getItem(table.getTopIndex()));
    if (table.getColumnCount() == 0) {
      return aViewerRow.getCell(0);
    }
    Rectangle clientArea = table.getClientArea();
    for (int i = 0; i < table.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();
  Table t = (Table) 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.viewersTableViewerFocusCellManager

Javadoc

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

Most used methods

  • columnInVisibleArea
  • getViewer
  • setFocusCell
  • <init>
    Create a new manager

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • findViewById (Activity)
  • getApplicationContext (Context)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
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