mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Avoid calling a deprecated method.
This commit is contained in:
parent
501fad33d6
commit
14d28761a1
2 changed files with 5 additions and 5 deletions
|
@ -29,9 +29,9 @@ import org.eclipse.cdt.debug.core.CDebugCorePlugin;
|
|||
import org.eclipse.cdt.debug.core.CDebugUtils;
|
||||
import org.eclipse.cdt.debug.core.sourcelookup.ICSourceLocation;
|
||||
import org.eclipse.cdt.debug.core.sourcelookup.IDirectorySourceLocation;
|
||||
import org.eclipse.cdt.internal.core.resources.ResourceLookup;
|
||||
import org.eclipse.core.resources.IFile;
|
||||
import org.eclipse.core.resources.IStorage;
|
||||
import org.eclipse.core.resources.ResourcesPlugin;
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
import org.eclipse.core.runtime.IPath;
|
||||
import org.eclipse.core.runtime.IStatus;
|
||||
|
@ -196,7 +196,7 @@ public class CDirectorySourceLocation implements IDirectorySourceLocation {
|
|||
}
|
||||
|
||||
// Try for a file in another workspace project
|
||||
IFile[] wsFiles = ResourcesPlugin.getWorkspace().getRoot().findFilesForLocation(filePath);
|
||||
IFile[] wsFiles = ResourceLookup.findFilesForLocation(filePath);
|
||||
LinkedList<IFile> list = new LinkedList<IFile>();
|
||||
for (int j = 0; j < wsFiles.length; ++j)
|
||||
if (wsFiles[j].exists()) {
|
||||
|
@ -247,7 +247,7 @@ public class CDirectorySourceLocation implements IDirectorySourceLocation {
|
|||
File file = path.toFile();
|
||||
if (file.exists() && file.isFile()) {
|
||||
path = new Path(file.getAbsolutePath());
|
||||
IFile[] wsFiles = ResourcesPlugin.getWorkspace().getRoot().findFilesForLocation(path);
|
||||
IFile[] wsFiles = ResourceLookup.findFilesForLocation(path);
|
||||
LinkedList<IFile> list = new LinkedList<IFile>();
|
||||
for (int j = 0; j < wsFiles.length; ++j)
|
||||
if (wsFiles[j].exists()) {
|
||||
|
|
|
@ -19,8 +19,8 @@ import org.eclipse.cdt.core.model.ICProject;
|
|||
import org.eclipse.cdt.debug.core.CDebugCorePlugin;
|
||||
import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants;
|
||||
import org.eclipse.cdt.internal.core.model.ExternalTranslationUnit;
|
||||
import org.eclipse.cdt.internal.core.resources.ResourceLookup;
|
||||
import org.eclipse.core.resources.IFile;
|
||||
import org.eclipse.core.resources.ResourcesPlugin;
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
import org.eclipse.core.runtime.IPath;
|
||||
import org.eclipse.core.runtime.Path;
|
||||
|
@ -117,7 +117,7 @@ public class MapEntrySourceContainer extends AbstractSourceContainer {
|
|||
path = path.removeFirstSegments(getBackendPath().segmentCount());
|
||||
path = getLocalPath().append(path);
|
||||
|
||||
IFile[] wsFiles = ResourcesPlugin.getWorkspace().getRoot().findFilesForLocation(path);
|
||||
IFile[] wsFiles = ResourceLookup.findFilesForLocation(path);
|
||||
ArrayList<IFile> list = new ArrayList<IFile>();
|
||||
for (int j = 0; j < wsFiles.length; ++j) {
|
||||
if (wsFiles[j].exists()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue