mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-125102 Message "All elements in visible range are null" should be enhanced
This commit is contained in:
@@ -34,8 +34,6 @@ public class MessageDescriptor extends NodeDescriptorImpl {
|
||||
public static final MessageDescriptor LOCAL_VARIABLES_INFO_UNAVAILABLE = new MessageDescriptor(
|
||||
DebuggerBundle.message("message.node.local.variables.debug.info.not.available")
|
||||
);
|
||||
public static final MessageDescriptor ALL_ELEMENTS_IN_VISIBLE_RANGE_ARE_NULL = new MessageDescriptor(
|
||||
DebuggerBundle.message("message.node.all.array.elements.null"));
|
||||
public static final MessageDescriptor ALL_ELEMENTS_IN_RANGE_ARE_NULL = new MessageDescriptor(
|
||||
DebuggerBundle.message("message.node.all.elements.null"));
|
||||
public static final MessageDescriptor ARRAY_IS_EMPTY = new MessageDescriptor(DebuggerBundle.message("message.node.empty.array"));
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package com.intellij.debugger.ui.tree.render;
|
||||
|
||||
import com.intellij.debugger.DebuggerBundle;
|
||||
import com.intellij.debugger.DebuggerContext;
|
||||
import com.intellij.debugger.engine.DebuggerManagerThreadImpl;
|
||||
import com.intellij.debugger.engine.evaluation.EvaluateException;
|
||||
@@ -179,10 +180,10 @@ public class ArrayRenderer extends NodeRendererImpl{
|
||||
|
||||
if (added == 0) {
|
||||
if(START_INDEX == 0 && array.length() - 1 <= END_INDEX) {
|
||||
children.add(nodeManager.createMessageNode(MessageDescriptor.ALL_ELEMENTS_IN_RANGE_ARE_NULL.getLabel()));
|
||||
children.add(nodeManager.createMessageNode(MessageDescriptor.ALL_ELEMENTS_IN_RANGE_ARE_NULL));
|
||||
}
|
||||
else {
|
||||
children.add(nodeManager.createMessageNode(MessageDescriptor.ALL_ELEMENTS_IN_VISIBLE_RANGE_ARE_NULL.getLabel()));
|
||||
children.add(nodeManager.createMessageNode(DebuggerBundle.message("message.node.all.array.elements.null", START_INDEX, END_INDEX)));
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -383,7 +383,7 @@ error.invalid.field.name=Invalid field name ''{0}''
|
||||
label.unknown.value=<unknown>
|
||||
message.node.debug.info.not.available=Debug info not available
|
||||
message.node.local.variables.debug.info.not.available=Local variables debug info not available
|
||||
message.node.all.array.elements.null=All elements in visible range are null
|
||||
message.node.all.array.elements.null=All elements in range ({0}, {1}) are null
|
||||
message.node.all.elements.null=All elements are null
|
||||
message.node.empty.array=Empty
|
||||
message.node.class.has.no.fields=Class has no fields
|
||||
|
||||
Reference in New Issue
Block a user