Codota Logo
ViewerCell.getElement
Code IndexAdd Codota to your IDE (free)

How to use
getElement
method
in
org.eclipse.jface.viewers.ViewerCell

Best Java code snippets using org.eclipse.jface.viewers.ViewerCell.getElement (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: stackoverflow.com

if(buttons.containsKey(cell.getElement()))
  button = buttons.get(cell.getElement());
  buttons.put(cell.getElement(), button);
origin: de.dentrassi.eclipse.neoscada.hmi/org.eclipse.scada.ca.ui.editor.forms.common

  @Override
  public void update ( final ViewerCell cell )
  {
    cell.setText ( String.format ( "%s", ( (Map.Entry<?, ?>)cell.getElement () ).getValue () ) );
  }
} );
origin: org.eclipse/org.eclipse.jdt.ui

public void update(ViewerCell cell) {
  ParameterInfo pi= (ParameterInfo) cell.getElement();
  cell.setText(doGetValue(pi));
}
origin: org.eclipse.rap/org.eclipse.rap.jface

  public void update(ViewerCell cell) {
    cell.setText(((IStatus) cell.getElement()).getMessage());
  }
};
origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
public void update(ViewerCell cell) {
  ParameterInfo pi= (ParameterInfo) cell.getElement();
  cell.setText(doGetValue(pi));
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
public void update(ViewerCell cell) {
  Field pi= (Field) cell.getElement();
  cell.setText(doGetValue(pi));
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

  @Override
  public void update(ViewerCell cell) {
    cell.setText(((IStatus) cell.getElement()).getMessage());
  }
};
origin: org.apache.uima/uimaj-ep-cas-editor

@Override
public void update(ViewerCell cell) {
 Type type = (Type) cell.getElement();
 cell.setText(type.getName());
}});
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.ide

  @Override
  public void update(ViewerCell cell) {
    cell.setText(getText(cell.getElement()));
    Color color = getForeground(cell.getElement());
    if (color != null) {
      cell.setForeground(color);
    }
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.ide

  @Override
  public void update(ViewerCell cell) {
    cell.setText(getText(cell.getElement()));
    Color color = getForeground(cell.getElement());
    if (color != null) {
      cell.setForeground(color);
    }
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.ide

  @Override
  public void update(ViewerCell cell) {
    super.update(cell);
    cell.setImage(getImage(cell.getElement()));
  }
}
origin: org.eclipse.pde/org.eclipse.pde.ui

@Override
public void update(ViewerCell cell) {
  StyledString string = getStyledText(cell.getElement());
  cell.setText(string.getString());
  cell.setStyleRanges(string.getStyleRanges());
  cell.setImage(getImage(cell.getElement()));
  super.update(cell);
}
origin: org.eclipse.egit/ui

public void update(ViewerCell cell) {
  StyledString string = getStyledText(cell.getElement());
  cell.setText(string.getString());
  cell.setStyleRanges(string.getStyleRanges());
  cell.setImage(getImage(cell.getElement()));
  super.update(cell);
}
origin: org.eclipse.pde/org.eclipse.pde.ui

@Override
public void update(ViewerCell cell) {
  StyledString string = getStyledText(cell.getElement());
  cell.setText(string.getString());
  cell.setStyleRanges(string.getStyleRanges());
  cell.setImage(getImage(cell.getElement()));
  super.update(cell);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.ide

  @Override
  public void update(ViewerCell cell) {
    super.update(cell);

    MarkerItem item = (MarkerItem) cell.getElement();
    cell.setImage(annotateImage(item, getImage(item)));
  }
}
origin: org.eclipse.rap/org.eclipse.rap.jface

private boolean isCellEditable(ColumnViewer viewer, ViewerCell cell) {
  ViewerColumn column = viewer.getViewerColumn(cell.getColumnIndex());
  return column != null && column.getEditingSupport() != null
      && column.getEditingSupport().canEdit(cell.getElement());
}
origin: org.eclipse.platform/org.eclipse.ant.ui

@Override
public void update(ViewerCell cell) {
  Object obj = cell.getElement();
  StyledString str = getStyledText(obj);
  cell.setText(str.toString());
  cell.setStyleRanges(str.getStyleRanges());
  cell.setImage(getImage(obj));
}
origin: RepreZen/KaiZen-OpenAPI-Editor

@Override
public void update(ViewerCell cell) {
  Object element = cell.getElement();
  if (element instanceof AbstractNode) {
    StyledString styledString = getStyledString((AbstractNode) element);
    cell.setText(styledString.toString());
    cell.setStyleRanges(styledString.getStyleRanges());
    cell.setImage(getImage(getIcon((AbstractNode) element)));
  }
}
origin: org.eclipse.platform/org.eclipse.jface

@Override
public void update(ViewerCell cell) {
  Object element = cell.getElement();
  cell.setText(getText(element));
  Image image = getImage(element);
  cell.setImage(image);
  cell.setBackground(getBackground(element));
  cell.setForeground(getForeground(element));
  cell.setFont(getFont(element));
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

@Override
public void update(ViewerCell cell) {
  Object element = cell.getElement();
  cell.setText(getText(element));
  Image image = getImage(element);
  cell.setImage(image);
  cell.setBackground(getBackground(element));
  cell.setForeground(getForeground(element));
  cell.setFont(getFont(element));
}
org.eclipse.jface.viewersViewerCellgetElement

Javadoc

Get the element this row represents.

Popular methods of ViewerCell

  • setText
    Set the text for the cell.
  • setImage
    Set the Image for the cell.
  • setStyleRanges
    Set the style ranges to be applied on the text label Note: Requires StyledCellLabelProvider with own
  • getColumnIndex
    Get the index of the cell.
  • getText
    Return the text for the cell.
  • setBackground
    Set the background color of the cell.
  • setForeground
    Set the foreground color of the cell.
  • getItem
    Return the item for the receiver.
  • setFont
    Set the font of the cell.
  • getViewerRow
  • getBounds
    Get the bounds of the cell.
  • getImage
    Return the Image for the cell.
  • getBounds,
  • getImage,
  • getStyleRanges,
  • <init>,
  • equals,
  • getControl,
  • getNeighbor,
  • getVisualIndex,
  • isVisible

Popular in Java

  • Start an intent from android
  • putExtra (Intent)
  • requestLocationUpdates (LocationManager)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
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