View | Details | Raw Unified | Return to bug 69085 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/cdt/debug/internal/ui/CDTDebugModelPresentation.java (+13 lines)
Lines 37-42 Link Here
37
import org.eclipse.cdt.debug.core.model.ICWatchpoint;
37
import org.eclipse.cdt.debug.core.model.ICWatchpoint;
38
import org.eclipse.cdt.debug.core.model.IDummyStackFrame;
38
import org.eclipse.cdt.debug.core.model.IDummyStackFrame;
39
import org.eclipse.cdt.debug.core.model.IState;
39
import org.eclipse.cdt.debug.core.model.IState;
40
import org.eclipse.cdt.debug.internal.core.model.CArrayPartitionValue;
40
import org.eclipse.cdt.debug.internal.ui.editors.CDebugEditor;
41
import org.eclipse.cdt.debug.internal.ui.editors.CDebugEditor;
41
import org.eclipse.cdt.debug.internal.ui.editors.EditorInputDelegate;
42
import org.eclipse.cdt.debug.internal.ui.editors.EditorInputDelegate;
42
import org.eclipse.cdt.debug.internal.ui.editors.FileNotFoundElement;
43
import org.eclipse.cdt.debug.internal.ui.editors.FileNotFoundElement;
Lines 338-343 Link Here
338
					return label.toString();
339
					return label.toString();
339
				}
340
				}
340
			}
341
			}
342
			if (element instanceof IValue) {
343
                return getValueText((IValue) element);
344
            }
341
			if ( label.length() > 0 ) {
345
			if ( label.length() > 0 ) {
342
				return label.toString();
346
				return label.toString();
343
			}
347
			}
Lines 557-562 Link Here
557
			label += (qualified ? path.toOSString() : path.lastSegment());
561
			label += (qualified ? path.toOSString() : path.lastSegment());
558
		return label;
562
		return label;
559
	}
563
	}
564
565
	/** Build the text for an IValue. */
566
    private String getValueText(IValue value) throws DebugException {
567
        if (value instanceof CArrayPartitionValue) {
568
            return ((CArrayPartitionValue) value).getReferenceTypeName();
569
        } else {
570
            return getDefaultText(value);
571
        }
572
    }
560
573
561
	/**
574
	/**
562
	 * Plug in the single argument to the resource String for the key to get a formatted resource String.
575
	 * Plug in the single argument to the resource String for the key to get a formatted resource String.

Return to bug 69085