Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 2f7d6781d53abee084045089841fd7a692172996 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*******************************************************************************
 * Copyright (c) 2004, 2008 QNX Software 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:
 * QNX Software Systems - Initial API and implementation
 *******************************************************************************/
package org.eclipse.cdt.debug.internal.ui.sourcelookup;

import org.eclipse.cdt.debug.core.sourcelookup.AbsolutePathSourceContainer;
import org.eclipse.debug.core.sourcelookup.ISourceContainer;
import org.eclipse.debug.core.sourcelookup.ISourceLookupDirector;
import org.eclipse.debug.ui.sourcelookup.AbstractSourceContainerBrowser;
import org.eclipse.swt.widgets.Shell;

/**
 * Adds a absolute path to the source lookup path.
 */
public class AbsolutePathSourceContainerBrowser extends AbstractSourceContainerBrowser {

	public ISourceContainer[] addSourceContainers(Shell shell, ISourceLookupDirector director) {
		AbsolutePathSourceContainer absolutePathSourceContainer = new AbsolutePathSourceContainer();
		return new ISourceContainer[] { absolutePathSourceContainer };
	}

}

Back to the top