1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-10 09:45:39 +02:00

Don't show the custom memory-space savy Add Monitor dialog if there's only one memory space.

This commit is contained in:
John Cortell 2008-09-18 16:31:32 +00:00
parent 1ce9d53a72
commit 7f3a9922f5

View file

@ -38,9 +38,11 @@ public class CMemoryAdapterFactory implements IAdapterFactory {
return adaptableObject;
}
// If the target supports memory spaces and there's more than one
// available, we use a custom Add Monitor dialog
if (adapterType.equals(IAddMemoryBlocksTarget.class)) {
if (adaptableObject instanceof CMemoryBlockRetrievalExtension) {
if (((CMemoryBlockRetrievalExtension)adaptableObject).hasMemorySpaces())
if (((CMemoryBlockRetrievalExtension)adaptableObject).getMemorySpaces().length > 1)
return fgAddMemoryBlocks;
}
}