org.eclipse.debug.ui.actions
Interface IAddMemoryRenderingsTarget
-
public interface IAddMemoryRenderingsTarget
Adapter for the platform's retargettable "add memory rendering" action.
Clients implementing this adapter are expected to add the necessary memory blocks
and renderings when the adapter is invoked.
Typically, to add a memory rendering, client needs to do the following:
- Create a new memory block
- Add the new memory block to the Memory Block Manager. (
IMemoryBlockManager
)
- Create the new rendering from
IMemoryRenderingTypeDelegate
- Bring the required memory view to the top. (
IMemoryRenderingSite
)
- Find the container from the memory view to host the new memory rendering.
(
IMemoryRenderingContainer
)
- Initialize the new rendering with the appropriate memory block and container.
- Add the new rendering to the container.
Clients may implement this interface.
-
Since:
- 3.2
-
See Also:
-
AddMemoryRenderingActionDelegate
canAddMemoryRenderings
boolean canAddMemoryRenderings(
IWorkbenchPart part,
ISelection selection)
- Returns whether a memory rendering can be added from the specified
part, based on the the given selection, which is the active debug context
in the current workbench window.
-
-
Parameters:
-
part
- the part on which the action has been invoked -
selection
- the active debug context in the active workbench window
-
Throws:
-
CoreException
- if an error has occurred
addMemoryRenderings
void addMemoryRenderings(
IWorkbenchPart part,
ISelection selection,
IMemoryRenderingType[] renderingTypes)
throws
CoreException
- Adds memory renderings. Based on the part and selection (active debug context), this
adapter does the following:
- creates and adds the required memory block to the memory block manager
- creates the specified renderings and add the them
to the appropriate memory rendering containers
-
-
Parameters:
-
part
- the part on which the action has been invoked -
selection
- the active debug context -
renderingTypes
- renderings to add
-
Throws:
-
CoreException
- if unable to perform the action -
See Also:
-
IMemoryBlockRetrieval
,
IMemoryRenderingManager
,
IMemoryBlockManager
,
IMemoryRenderingSite
,
IMemoryRenderingContainer
getMemoryRenderingTypes
IMemoryRenderingType[] getMemoryRenderingTypes(
IWorkbenchPart part,
ISelection selection)
- Returns a list of rendering types that can be added from the given workbench part and active
debug context, possibly empty.
-
-
Parameters:
-
part
- the part on which the action has been invoked -
selection
- the active debug context
-
Returns:
- a list of rendering types that can be added, possibly empty
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.