blob: a7d7a4706240cb89cee1e88a0b617c821879c857 (
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
/*******************************************************************************
* Copyright (c) 2005, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.debug.internal.ui.contexts.provisional;
import org.eclipse.jface.viewers.ISelection;
/**
* Debug context service for a window.
*
* @since 3.2
*/
public interface IDebugContextService {
/**
* Registers for context activation notification in this service.
*
* @param listener
*/
public void addDebugContextListener(IDebugContextListener listener);
/**
* Unregisters for context activation notification in this service.
*
* @param listener
*/
public void removeDebugContextListener(IDebugContextListener listener);
/**
* Registers for context activation notification in the specified part.
*
* @param listener
* @param partId
*/
public void addDebugContextListener(IDebugContextListener listener, String partId);
/**
* Unregisters for context activation notification in the specified part.
*
* @param listener
* @param partId
*/
public void removeDebugContextListener(IDebugContextListener listener, String partId);
/**
* Returns the active context in this service's window
* or <code>null</code>.
*
* @return
*/
public ISelection getActiveContext();
/**
* Returns the active context in the specified part or <code>null</code>.
*
* @param partId
* @return
*/
public ISelection getActiveContext(String partId);
/**
* Registers for post context notification. Post listeners
* are notified of context activation and change after all
* non-post listeners are notified.
*
* @param listener
* @since 3.3
*/
public void addPostDebugContextListener(IDebugContextListener listener);
/**
* Unregisters for post context notification.
*
* @param listener
* @since 3.3
*/
public void removePostDebugContextListener(IDebugContextListener listener);
/**
* Registers for post context notification in the specified part. Post listeners
* are notified of context activation and change after all
* non-post listeners are notified.
*
* @param listener
* @param partId
* @since 3.3
*/
public void addPostDebugContextListener(IDebugContextListener listener, String partId);
/**
* Unregisters for post context notification in the specified part.
*
* @param listener
* @param partId
* @since 3.3
*/
public void removePostDebugContextListener(IDebugContextListener listener, String partId);
}
|