mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 17:26:01 +02:00
Bug 218219.
This commit is contained in:
parent
2cd3d0b3a1
commit
c3f7d8269c
3 changed files with 31 additions and 0 deletions
|
@ -1361,6 +1361,7 @@
|
||||||
icon="icons/obj16/mapentry_obj.gif"
|
icon="icons/obj16/mapentry_obj.gif"
|
||||||
id="org.eclipse.cdt.debug.ui.sourceContainerPresentation.mapEntry"/>
|
id="org.eclipse.cdt.debug.ui.sourceContainerPresentation.mapEntry"/>
|
||||||
<sourceContainerPresentation
|
<sourceContainerPresentation
|
||||||
|
browserClass="org.eclipse.cdt.debug.internal.ui.sourcelookup.AbsolutePathSourceContainerBrowser "
|
||||||
containerTypeID="org.eclipse.cdt.debug.core.containerType.absolutePath"
|
containerTypeID="org.eclipse.cdt.debug.core.containerType.absolutePath"
|
||||||
icon="icons/obj16/abspath_obj.gif"
|
icon="icons/obj16/abspath_obj.gif"
|
||||||
id="org.eclipse.cdt.debug.ui.sourceContainerPresentation.absolutePath"/>
|
id="org.eclipse.cdt.debug.ui.sourceContainerPresentation.absolutePath"/>
|
||||||
|
|
|
@ -0,0 +1,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 };
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -16,6 +16,7 @@ AddSourceContainerDialog.1=Select the type of source to add to the source lookup
|
||||||
DownAction.0=&Down
|
DownAction.0=&Down
|
||||||
EditContainerAction.0=&Edit...
|
EditContainerAction.0=&Edit...
|
||||||
MappingSourceContainerBrowser.0=New Mapping
|
MappingSourceContainerBrowser.0=New Mapping
|
||||||
|
AbsolutePathSourceContainerBrowser.0=Absolute Path
|
||||||
PathMappingDialog.0=Specify the mapping paths
|
PathMappingDialog.0=Specify the mapping paths
|
||||||
PathMappingDialog.1=Compilation path:
|
PathMappingDialog.1=Compilation path:
|
||||||
PathMappingDialog.2=Local file system path:
|
PathMappingDialog.2=Local file system path:
|
||||||
|
|
Loading…
Add table
Reference in a new issue