KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > core > memory > IMemoryBlockManager


1 /*******************************************************************************
2  * Copyright (c) 2004 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.debug.internal.core.memory;
13
14 import org.eclipse.debug.core.model.IDebugTarget;
15 import org.eclipse.debug.core.model.IMemoryBlock;
16 import org.eclipse.debug.core.model.IMemoryBlockRetrieval;
17
18
19 /**
20  * Manages all memory blocks in the workbench
21  * @since 3.0
22  */

23 public interface IMemoryBlockManager {
24
25     /**
26      * Tell the manager that a memory block has been added.
27      * @param mem
28      * @param addDefaultRenderings - true if default renderings are to be added
29      */

30     void addMemoryBlock(IMemoryBlock mem, boolean addDefaultRenderings);
31     
32     
33     /**
34      * Tell the manager that a memory block has been removed.
35      * @param mem
36      */

37     void removeMemoryBlock(IMemoryBlock mem);
38     
39     
40     /**
41      * Add a listener to the memory block manager.
42      * @param listener
43      */

44     void addListener(IMemoryBlockListener listener);
45     
46     
47     /**
48      * Remove a listener from the memory block manager.
49      * @param listener
50      */

51     void removeListener(IMemoryBlockListener listener);
52     
53     /**
54      * Get all memory blocks in the workbench.
55      * @return
56      */

57     public IMemoryBlock[] getAllMemoryBlocks();
58     
59     /**
60      * Get all memory blocks associated with the given debug target
61      * (i.e <memoryBlock>.getDebugTarget == debugTarget)
62      * @param debugTarget
63      * @return
64      */

65     public IMemoryBlock[] getMemoryBlocks(IDebugTarget debugTarget);
66     
67     /**
68      * Get all memory blocks associated with the given memory block retrieval.
69      * @param retrieve
70      * @return
71      */

72     public IMemoryBlock[] getMemoryBlocks(IMemoryBlockRetrieval retrieve);
73
74 }
75
Popular Tags