KickJava   Java API By Example, From Geeks To Geeks.

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


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 org.eclipse.debug.core.model.IMemoryBlock;
15 import org.eclipse.debug.internal.core.memory.IMemoryRendering;
16 import org.eclipse.jface.action.MenuManager;
17 import org.eclipse.swt.widgets.TabItem;
18
19
20 /**
21  * Class responsible for creating an IMemoryViewTab based on the given parameters.
22  *
23  * @since 3.0
24  */

25 public interface IMemoryViewTabFactory {
26
27     /**
28      * Create a view tab based on the given parameters.
29      * @param newMemory is the memory block to be blocked by this memory view tab.
30      * The view tab is responsible for blocking changes from the memory block and refreshing
31      * its content accordingly.
32      * @param newTab is the tab item in the Memory View or Memory Rendering View
33      * used to display this view tab. Implementor needs to set the created memory view
34      * tab as the data in the tab item. (i.e. call newTab.setData(memory view tab))
35      * @param menuMgr is the menuger manager the view tab should used in creation of
36      * its context menu.
37      * @param rendering is the rendering to be displayed by the view tab
38      * @param renderer is the object responsible for converting bytes to string and vice versa. This field
39      * is optional and can be null.
40      * @return the memory view tab created, null if the view tab cannot be created
41      */

42     public IMemoryViewTab createViewTab(IMemoryBlock newMemory, TabItem newTab, MenuManager menuMgr, IMemoryRendering rendering, AbstractMemoryRenderer renderer);
43     
44 }
45
Popular Tags