KickJava   Java API By Example, From Geeks To Geeks.

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


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
16
17 /**
18  * This interface should be implemented by views that display
19  * a memory block and wish to be synchronized with the Memory View
20  *
21  * @since 3.0
22  */

23 public interface ISynchronizedMemoryBlockView
24 {
25     /**
26      * @return the memory block that this view tab is blocking.
27      */

28     public IMemoryBlock getMemoryBlock();
29     
30     /**
31      * This function will be called when a property of the memory block
32      * being blocked is changed.
33      * @param propertyName
34      * @param value
35      */

36     public void propertyChanged(String JavaDoc propertyId, Object JavaDoc value);
37     
38     /**
39      * Return the value of a property. Return null if the property
40      * is not supported by the view tab.
41      * @param propertyId
42      * @return
43      */

44     public Object JavaDoc getProperty(String JavaDoc propertyId);
45     
46     /**
47      * @return true if the view is enabled
48      */

49     public boolean isEnabled();
50 }
51
Popular Tags