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:
parent
1ce9d53a72
commit
7f3a9922f5
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue