KickJava   Java API By Example, From Geeks To Geeks.

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


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.ui.views.memory;
13
14 import java.math.BigInteger JavaDoc;
15 import org.eclipse.debug.internal.core.memory.MemoryByte;
16
17 /**
18  * When a MemoryViewTab is created without a renderer defined, use
19  * this empty renderer to avoid exceptions in the code.
20  *
21  * @since 3.0
22  */

23 public class EmptyRenderer extends AbstractMemoryRenderer {
24
25     /* (non-Javadoc)
26      * @see org.eclipse.debug.internal.ui.views.memory.AbstractMemoryRenderer#getString(java.lang.String, java.math.BigInteger, org.eclipse.debug.internal.core.memory.MemoryByte[], java.lang.String)
27      */

28     public String JavaDoc getString(
29         String JavaDoc dataType,
30         BigInteger JavaDoc address,
31         MemoryByte[] data, String JavaDoc paddedStr) {
32         
33         return ""; //$NON-NLS-1$
34
}
35
36     /* (non-Javadoc)
37      * @see org.eclipse.debug.internal.ui.views.memory.AbstractMemoryRenderer#getBytes(java.lang.String, java.math.BigInteger, org.eclipse.debug.internal.core.memory.MemoryByte[], java.lang.String)
38      */

39     public byte[] getBytes(
40         String JavaDoc dataType,
41         BigInteger JavaDoc address,
42         MemoryByte[] currentValues,
43         String JavaDoc data) {
44         
45         return new byte[0];
46     }
47 }
48
Popular Tags