1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Bug 309032: Need APIs to support memory pages (or memory spaces). Don't show memory spaces if there are less than two memory spaces.

This commit is contained in:
John Cortell 2010-05-18 15:44:54 +00:00
parent 34caecd0e1
commit 36e5cb1427

View file

@ -771,7 +771,10 @@ public class MemoryBrowser extends ViewPart implements IDebugContextListener, IM
return; return;
} }
if (memorySpaces.length > 0) { // Don't expose the memory spaces widget if there are none or
// only one memory space involved.
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=309032#c50
if (memorySpaces.length >= 2) {
fGotoMemorySpaceControl.setItems(memorySpaces); fGotoMemorySpaceControl.setItems(memorySpaces);
fGotoMemorySpaceControl.add(NA_MEMORY_SPACE_ID, 0); //$NON-NLS-1$ the n/a entry; don't think this needs to be translated fGotoMemorySpaceControl.add(NA_MEMORY_SPACE_ID, 0); //$NON-NLS-1$ the n/a entry; don't think this needs to be translated
setMemorySpaceControlVisible(true); setMemorySpaceControlVisible(true);