KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > views > memory > HexRendering


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

20 public class HexRendering implements IMemoryRendering{
21     
22     private IMemoryBlock fMemoryBlock;
23     private String JavaDoc fRenderingId;
24     
25     public HexRendering(IMemoryBlock memBlock, String JavaDoc renderingId)
26     {
27         fMemoryBlock = memBlock;
28         fRenderingId = renderingId;
29     }
30     
31
32     /* (non-Javadoc)
33      * @see org.eclipse.debug.ui.IMemoryRendering#getBlock()
34      */

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

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