author | l12wang |
Wed, 11 Nov 2009 14:48:30 -0600 | |
changeset 112 | 6b1088abccf8 |
parent 103 | 1b990d2a43dd |
permissions | -rw-r--r-- |
37 | 1 |
/******************************************************************************* |
2 |
* Copyright (c) 2008 Wind River Systems 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 |
* Wind River Systems - initial API and implementation |
|
10 |
*******************************************************************************/ |
|
11 |
package org.eclipse.cdt.dsf.debug.service; |
|
12 |
||
13 |
import java.util.List; |
|
14 |
import java.util.Map; |
|
15 |
||
16 |
import org.eclipse.cdt.dsf.concurrent.ThreadSafeAndProhibitedFromDsfExecutor; |
|
17 |
import org.eclipse.cdt.dsf.debug.service.IBreakpoints.IBreakpointDMContext; |
|
18 |
import org.eclipse.core.runtime.CoreException; |
|
19 |
import org.eclipse.debug.core.model.IBreakpoint; |
|
20 |
||
21 |
/** |
|
22 |
* Breakpoint attribute translator interface |
|
23 |
* |
|
24 |
* @since 1.0 |
|
25 |
*/ |
|
26 |
||
27 |
@ThreadSafeAndProhibitedFromDsfExecutor("") |
|
28 |
public interface IBreakpointAttributeTranslator { |
|
29 |
||
30 |
public void initialize(BreakpointsMediator mediator); |
|
31 |
||
32 |
public void dispose(); |
|
33 |
||
34 |
public List<Map<String, Object>> getBreakpointAttributes(IBreakpoint breakpoint, boolean bpManagerEnabled) throws CoreException; |
|
35 |
||
112
6b1088abccf8
Reworked BreakpointsMediator. See Eclipse bug 292468.
l12wang
parents:
103
diff
changeset
|
36 |
/** |
6b1088abccf8
Reworked BreakpointsMediator. See Eclipse bug 292468.
l12wang
parents:
103
diff
changeset
|
37 |
* Whether DSF client can handle the given attribute change itself. If not, DSF will |
6b1088abccf8
Reworked BreakpointsMediator. See Eclipse bug 292468.
l12wang
parents:
103
diff
changeset
|
38 |
* try to reinstall the breakpoint to apply the change. |
6b1088abccf8
Reworked BreakpointsMediator. See Eclipse bug 292468.
l12wang
parents:
103
diff
changeset
|
39 |
* |
6b1088abccf8
Reworked BreakpointsMediator. See Eclipse bug 292468.
l12wang
parents:
103
diff
changeset
|
40 |
* @param bp - can be null. |
6b1088abccf8
Reworked BreakpointsMediator. See Eclipse bug 292468.
l12wang
parents:
103
diff
changeset
|
41 |
* @param delta |
6b1088abccf8
Reworked BreakpointsMediator. See Eclipse bug 292468.
l12wang
parents:
103
diff
changeset
|
42 |
* @return |
6b1088abccf8
Reworked BreakpointsMediator. See Eclipse bug 292468.
l12wang
parents:
103
diff
changeset
|
43 |
*/ |
37 | 44 |
public boolean canUpdateAttributes(IBreakpointDMContext bp, Map<String, Object> delta); |
45 |
||
46 |
public boolean supportsBreakpoint(IBreakpoint bp); |
|
47 |
||
112
6b1088abccf8
Reworked BreakpointsMediator. See Eclipse bug 292468.
l12wang
parents:
103
diff
changeset
|
48 |
public void updateBreakpointStatus(IBreakpoint bp); |
37 | 49 |
} |