Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorMikhail Khodjaiants2003-10-23 17:39:28 +0000
committerMikhail Khodjaiants2003-10-23 17:39:28 +0000
commit28ca11c7da3a17356c239e01a4a05c19103f486d (patch)
tree370df27f804f2ad4252ad81ec1ceab0c6834fb44 /debug
parente726ac9355c039b256b8ec92349e95027cee0eff (diff)
downloadorg.eclipse.cdt-28ca11c7da3a17356c239e01a4a05c19103f486d.tar.gz
org.eclipse.cdt-28ca11c7da3a17356c239e01a4a05c19103f486d.tar.xz
org.eclipse.cdt-28ca11c7da3a17356c239e01a4a05c19103f486d.zip
Fall back to the previous version.
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLocator.java11
1 files changed, 2 insertions, 9 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLocator.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLocator.java
index e1140008edb..bff11bee30d 100644
--- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLocator.java
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLocator.java
@@ -23,7 +23,6 @@ import javax.xml.parsers.ParserConfigurationException;
import org.apache.xerces.dom.DocumentImpl;
import org.eclipse.cdt.debug.core.CDebugCorePlugin;
import org.eclipse.cdt.debug.core.CDebugUtils;
-import org.eclipse.cdt.debug.core.ICDebugConstants;
import org.eclipse.cdt.debug.core.model.IStackFrameInfo;
import org.eclipse.cdt.debug.core.sourcelookup.ICSourceLocation;
import org.eclipse.cdt.debug.core.sourcelookup.ICSourceLocator;
@@ -317,13 +316,7 @@ public class CSourceLocator implements ICSourceLocator, IPersistableSourceLocato
*/
public void initializeDefaults( ILaunchConfiguration configuration ) throws CoreException
{
- ICSourceLocation[] defaultLocations = getDefaultSourceLocations();
- ICSourceLocation[] commonLocations = CDebugCorePlugin.getDefault().getCommonSourceLocations();
- List list = new ArrayList( defaultLocations.length + commonLocations.length );
- list.addAll( Arrays.asList( defaultLocations ) );
- list.addAll( Arrays.asList( commonLocations ) );
- setSourceLocations( (ICSourceLocation[])list.toArray( new ICSourceLocation[list.size()] ) );
- fDuplicateFiles = CDebugCorePlugin.getDefault().getPluginPreferences().getBoolean( ICDebugConstants.PREF_SEARCH_DUPLICATE_FILES );
+ setSourceLocations( getDefaultSourceLocations() );
}
/* (non-Javadoc)
@@ -669,7 +662,7 @@ public class CSourceLocator implements ICSourceLocator, IPersistableSourceLocato
IProject project = (IProject)it.next();
if ( project != null && project.exists() && project.isOpen() )
list.add( SourceLocationFactory.createProjectSourceLocation( project ) );
- }
+ }
return (ICSourceLocation[])list.toArray( new ICSourceLocation[list.size()] );
}

Back to the top