Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 351b0dfc1302b2182a9406543d7419b6b2743441 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*******************************************************************************
 * Copyright (c) 2004, 2006 IBM Corporation and others.
 *
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.debug.ui.memory;

import org.eclipse.debug.core.model.IMemoryBlock;
import org.eclipse.jface.util.IPropertyChangeListener;


/**
 * Provides facilities related to the synchronization of memory renderings.
 * <p>
 * Clients hosting renderings may implement this interface.
 * </p>
 * @since 3.1
 */
public interface IMemoryRenderingSynchronizationService {

    /**
     * Adds a listener for property changes notification for the specified properties.
     * Specifying <code>null</code> indicates that the listener is interested in all
     * properties. If an identical listener is already registered, the properties
     * it is registered to listen for are updated.
     *
     * @param listener a property change listener
     * @param properties properties the listener is interested in, or <code>null</code>
     *  to indicate all properties.
     */
    void addPropertyChangeListener(IPropertyChangeListener listener, String[] properties);

    /**
     * Removes the given listener for property change notification.
     * Has no effect if the identical listener is not registered.
     *
     * @param listener a property change listener
     */
    void removePropertyChangeListener(IPropertyChangeListener listener);

    /**
     * Returns the current value of the specified property for the given memory block, or
     * <code>null</code> if none.
     *
     * @param block memory block for which a property is requested
     * @param property the name of the property
     * @return the property value or <code>null</code>
     */
    Object getProperty(IMemoryBlock block, String property);

    /**
     * Sets the rendering currently providing sychronization information for
     * this synchronization service, or <code>null</code> if none.
     *
     * @param rendering active rendering providing synchronization information or
     *  <code>null</code>
     */
    void setSynchronizationProvider(IMemoryRendering rendering);

    /**
     * Returns the rendering currently providing synchronization information for
     * this synchronization service, or <code>null</code if none.
     *
     * @return rendering providing synchronization information or <code>null</code>
     */
    IMemoryRendering getSynchronizationProvider();
}

Back to the top