Package org.eclipse.debug.core
Interface IMemoryBlockManager
public interface IMemoryBlockManager
Manages registered memory blocks in the workspace. Clients
interested in notification of the addition and removal of
memory blocks may register as a memory block listener with
the memory block manager.
- Since:
- 3.1
- See Also:
- Restriction:
- This interface is not intended to be implemented by clients.
- Restriction:
- This interface is not intended to be extended by clients.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(IMemoryBlockListener listener) Registers the given listener for memory block addition and removal notification.void
addMemoryBlocks
(IMemoryBlock[] memoryBlocks) Adds the given memory blocks to the memory block manager.Returns all registered memory blocks.getMemoryBlocks
(IDebugTarget debugTarget) Returns all registered memory blocks associated with the given debug target.getMemoryBlocks
(IMemoryBlockRetrieval source) Returns all registered memory blocks that originated from the given memory retrieval source.void
removeListener
(IMemoryBlockListener listener) Unregisters the given listener for memory block addition and removal notification.void
removeMemoryBlocks
(IMemoryBlock[] memoryBlocks) Removes the given memory blocks from the memory block manager.
-
Method Details
-
addMemoryBlocks
Adds the given memory blocks to the memory block manager. Registered memory block listeners are notified of the additions. Has no effect on memory blocks that are already registered.- Parameters:
memoryBlocks
- memory blocks to add
-
removeMemoryBlocks
Removes the given memory blocks from the memory block manager. Registered memory block listeners are notified of the removals. Has no effect on memory blocks that are not currently registered.- Parameters:
memoryBlocks
- memory blocks to remove
-
addListener
Registers the given listener for memory block addition and removal notification. Has no effect if an identical listener is already registered.- Parameters:
listener
- the listener to add
-
removeListener
Unregisters the given listener for memory block addition and removal notification. Has no effect if an identical listener is not already registered.- Parameters:
listener
- the listener to remove
-
getMemoryBlocks
IMemoryBlock[] getMemoryBlocks()Returns all registered memory blocks.- Returns:
- all registered memory blocks
-
getMemoryBlocks
Returns all registered memory blocks associated with the given debug target. That is, all registered memory blocks whosegetDebugTarget()
method returns the specified debug target.- Parameters:
debugTarget
- target for which memory blocks have been requested- Returns:
- all registered memory blocks associated with the given debug target
-
getMemoryBlocks
Returns all registered memory blocks that originated from the given memory retrieval source.- Parameters:
source
- source for which memory blocks have been requested- Returns:
- all registered memory blocks that originated from the given memory retrieval source
-