1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-30 21:55:31 +02:00

Use the IBinaryParser now.

This commit is contained in:
Alain Magloire 2002-11-18 15:44:21 +00:00
parent afe548ff84
commit e18952d04a
2 changed files with 14 additions and 16 deletions

View file

@ -5,15 +5,19 @@ package org.eclipse.cdt.internal.core.model;
* All Rights Reserved.
*/
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.resources.IFile;
import org.eclipse.cdt.core.model.ICElement;
import org.eclipse.cdt.core.model.CModelException;
import org.eclipse.cdt.core.model.IArchive;
import org.eclipse.cdt.core.model.IBinary;
import org.eclipse.cdt.core.model.ICElement;
import org.eclipse.cdt.internal.core.model.parser.BinaryContainerAdapter;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IPath;
public class Archive extends CFile implements IArchive {
IResource archive;
public Archive(ICElement parent, IFile file) {
super(parent, file);
}
@ -21,13 +25,12 @@ public class Archive extends CFile implements IArchive {
public Archive(ICElement parent, IPath path) {
super (parent, path);
}
public boolean isReadOnly() {
return true;
}
public boolean isArchive() {
return true;
public IResource getResource() throws CModelException {
if (archive == null) {
archive = new BinaryContainerAdapter(getArchiveInfo().getBinaryArchive());
}
return archive;
}
public IBinary[] getBinaries() {

View file

@ -25,11 +25,6 @@ public class Binary extends CFile implements IBinary {
super(parent, file, name);
}
public boolean isReadOnly () {
return true;
}
public boolean isBinary() {
return true;
}