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

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

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

  • Common ways to obtain TableViewerEditor
private void myMethod () {
TableViewerEditor t =
  • Codota IconTableViewer viewer;SWTFocusCellManager focusCellManager;ColumnViewerEditorActivationStrategy editorActivationStrategy;new TableViewerEditor(viewer, focusCellManager, editorActivationStrategy, feature)
  • Smart code suggestions by Codota
}
origin: org.eclipse.platform/org.eclipse.jface

/**
 * Create a customized editor whose activation process is customized
 *
 * @param viewer
 *            the viewer the editor is created for
 * @param editorActivationStrategy
 *            activation strategy to control if an editor activated
 * @param feature
 *            bit mask controlling the editor
 *            <ul>
 *            <li>{@link ColumnViewerEditor#DEFAULT}</li>
 *            <li>{@link ColumnViewerEditor#TABBING_CYCLE_IN_ROW}</li>
 *            <li>{@link ColumnViewerEditor#TABBING_HORIZONTAL}</li>
 *            <li>{@link ColumnViewerEditor#TABBING_MOVE_TO_ROW_NEIGHBOR}</li>
 *            <li>{@link ColumnViewerEditor#TABBING_VERTICAL}</li>
 *            </ul>
 */
public static void create(TableViewer viewer,
    ColumnViewerEditorActivationStrategy editorActivationStrategy,
    int feature) {
  create(viewer, null, editorActivationStrategy, feature);
}
origin: org.eclipse.platform/org.eclipse.jface

@Override
protected ColumnViewerEditor createViewerEditor() {
  return new TableViewerEditor(this, null,
      new ColumnViewerEditorActivationStrategy(this),
      ColumnViewerEditor.DEFAULT);
}
origin: org.eclipse.rap/org.eclipse.rap.jface

  protected void updateFocusCell(ViewerCell focusCell,
      ColumnViewerEditorActivationEvent event) {
    // Update the focus cell when we activated the editor with these 2
    // events
    if (event.eventType == ColumnViewerEditorActivationEvent.PROGRAMMATIC
        || event.eventType == ColumnViewerEditorActivationEvent.TRAVERSAL) {

      List l = getViewer().getSelectionFromWidget();

      if (!l.contains(focusCell.getElement())) {
        getViewer().setSelection(
            new StructuredSelection(focusCell.getElement()),true);
      }

      // Set the focus cell after the selection is updated because else
      // the cell is not scrolled into view
      if (focusCellManager != null) {
        focusCellManager.setFocusCell(focusCell);
      }
    }
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

@Override
protected ColumnViewerEditor createViewerEditor() {
  return new TableViewerEditor(this, null,
      new ColumnViewerEditorActivationStrategy(this),
      ColumnViewerEditor.DEFAULT);
}
origin: org.eclipse.platform/org.eclipse.jface

  @Override
  protected void updateFocusCell(ViewerCell focusCell,
      ColumnViewerEditorActivationEvent event) {
    // Update the focus cell when we activated the editor with these 2
    // events
    if (event.eventType == ColumnViewerEditorActivationEvent.PROGRAMMATIC
        || event.eventType == ColumnViewerEditorActivationEvent.TRAVERSAL) {

      List l = getViewer().getSelectionFromWidget();

      if (!l.contains(focusCell.getElement())) {
        getViewer().setSelection(
            new StructuredSelection(focusCell.getElement()), true);
      }

      // Set the focus cell after the selection is updated because else
      // the cell is not scrolled into view
      if (focusCellManager != null) {
        focusCellManager.setFocusCell(focusCell);
      }
    }
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

/**
 * Create a customized editor whose activation process is customized
 *
 * @param viewer
 *            the viewer the editor is created for
 * @param editorActivationStrategy
 *            activation strategy to control if an editor activated
 * @param feature
 *            bit mask controlling the editor
 *            <ul>
 *            <li>{@link ColumnViewerEditor#DEFAULT}</li>
 *            <li>{@link ColumnViewerEditor#TABBING_CYCLE_IN_ROW}</li>
 *            <li>{@link ColumnViewerEditor#TABBING_HORIZONTAL}</li>
 *            <li>{@link ColumnViewerEditor#TABBING_MOVE_TO_ROW_NEIGHBOR}</li>
 *            <li>{@link ColumnViewerEditor#TABBING_VERTICAL}</li>
 *            </ul>
 */
public static void create(TableViewer viewer,
    ColumnViewerEditorActivationStrategy editorActivationStrategy,
    int feature) {
  create(viewer, null, editorActivationStrategy, feature);
}
origin: org.eclipse.rap/org.eclipse.rap.jface

protected ColumnViewerEditor createViewerEditor() {
  return new TableViewerEditor(this, null,
      new ColumnViewerEditorActivationStrategy(this),
      ColumnViewerEditor.DEFAULT);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

  @Override
  protected void updateFocusCell(ViewerCell focusCell,
      ColumnViewerEditorActivationEvent event) {
    // Update the focus cell when we activated the editor with these 2
    // events
    if (event.eventType == ColumnViewerEditorActivationEvent.PROGRAMMATIC
        || event.eventType == ColumnViewerEditorActivationEvent.TRAVERSAL) {

      List l = getViewer().getSelectionFromWidget();

      if (!l.contains(focusCell.getElement())) {
        getViewer().setSelection(
            new StructuredSelection(focusCell.getElement()), true);
      }

      // Set the focus cell after the selection is updated because else
      // the cell is not scrolled into view
      if (focusCellManager != null) {
        focusCellManager.setFocusCell(focusCell);
      }
    }
  }
}
origin: org.eclipse.rap/org.eclipse.rap.jface

/**
 * Create a customized editor whose activation process is customized
 *
 * @param viewer
 *            the viewer the editor is created for
 * @param editorActivationStrategy
 *            activation strategy to control if an editor activated
 * @param feature
 *            bit mask controlling the editor
 *            <ul>
 *            <li>{@link ColumnViewerEditor#DEFAULT}</li>
 *            <li>{@link ColumnViewerEditor#TABBING_CYCLE_IN_ROW}</li>
 *            <li>{@link ColumnViewerEditor#TABBING_HORIZONTAL}</li>
 *            <li>{@link ColumnViewerEditor#TABBING_MOVE_TO_ROW_NEIGHBOR}</li>
 *            <li>{@link ColumnViewerEditor#TABBING_VERTICAL}</li>
 *            </ul>
 */
public static void create(TableViewer viewer,
    ColumnViewerEditorActivationStrategy editorActivationStrategy,
    int feature) {
  create(viewer, null, editorActivationStrategy, feature);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

  ColumnViewerEditorActivationStrategy editorActivationStrategy,
  int feature) {
TableViewerEditor editor = new TableViewerEditor(viewer,
    focusCellManager, editorActivationStrategy, feature);
viewer.setColumnViewerEditor(editor);
origin: Adobe-Marketing-Cloud/aem-eclipse-developer-tools

    | ColumnViewerEditor.KEYBOARD_ACTIVATION
    | ColumnViewerEditor.KEEP_EDITOR_ON_DOUBLE_CLICK;
TableViewerEditor.create(propertiesViewer, focusCellMgr, actSupport,
    features);
origin: org.eclipse.rap/org.eclipse.rap.jface

  ColumnViewerEditorActivationStrategy editorActivationStrategy,
  int feature) {
TableViewerEditor editor = new TableViewerEditor(viewer,
    focusCellManager, editorActivationStrategy, feature);
viewer.setColumnViewerEditor(editor);
origin: org.eclipse.platform/org.eclipse.jface

  ColumnViewerEditorActivationStrategy editorActivationStrategy,
  int feature) {
TableViewerEditor editor = new TableViewerEditor(viewer,
    focusCellManager, editorActivationStrategy, feature);
viewer.setColumnViewerEditor(editor);
org.eclipse.jface.viewersTableViewerEditor

Javadoc

This is an editor-implementation for Table

Most used methods

  • create
    Create a customized editor with focusable cells
  • <init>
  • getViewer

Popular in Java

  • Creating JSON documents from java classes using gson
  • setScale (BigDecimal)
  • getSharedPreferences (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
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