Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: f63b9740dea3ffeb1bfc373d906d2d8ee09af0a6 (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
/*******************************************************************************
 * Copyright (c) 2008 ARM Limited 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:
 * ARM Limited - Initial API and implementation
 *******************************************************************************/

package org.eclipse.cdt.debug.core.disassembly;

/**
 * Interface for registering the disassembly context objects. 
 * <p>
 * Clients interested in the context change notifications 
 * may register a listener.
 * </p>
 * <p>
 * This interface is not intended to be implemented by clients. 
 * It can be accessed from <code>CDebugCorePlugin</code>.
 * </p>
 * @see org.eclipse.cdt.debug.core.IDisassemblyContextListener
 * 
 * This interface is experimental.
 */
public interface IDisassemblyContextService {

    /**
     * Adds the given listener to the collection of registered listeners.
     * Has no effect if an identical listener is already registered.
     *
     * @param listener the listener to add
     */
    public void addDisassemblyContextListener( IDisassemblyContextListener listener );

    /**
     * Removes the given listener from the collection of registered listeners.
     * Has no effect if an identical listener is not already registered.
     *
     * @param listener the listener to remove   
     */
    public void removeDisassemblyContextListener( IDisassemblyContextListener listener );

    /**
     * Registers the given context with this service. 
     * Has no effect if an identical context has already been registered. 
     * The corresponding notifications will be sent to all registered listeners.
     *  
     * @param disassemblyContext the context to register.
     */
    public void register( Object disassemblyContext );

    /**
     * Unregisters the given context with this service. 
     * Has no effect if an identical context has not been registered. 
     * The corresponding notifications will be sent to all registered listeners.
     *  
     * @param disassemblyContext the context to unregister.
     */
    public void unregister( Object disassemblyContext );
}

Back to the top