KickJava   Java API By Example, From Geeks To Geeks.

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


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 package org.eclipse.debug.internal.core.memory;
12
13 import org.eclipse.debug.core.model.IMemoryBlock;
14
15
16 /**
17  * Implementation of IMemoryRendering
18  * @since 3.0
19  */

20 public class MemoryRendering implements IMemoryRendering
21 {
22     private IMemoryBlock fBlock;
23     private String JavaDoc fRenderingId;
24     
25     
26     public MemoryRendering(IMemoryBlock block, String JavaDoc renderingId)
27     {
28         fBlock = block;
29         fRenderingId = renderingId;
30     }
31     
32     /**
33      * @return
34      */

35     public IMemoryBlock getBlock()
36     {
37         return fBlock;
38     }
39
40     /* (non-Javadoc)
41      * @see org.eclipse.debug.core.model.IMemoryRendering#getRenderingId()
42      */

43     public String JavaDoc getRenderingId()
44     {
45         return fRenderingId;
46     }
47
48
49 }
50
Popular Tags