mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 06:05:24 +02:00
Use the IBinaryParser now.
This commit is contained in:
parent
afe548ff84
commit
e18952d04a
2 changed files with 14 additions and 16 deletions
|
@ -5,15 +5,19 @@ package org.eclipse.cdt.internal.core.model;
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import org.eclipse.core.runtime.IPath;
|
import org.eclipse.cdt.core.model.CModelException;
|
||||||
import org.eclipse.core.resources.IFile;
|
|
||||||
|
|
||||||
import org.eclipse.cdt.core.model.ICElement;
|
|
||||||
import org.eclipse.cdt.core.model.IArchive;
|
import org.eclipse.cdt.core.model.IArchive;
|
||||||
import org.eclipse.cdt.core.model.IBinary;
|
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 {
|
public class Archive extends CFile implements IArchive {
|
||||||
|
|
||||||
|
IResource archive;
|
||||||
|
|
||||||
public Archive(ICElement parent, IFile file) {
|
public Archive(ICElement parent, IFile file) {
|
||||||
super(parent, file);
|
super(parent, file);
|
||||||
}
|
}
|
||||||
|
@ -21,13 +25,12 @@ public class Archive extends CFile implements IArchive {
|
||||||
public Archive(ICElement parent, IPath path) {
|
public Archive(ICElement parent, IPath path) {
|
||||||
super (parent, path);
|
super (parent, path);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isReadOnly() {
|
public IResource getResource() throws CModelException {
|
||||||
return true;
|
if (archive == null) {
|
||||||
}
|
archive = new BinaryContainerAdapter(getArchiveInfo().getBinaryArchive());
|
||||||
|
}
|
||||||
public boolean isArchive() {
|
return archive;
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public IBinary[] getBinaries() {
|
public IBinary[] getBinaries() {
|
||||||
|
|
|
@ -25,11 +25,6 @@ public class Binary extends CFile implements IBinary {
|
||||||
super(parent, file, name);
|
super(parent, file, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public boolean isReadOnly () {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isBinary() {
|
public boolean isBinary() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue