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:
parent
f328f854fc
commit
3e1e0bb9e2
3 changed files with 13 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue