cdt/cdt_6_0_x/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/service/IBreakpointAttributeTranslator.java
author l12wang
Wed, 11 Nov 2009 14:48:30 -0600
changeset 112 6b1088abccf8
parent 103 1b990d2a43dd
permissions -rw-r--r--
Reworked BreakpointsMediator. See Eclipse bug 292468.

/*******************************************************************************
 * Copyright (c) 2008 Wind River Systems 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:
 *     Wind River Systems - initial API and implementation
 *******************************************************************************/
package org.eclipse.cdt.dsf.debug.service;

import java.util.List;
import java.util.Map;

import org.eclipse.cdt.dsf.concurrent.ThreadSafeAndProhibitedFromDsfExecutor;
import org.eclipse.cdt.dsf.debug.service.IBreakpoints.IBreakpointDMContext;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.debug.core.model.IBreakpoint;

/**
 * Breakpoint attribute translator interface
 * 
 * @since 1.0
 */

@ThreadSafeAndProhibitedFromDsfExecutor("")
public interface IBreakpointAttributeTranslator {
    
    public void initialize(BreakpointsMediator mediator);
    
    public void dispose();
    
    public List<Map<String, Object>> getBreakpointAttributes(IBreakpoint breakpoint, boolean bpManagerEnabled)  throws CoreException;
    
    /**
     * Whether DSF client can handle the given attribute change itself. If not, DSF will 
     * try to reinstall the breakpoint to apply the change.
     *  
     * @param bp - can be null.
     * @param delta
     * @return
     */
    public boolean canUpdateAttributes(IBreakpointDMContext bp, Map<String, Object> delta);

    public boolean supportsBreakpoint(IBreakpoint bp);

    public void updateBreakpointStatus(IBreakpoint bp);
}