Package 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
Modifier and TypeMethodDescriptionvoid
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
Returns whether this target will support adding memory block from the specified part.
-
Method Details
-
canAddMemoryBlocks
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 invokedselection
- 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
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
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 toIMemoryBlockManager
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 invokedselection
- the selection on which the action has been invoked- Throws:
CoreException
- if unable to perform the action- See Also:
-