KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*******************************************************************************
2  * Copyright (c) 2004, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-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.jface.action.IAction;
14 import org.eclipse.jface.viewers.ISelectionChangedListener;
15 import org.eclipse.jface.viewers.ISelectionProvider;
16 import org.eclipse.swt.widgets.Composite;
17 import org.eclipse.swt.widgets.Control;
18
19
20 /**
21  * Represent a view pane in the memory view.
22  *
23  * This is an internal interface for mananging the view panes within the Memory View
24  * @since 3.1
25  */

26 public interface IMemoryViewPane {
27     
28     /**
29      * Create the view pane with the given parent composite, and pane
30      * id.
31      * @param parent
32      * @param paneId
33      * @param label
34      * @return the control of the view pane
35      */

36     public Control createViewPane(Composite parent, String JavaDoc paneId, String JavaDoc label);
37     
38     /**
39      * Restore view pane based on current selection from the debug view.
40      * Create memory blocks or renderings that currently exist in the debug
41      * session.
42      */

43     public void restoreViewPane();
44     
45     /**
46      * Dispose the view pane
47      */

48     public void dispose();
49     
50     /**
51      * @return unique identifier of the view pane
52      */

53     public String JavaDoc getId();
54     
55     /**
56      * @return array of actions to be contributed to the view pane's
57      * acition bar.
58      */

59     public IAction[] getActions();
60     
61     /**
62      * Add the given selection listener to the view pane. The selection
63      * listener gets notified when the selection from the view pane
64      * has changed.
65      * @param listener
66      */

67     public void addSelectionListener(ISelectionChangedListener listener);
68     
69     /**
70      * Remove the selection listener from the view pane. The listener
71      * will no longer get notified when selection is changed.
72      * @param listener
73      */

74     public void removeSelctionListener(ISelectionChangedListener listener);
75     
76     /**
77      * @return the selection provider of the view pane
78      */

79     public ISelectionProvider getSelectionProvider();
80     
81     /**
82      * @return the control for ths memory view pane
83      */

84     public Control getControl();
85     
86     /**
87      * Called when the view pane becomes visible or hidden
88      * @param visible visibility state of teh view pane
89      */

90     public void setVisible(boolean visible);
91     
92     /**
93      * @return if the view pane is currently visible
94      */

95     public boolean isVisible();
96
97 }
98
Popular Tags