Search in sources :

Example 1 with ArrayRenderer

use of com.intellij.debugger.ui.tree.render.ArrayRenderer in project intellij-community by JetBrains.

the class ArrayRendererConfigurable method isModified.

public boolean isModified() {
    ArrayRenderer cloneRenderer = myRenderer.clone();
    try {
        applyTo(cloneRenderer, false);
    } catch (ConfigurationException e) {
        return true;
    }
    final boolean valuesEqual = (myRenderer.END_INDEX == cloneRenderer.END_INDEX) && (myRenderer.START_INDEX == cloneRenderer.START_INDEX) && (myRenderer.ENTRIES_LIMIT == cloneRenderer.ENTRIES_LIMIT);
    return !valuesEqual;
}
Also used : ArrayRenderer(com.intellij.debugger.ui.tree.render.ArrayRenderer) ConfigurationException(com.intellij.openapi.options.ConfigurationException)

Example 2 with ArrayRenderer

use of com.intellij.debugger.ui.tree.render.ArrayRenderer in project intellij-community by JetBrains.

the class DebugProcessImpl method getDefaultRenderer.

@NotNull
public static NodeRenderer getDefaultRenderer(Type type) {
    final NodeRendererSettings settings = NodeRendererSettings.getInstance();
    final PrimitiveRenderer primitiveRenderer = settings.getPrimitiveRenderer();
    if (primitiveRenderer.isApplicable(type)) {
        return primitiveRenderer;
    }
    final ArrayRenderer arrayRenderer = settings.getArrayRenderer();
    if (arrayRenderer.isApplicable(type)) {
        return arrayRenderer;
    }
    final ClassRenderer classRenderer = settings.getClassRenderer();
    LOG.assertTrue(classRenderer.isApplicable(type), type.name());
    return classRenderer;
}
Also used : ClassRenderer(com.intellij.debugger.ui.tree.render.ClassRenderer) ArrayRenderer(com.intellij.debugger.ui.tree.render.ArrayRenderer) NodeRendererSettings(com.intellij.debugger.settings.NodeRendererSettings) PrimitiveRenderer(com.intellij.debugger.ui.tree.render.PrimitiveRenderer) NotNull(org.jetbrains.annotations.NotNull)

Example 3 with ArrayRenderer

use of com.intellij.debugger.ui.tree.render.ArrayRenderer in project intellij-community by JetBrains.

the class ArrayIndexHelper method newRenderer.

public ArrayRenderer newRenderer(int startIdx, int endIdx) {
    ArrayRenderer result = myRenderer.clone();
    result.START_INDEX = startIdx < myArray.length() ? startIdx : 0;
    result.END_INDEX = startIdx <= endIdx ? endIdx : startIdx;
    return result;
}
Also used : ArrayRenderer(com.intellij.debugger.ui.tree.render.ArrayRenderer)

Aggregations

ArrayRenderer (com.intellij.debugger.ui.tree.render.ArrayRenderer)3 NodeRendererSettings (com.intellij.debugger.settings.NodeRendererSettings)1 ClassRenderer (com.intellij.debugger.ui.tree.render.ClassRenderer)1 PrimitiveRenderer (com.intellij.debugger.ui.tree.render.PrimitiveRenderer)1 ConfigurationException (com.intellij.openapi.options.ConfigurationException)1 NotNull (org.jetbrains.annotations.NotNull)1