1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

override the exists() methos for Binary/Archive.

This commit is contained in:
Alain Magloire 2004-03-01 04:18:38 +00:00
parent 7ba1b68964
commit a5e59ef207
3 changed files with 16 additions and 1 deletions

View file

@ -12,6 +12,9 @@
* model/org/eclipse/cdt/internal/core/model/CModelManager.java
* model/org/eclipse/cdt/internal/core/model/DeltaProcessor.java
* model/org/eclipse/cdt/internal/core/model/Binary.java
* model/org/eclipse/cdt/internal/core/model/Archive.java
2004-02-28 Alain Magloire
Fix PE Parser

View file

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

View file

@ -182,7 +182,7 @@ public class Binary extends Openable implements IBinary {
return true;
}
public CElementInfo createElementInfo() {
public CElementInfo createElementInfo() {
return new BinaryInfo(this);
}
@ -326,4 +326,10 @@ public class Binary extends Openable implements IBinary {
return true;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#exists()
*/
public boolean exists() {
return getResource() != null;
}
}