1
/*******************************************************************************
2
* Copyright (c) 2008, 2010 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
9
* Wind River Systems - initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.dsf.debug.service;
13
import java.util.List;
16
import org.eclipse.cdt.dsf.concurrent.ConfinedToDsfExecutor;
17
import org.eclipse.cdt.dsf.concurrent.ThreadSafeAndProhibitedFromDsfExecutor;
18
import org.eclipse.cdt.dsf.debug.service.IBreakpoints.IBreakpointDMContext;
19
import org.eclipse.core.runtime.CoreException;
20
import org.eclipse.debug.core.model.IBreakpoint;
23
* Breakpoint attribute translator is used by the {@link BreakpointsMediator}
24
* to map IDE breakpoint attributes to debugger breakpoint attributes.
26
* Note: The attribute translator is expected to access IDE breakpoint manager
27
* objects which are synchronized using the resource system. Therefore all the
28
* translator methods are called using background threads. When the attribute
29
* translator needs to access DSF services, it needs to schedule a runnable using
30
* the DSF session executable.
32
* @see BreakpointMediator
35
@ThreadSafeAndProhibitedFromDsfExecutor("")
36
public interface IBreakpointAttributeTranslator {
39
* Initializes the translator. This method is called by the breakpoint
40
* mediator service, when the mediator service is initialized.
42
@ConfinedToDsfExecutor("")
43
public void initialize(BreakpointsMediator mediator);
46
* Disposes the translator. Also called by the mediator upon service
49
@ConfinedToDsfExecutor("")
50
public void dispose();
53
* Returns whether the given IDE breakpoint is supported by this debugger.
55
public boolean supportsBreakpoint(IBreakpoint bp);
58
* Returns the target breakpoint attributes for the given IDE breakpoint.
60
public List<Map<String, Object>> getBreakpointAttributes(IBreakpoint breakpoint, boolean bpManagerEnabled) throws CoreException;
63
* Based on the given change in IDE breakpoint attributes, this method returns
64
* whether the given target breakpoint can be modified using
65
* {@link IBreakpoints#updateBreakpoint(IBreakpointDMContext, Map, org.eclipse.cdt.dsf.concurrent.RequestMonitor)}
68
public boolean canUpdateAttributes(IBreakpointDMContext bp, Map<String, Object> delta);
71
* Notifies the translator to update the given IDE breakpoint's status.
73
public void updateBreakpointStatus(IBreakpoint bp);
b'\\ No newline at end of file'