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;
}
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;
}
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;
}
Aggregations