Eclipse Platform
Release 3.2

org.eclipse.debug.ui.actions
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 Summary
 void addMemoryBlocks(IWorkbenchPart part, ISelection selection)
          Perform an add memory block on the given element that is currently selected in the Debug view.
 boolean canAddMemoryBlocks(IWorkbenchPart part, ISelection selection)
          Returns whether an add memory block operation can be performed from the specified part and the given selection.
 boolean supportsAddMemoryBlocks(IWorkbenchPart part)
          Returns whether this target will support adding memory block from the specified part.
 

Method Detail

canAddMemoryBlocks

public 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
Throws:
CoreException - if unable to perform the action

supportsAddMemoryBlocks

public boolean supportsAddMemoryBlocks(IWorkbenchPart part)
Returns whether this target will support adding memory block from the specified part.

Parameters:
part -
Returns:
true if the target wants to support adding memory block from the given part, false otherwise.

addMemoryBlocks

public 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

Eclipse Platform
Release 3.2

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.