plugins/org.chromium.debug.core/src/org/chromium/debug/core/ChromiumSourceComputer.java
author Eugene Ostroukhov <eugeneo@symbian.org>
Tue, 31 Aug 2010 15:21:04 -0700
changeset 480 b6d992b9b998
parent 470 d4809db37847
permissions -rw-r--r--
Bugfixes

// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

package org.chromium.debug.core;

import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.sourcelookup.ISourceContainer;
import org.eclipse.debug.core.sourcelookup.ISourcePathComputerDelegate;

/**
 * A source path computer implementation that provides {@link VProjectSourceContainer} as
 * a default source files container for V8/Chrome debug sessions.
 */
public class ChromiumSourceComputer implements ISourcePathComputerDelegate {
  public ISourceContainer[] computeSourceContainers(ILaunchConfiguration configuration,
      IProgressMonitor monitor) throws CoreException {
    return new ISourceContainer[] { new VProjectSourceContainer() };
  }
}