1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 02:06:01 +02:00

Use the 'getReferencedProject' method to obtain all referenced projects.

This commit is contained in:
Mikhail Khodjaiants 2003-08-05 21:13:51 +00:00
parent 6d5684edff
commit 06784eca01
2 changed files with 11 additions and 10 deletions

View file

@ -1,3 +1,7 @@
2003-08-05 Mikhail Khodjaiants
Use the 'getReferencedProject' method to obtain all referenced projects.
* CDebugUtils.java
2003-08-05 Mikhail Khodjaiants 2003-08-05 Mikhail Khodjaiants
Invalidate error variables when the session is resumed. Invalidate error variables when the session is resumed.
* CVariable.java * CVariable.java

View file

@ -10,6 +10,7 @@ import java.io.IOException;
import java.io.OutputStreamWriter; import java.io.OutputStreamWriter;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Iterator;
import java.util.List; import java.util.List;
import org.apache.xml.serialize.Method; import org.apache.xml.serialize.Method;
@ -249,19 +250,15 @@ public class CDebugUtils
{ {
if ( parent != null && parent.exists() ) if ( parent != null && parent.exists() )
{ {
try List projects = CDebugUtils.getReferencedProjects( project );
Iterator it = projects.iterator();
while( it.hasNext() )
{ {
IProject[] projects = parent.getReferencedProjects(); IProject prj = (IProject)it.next();
for ( int i = 0; i < projects.length; ++i ) if ( prj.exists() && ( prj.equals( project ) ) )
{
if ( projects[i].exists() && ( projects[i].equals( project ) || isReferencedProject( projects[i], project ) ) )
return true; return true;
} }
} }
catch( CoreException e )
{
}
}
return false; return false;
} }