blob: 69d77b5bee7f4be217cf00edce4b6f2510f6bd96 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
/*******************************************************************************
* Copyright (c) 2004, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.debug.ui.memory;
/**
* A memory rendering container is a container within a memory rendering site
* for hosting a memory renderings.
* <p>
* Clients hosting memory renderings may implement this interface.
* </p>
* @since 3.1
*/
public interface IMemoryRenderingContainer {
/**
* Returns the rendering site hosting this container.
*
* @return the rendering site hosting this container
*/
IMemoryRenderingSite getMemoryRenderingSite();
/**
* Returns the identifier of this container. Identifiers
* are unique within a container.
*
* @return the identifier of this container
*/
String getId();
/**
* Adds the given rendering to this container. A rendering must be
* initialized before it is added to a container. This causes
* the rendering's control to be created.
*
* @param rendering the rendering to add
*/
void addMemoryRendering(IMemoryRendering rendering);
/**
* Removes the given rendering from this container. This
* causes the rendering to be disposed.
*
* @param rendering the rendering to remove
*/
void removeMemoryRendering(IMemoryRendering rendering);
/**
* Returns all renderings currently hosted by this container.
*
* @return all renderings currently hosted by this container
*/
IMemoryRendering[] getRenderings();
/**
* Returns the active rendering in this container, or <code>null</code>
* if none.
*
* @return the active rendering in this container, or <code>null</code>
* if none
*/
IMemoryRendering getActiveRendering();
/**
* Returns the label for this container.
*
* @return the label for this container
*/
String getLabel();
}
|