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

2005-03-19 Alain Magloire

PR 87336: Did not check if the resource exists.
	* model/org/eclipse/cdt/internal/core/model/Archive.java
	* model/org/eclipse/cdt/internal/core/model/Binary.java
This commit is contained in:
Alain Magloire 2005-03-19 22:14:44 +00:00
parent f328f854fc
commit 3e1e0bb9e2
3 changed files with 13 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2005-03-19 Alain Magloire
PR 87336: Did not check if the resource exists.
* model/org/eclipse/cdt/internal/core/model/Archive.java
* model/org/eclipse/cdt/internal/core/model/Binary.java
2005-03-18 Alain Magloire
Export the PathEntry Variable to the outside world.
* src/org/eclipse/cdt/internal/core/CCorePluginResources.properties

View file

@ -98,7 +98,10 @@ public class Archive extends Openable implements IArchive {
* @see org.eclipse.cdt.core.model.ICElement#exists()
*/
public boolean exists() {
return getResource() != null;
IResource res = getResource();
if (res != null)
return res.exists();
return super.exists();
}
/* (non-Javadoc)

View file

@ -371,7 +371,10 @@ public class Binary extends Openable implements IBinary {
* @see org.eclipse.cdt.core.model.ICElement#exists()
*/
public boolean exists() {
return getResource() != null;
IResource res = getResource();
if (res != null)
return res.exists();
return super.exists();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CElement#closing(java.lang.Object)