|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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:
IMemoryBlockManager
)IMemoryRenderingTypeDelegate
IMemoryRenderingSite
)IMemoryRenderingContainer
)Clients may implement this interface.
AddMemoryRenderingActionDelegate
Method Summary | |
---|---|
void |
addMemoryRenderings(IWorkbenchPart part,
ISelection selection,
IMemoryRenderingType[] renderingTypes)
Adds memory renderings. |
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. |
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. |
Method Detail |
public boolean canAddMemoryRenderings(IWorkbenchPart part, ISelection selection)
part
- the part on which the action has been invokedselection
- the active debug context in the active workbench window
CoreException
- if an error has occurredpublic void addMemoryRenderings(IWorkbenchPart part, ISelection selection, IMemoryRenderingType[] renderingTypes) throws CoreException
part
- the part on which the action has been invokedselection
- the active debug contextrenderingTypes
- renderings to add
CoreException
- if unable to perform the actionIMemoryBlockRetrieval
,
IMemoryRenderingManager
,
IMemoryBlockManager
,
IMemoryRenderingSite
,
IMemoryRenderingContainer
public IMemoryRenderingType[] getMemoryRenderingTypes(IWorkbenchPart part, ISelection selection)
part
- the part on which the action has been invokedselection
- the active debug context
|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.