Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

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:

  1. Create a new memory block
  2. Add the new memory block to the Memory Block Manager. (IMemoryBlockManager)
  3. Create the new rendering from IMemoryRenderingTypeDelegate
  4. Bring the required memory view to the top. (IMemoryRenderingSite)
  5. Find the container from the memory view to host the new memory rendering. (IMemoryRenderingContainer)
  6. Initialize the new rendering with the appropriate memory block and container.
  7. Add the new rendering to the container.

Clients may implement this interface.

Since:
3.2
See Also:
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

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:
  1. creates and adds the required memory block to the memory block manager
  2. 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

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire