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

How to use
VariableContentProvider
in
org.eclipse.debug.internal.ui.model.elements

Best Java code snippets using org.eclipse.debug.internal.ui.model.elements.VariableContentProvider (Showing top 9 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.debug.ui

@Override
protected Object[] getChildren(Object parent, int index, int length, IPresentationContext context, IViewerUpdate monitor) throws CoreException {
  return getElements(getAllChildren(parent, context), index, length);
}
origin: org.eclipse.platform/org.eclipse.debug.ui

/**
 * Returns any logical value for the raw value in the specified context
 *
 * @param value
 * @param context
 * @return logical value for the raw value
 */
protected IValue getLogicalValue(IValue value, IPresentationContext context) throws CoreException {
  return getLogicalValue(value, new ArrayList<String>(), context);
}
origin: org.eclipse.platform/org.eclipse.debug.ui

/**
 * Returns any logical value for the raw value. This method will recurse
 * over the returned value until the same structure is encountered again (to
 * avoid infinite recursion).
 *
 * @param value raw value to possibly be replaced by a logical value
 * @param previousStructureIds
 *            the list of logical structures that have already been applied
 *            to the returned value during the recursion of this method.
 *            Callers should always pass in a new, empty list.
 * @return logical value if one is calculated, otherwise the raw value is returned
 */
protected IValue getLogicalValue(IValue value, List<String> previousStructureIds, IPresentationContext context) throws CoreException {
  if (isShowLogicalStructure(context)) {
    ILogicalStructureType[] types = DebugPlugin.getLogicalStructureTypes(value);
    if (types.length > 0) {
      ILogicalStructureType type = DebugPlugin.getDefaultStructureType(types);
      if (type != null && !previousStructureIds.contains(type.getId())) {
        IValue logicalValue = getLogicalStructureCache().getLogicalStructure(type, value);
        previousStructureIds.add(type.getId());
        return getLogicalValue(logicalValue, previousStructureIds, context);
      }
    }
  }
  return value;
}
origin: org.eclipse.platform/org.eclipse.debug.ui

  return EMPTY;
IValue logicalValue = getLogicalValue(value, context);
if (logicalValue instanceof IIndexedValue) {
  IIndexedValue indexedValue = (IIndexedValue) logicalValue;
  int partitionSize = computeParitionSize(indexedValue);
  if (partitionSize > 1) {
    int offset = indexedValue.getInitialOffset();
origin: org.eclipse.platform/org.eclipse.debug.ui

@Override
protected int getChildCount(Object element, IPresentationContext context, IViewerUpdate monitor) throws CoreException {
  return getAllChildren(element, context).length;
}
origin: org.eclipse/org.eclipse.jdt.debug.ui

protected boolean hasChildren(Object element, IPresentationContext context,	IViewerUpdate monitor) throws CoreException {
  if (displayReferencesAsChild(element)){
    return true;
  }
  return super.hasChildren(element, context, monitor);
}

origin: org.eclipse/org.eclipse.jdt.debug.ui

protected int getChildCount(Object element, IPresentationContext context, IViewerUpdate monitor) throws CoreException {
  int count = super.getChildCount(element, context, monitor);
  if (displayReferencesAsChild(element)){
    count++;
  }
  return count;
}

origin: org.eclipse.platform/org.eclipse.debug.ui

/**
 * Gets all the children variables for the parent
 * @param parent the parent IVariable
 * @param context the context the children will be presented in
 * @return an array of all children or an empty array if none
 * @throws CoreException
 */
protected Object[] getAllChildren(Object parent, IPresentationContext context) throws CoreException {
  IVariable variable = (IVariable) parent;
  IValue value = variable.getValue();
  if (value != null) {
    return getValueChildren(variable, value, context);
  }
  return EMPTY;
}
origin: org.eclipse.platform/org.eclipse.debug.ui

int length = value.getSize();
int partitionDepth = 0;
int preferredSize = getArrayPartitionSize();
int remainder = length % preferredSize;
length = length / preferredSize;
org.eclipse.debug.internal.ui.model.elementsVariableContentProvider

Most used methods

  • computeParitionSize
    Returns the partition size to use for the given indexed value. The partition size is computed by det
  • getAllChildren
    Gets all the children variables for the parent
  • getArrayPartitionSize
    Returns the number of entries that should be displayed in each partition of an indexed collection.
  • getChildCount
  • getElements
  • getLogicalStructureCache
    Returns the logical structure cache to use to store calculated structures. If the cache does not exi
  • getLogicalValue
    Returns any logical value for the raw value in the specified context
  • getValueChildren
    Returns children for the given value, creating array partitions if required
  • hasChildren
  • isShowLogicalStructure
    Return whether to show compute a logical structure or a raw structure in the specified context
  • update
  • update

Popular in Java

  • Updating database using SQL prepared statement
  • putExtra (Intent)
  • addToBackStack (FragmentTransaction)
  • requestLocationUpdates (LocationManager)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JTable (javax.swing)
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