mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-08 16:55:38 +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:
parent
5efea562b9
commit
8bfb8707f0
2 changed files with 7 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
||||||
2004-06-14 Hoda Amer
|
2004-06-14 Bogdan Gheorghe
|
||||||
Fix for PR 61043: Accessibility: Code Templates: New Template Pattern field accesskey broken
|
Fix for Bug 66748: Fixed in head - we now add a _cdtsrchlink_ label to all
|
||||||
Fix for PR 63388: [Refactoring] items of an enumeration not working
|
imports brought in by search and ensure that we don't delete any local files.
|
||||||
|
|
||||||
2004-06-11 Bogdan Gheorghe
|
2004-06-11 Bogdan Gheorghe
|
||||||
Fix for Bug 66016: Moved search related items from work in progress to search page
|
Fix for Bug 66016: Moved search related items from work in progress to search page
|
||||||
|
|
|
@ -87,9 +87,10 @@ public class NewSearchResultCollector extends BasicSearchResultCollector {
|
||||||
IFile refFile = CCorePlugin.getWorkspace().getRoot().getFileForLocation(refLocation);
|
IFile refFile = CCorePlugin.getWorkspace().getRoot().getFileForLocation(refLocation);
|
||||||
IProject refProject = refFile.getProject();
|
IProject refProject = refFile.getProject();
|
||||||
IPath externalMatchLocation = searchMatch.getLocation();
|
IPath externalMatchLocation = searchMatch.getLocation();
|
||||||
IFile linksFile = refProject.getFile(externalMatchLocation.lastSegment());
|
IFile linksFile = refProject.getFile("_cdtsrchlnk_" + externalMatchLocation.lastSegment()); //$NON-NLS-1$
|
||||||
//Delete links file to keep up to date with latest prefs
|
//Delete links file to keep up to date with latest prefs
|
||||||
if (linksFile.exists())
|
if (linksFile.exists() &&
|
||||||
|
linksFile.isLinked())
|
||||||
linksFile.delete(true,null);
|
linksFile.delete(true,null);
|
||||||
|
|
||||||
//Check to see if the file already exists - create if doesn't, mark team private
|
//Check to see if the file already exists - create if doesn't, mark team private
|
||||||
|
|
Loading…
Add table
Reference in a new issue