org.eclipse.cdt.debug.internal.ui.views.memory
Class AddMemoryBlocks

java.lang.Object
  extended by org.eclipse.cdt.debug.internal.ui.views.memory.AddMemoryBlocks
All Implemented Interfaces:
org.eclipse.debug.ui.actions.IAddMemoryBlocksTarget

public class AddMemoryBlocks
extends java.lang.Object
implements org.eclipse.debug.ui.actions.IAddMemoryBlocksTarget

Adds memory blocks to the Memory view.

CDT adapter logic will link us to a CMemoryBlockRetrievalExtension if and only if the CDI backend support memory spaces. When this is the case, the platform will call us to add a memory monitor to the Memory view. We must put up a dialog, handle the user input, create the memory blocks with default renderings and add them to the view.

Since:
3.2

Constructor Summary
AddMemoryBlocks()
           
 
Method Summary
 void addMemoryBlocks(org.eclipse.ui.IWorkbenchPart part, org.eclipse.jface.viewers.ISelection selection)
           
 boolean canAddMemoryBlocks(org.eclipse.ui.IWorkbenchPart part, org.eclipse.jface.viewers.ISelection selection)
           
static void openError(java.lang.String title, java.lang.String message, java.lang.Exception e)
          Helper function to open an error dialog.
 boolean supportsAddMemoryBlocks(org.eclipse.ui.IWorkbenchPart part)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddMemoryBlocks

public AddMemoryBlocks()
Method Detail

addMemoryBlocks

public void addMemoryBlocks(org.eclipse.ui.IWorkbenchPart part,
                            org.eclipse.jface.viewers.ISelection selection)
                     throws org.eclipse.core.runtime.CoreException
Specified by:
addMemoryBlocks in interface org.eclipse.debug.ui.actions.IAddMemoryBlocksTarget
Throws:
org.eclipse.core.runtime.CoreException

canAddMemoryBlocks

public boolean canAddMemoryBlocks(org.eclipse.ui.IWorkbenchPart part,
                                  org.eclipse.jface.viewers.ISelection selection)
                           throws org.eclipse.core.runtime.CoreException
Specified by:
canAddMemoryBlocks in interface org.eclipse.debug.ui.actions.IAddMemoryBlocksTarget
Throws:
org.eclipse.core.runtime.CoreException

supportsAddMemoryBlocks

public boolean supportsAddMemoryBlocks(org.eclipse.ui.IWorkbenchPart part)
Specified by:
supportsAddMemoryBlocks in interface org.eclipse.debug.ui.actions.IAddMemoryBlocksTarget

openError

public static void openError(java.lang.String title,
                             java.lang.String message,
                             java.lang.Exception e)
Helper function to open an error dialog.

Parameters:
title -
message -
e -