org.chromium.debug.core/src/org/chromium/debug/core/ChromiumSourceComputer.java
changeset 355 8726e95bcbba
equal deleted inserted replaced
354:0bceeb415e7f 355:8726e95bcbba
       
     1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
       
     2 // Use of this source code is governed by a BSD-style license that can be
       
     3 // found in the LICENSE file.
       
     4 
       
     5 package org.chromium.debug.core;
       
     6 
       
     7 import org.eclipse.core.runtime.CoreException;
       
     8 import org.eclipse.core.runtime.IProgressMonitor;
       
     9 import org.eclipse.debug.core.ILaunchConfiguration;
       
    10 import org.eclipse.debug.core.sourcelookup.ISourceContainer;
       
    11 import org.eclipse.debug.core.sourcelookup.ISourcePathComputerDelegate;
       
    12 
       
    13 /**
       
    14  * A source path computer implementation that provides {@link VProjectSourceContainer} as
       
    15  * a default source files container for V8/Chrome debug sessions.
       
    16  */
       
    17 public class ChromiumSourceComputer implements ISourcePathComputerDelegate {
       
    18   public ISourceContainer[] computeSourceContainers(ILaunchConfiguration configuration,
       
    19       IProgressMonitor monitor) throws CoreException {
       
    20     return new ISourceContainer[] { new VProjectSourceContainer() };
       
    21   }
       
    22 }