1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +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
Invalidate error variables when the session is resumed.
* CVariable.java

View file

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