1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

Fix for Bug 66748: Added a _cdtsrchlink_ label to all imports brought in by search and ensure that we don't delete any local files.

This commit is contained in:
Bogdan Gheorghe 2004-06-14 18:55:45 +00:00
parent 5efea562b9
commit 8bfb8707f0
2 changed files with 7 additions and 6 deletions

View file

@ -1,6 +1,6 @@
2004-06-14 Hoda Amer
Fix for PR 61043: Accessibility: Code Templates: New Template Pattern field accesskey broken
Fix for PR 63388: [Refactoring] items of an enumeration not working
2004-06-14 Bogdan Gheorghe
Fix for Bug 66748: Fixed in head - we now add a _cdtsrchlink_ label to all
imports brought in by search and ensure that we don't delete any local files.
2004-06-11 Bogdan Gheorghe
Fix for Bug 66016: Moved search related items from work in progress to search page

View file

@ -87,9 +87,10 @@ public class NewSearchResultCollector extends BasicSearchResultCollector {
IFile refFile = CCorePlugin.getWorkspace().getRoot().getFileForLocation(refLocation);
IProject refProject = refFile.getProject();
IPath externalMatchLocation = searchMatch.getLocation();
IFile linksFile = refProject.getFile(externalMatchLocation.lastSegment());
//Delete links file to keep up to date with latest prefs
if (linksFile.exists())
IFile linksFile = refProject.getFile("_cdtsrchlnk_" + externalMatchLocation.lastSegment()); //$NON-NLS-1$
//Delete links file to keep up to date with latest prefs
if (linksFile.exists() &&
linksFile.isLinked())
linksFile.delete(true,null);
//Check to see if the file already exists - create if doesn't, mark team private