diff options
Diffstat (limited to 'debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLookupParticipant.java')
-rw-r--r-- | debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLookupParticipant.java | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLookupParticipant.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLookupParticipant.java index 99093e2d688..acde0284b1e 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLookupParticipant.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLookupParticipant.java @@ -7,7 +7,8 @@ * * Contributors: * QNX Software Systems - Initial API and implementation - *******************************************************************************/ + * Nokia - Added support for AbsoluteSourceContainer( 159833 ) +*******************************************************************************/ package org.eclipse.cdt.debug.internal.core.sourcelookup; import java.io.File; @@ -77,23 +78,9 @@ public class CSourceLookupParticipant extends AbstractSourceLookupParticipant { else if ( object instanceof String ) { name = (String)object; } - // Workaround. See bug #91808. - if ( name != null ) { - File file = new File( name ); - if ( file.isAbsolute() && file.exists() ) { - return findSourceElementByFile( file ); - } - } return super.findSourceElements( object ); } - private Object[] findSourceElementByFile( File file ) { - IFile[] wfiles = ResourcesPlugin.getWorkspace().getRoot().findFilesForLocation( new Path( file.getPath() ) ); - if ( wfiles.length > 0 ) - return wfiles; - return new LocalFileStorage[] { new LocalFileStorage( file ) }; - } - /* (non-Javadoc) * @see org.eclipse.debug.core.sourcelookup.AbstractSourceLookupParticipant#dispose() */ |