KickJava   Java API By Example, From Geeks To Geeks.

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


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.DebugException;
14 import org.eclipse.debug.core.model.IMemoryBlock;
15
16
17 /**
18  * A class to be optionally implemented by plugins that
19  * wishes to create its own renderings.
20  *
21  * If this class is not specified in the redering definition, a default
22  * factory will be used and an instance of MemoryRendering will be created.
23  * @since 3.0
24  */

25 public interface IMemoryRenderingFactory {
26
27     /**
28      * @param memoryBlock
29      * @param renderingId
30      * @return the rendering created. Null if the rendering is not to be created.
31      * Throws a Debug Exception if an error has occurred.
32      */

33     IMemoryRendering createRendering(IMemoryBlock memoryBlock, String JavaDoc renderingId) throws DebugException;
34 }
35
Popular Tags