Interface IAddMemoryBlocksTarget


  • public interface IAddMemoryBlocksTarget
    An adapter for an "add memory block" operation. The Memory View provides a retargettable "add memory block" action that debuggers may plug into by providing an adapter (see IAdaptable) of this type.

    Clients may implement this interface.

    Since:
    3.2
    • Method Detail

      • canAddMemoryBlocks

        boolean canAddMemoryBlocks​(IWorkbenchPart part,
                                   ISelection selection)
                            throws CoreException
        Returns whether an add memory block operation can be performed from the specified part and the given selection.
        Parameters:
        part - the part on which the action has been invoked
        selection - the selection on which the action has been invoked
        Returns:
        true if the add memory block operation can be performed from the given part and selection, false otherwise
        Throws:
        CoreException - if unable to perform the action
      • supportsAddMemoryBlocks

        boolean supportsAddMemoryBlocks​(IWorkbenchPart part)
        Returns whether this target will support adding memory block from the specified part.
        Parameters:
        part - the workbench part to check
        Returns:
        true if the target wants to support adding memory block from the given part, false otherwise.
      • addMemoryBlocks

        void addMemoryBlocks​(IWorkbenchPart part,
                             ISelection selection)
                      throws CoreException
        Perform an add memory block on the given element that is currently selected in the Debug view. If a memory block can be successfully created, implementations must add the resulted memory block to IMemoryBlockManager In addition, implementations must query to see if default renderings should be created for the given memory block and add these renderings accordingly.
        Parameters:
        part - the part on which the action has been invoked
        selection - the selection on which the action has been invoked
        Throws:
        CoreException - if unable to perform the action
        See Also:
        IMemoryBlockRetrieval, IMemoryRenderingManager, IMemoryBlockManager