mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-11 02:05:39 +02:00
Remove reference to Elf.
This commit is contained in:
parent
e18952d04a
commit
8b036e7766
2 changed files with 8 additions and 16 deletions
|
@ -41,10 +41,10 @@ public class ArchiveContainer extends Parent implements IArchiveContainer {
|
||||||
}
|
}
|
||||||
|
|
||||||
public ICElement [] getChildren(boolean sync) {
|
public ICElement [] getChildren(boolean sync) {
|
||||||
if (!cProject.hasRunElf()) {
|
if (!cProject.hasStartBinaryRunner()) {
|
||||||
// It is vital to set this to true first, if not we are going to loop
|
// It is vital to set this to true first, if not we are going to loop
|
||||||
cProject.setRunElf(true);
|
cProject.setStartBinaryRunner(true);
|
||||||
ElfRunner runner = new ElfRunner(cProject);
|
BinaryRunner runner = new BinaryRunner(cProject);
|
||||||
Thread thread = new Thread(runner, "Archive Runner");
|
Thread thread = new Thread(runner, "Archive Runner");
|
||||||
// thread.setPriority(Thread.NORM_PRIORITY - 1);
|
// thread.setPriority(Thread.NORM_PRIORITY - 1);
|
||||||
thread.setDaemon(true);
|
thread.setDaemon(true);
|
||||||
|
|
|
@ -50,10 +50,10 @@ public class BinaryContainer extends Parent implements IBinaryContainer {
|
||||||
|
|
||||||
public ICElement [] getChildren(boolean sync) {
|
public ICElement [] getChildren(boolean sync) {
|
||||||
// The first time probe the entire project to discover binaries.
|
// The first time probe the entire project to discover binaries.
|
||||||
if (!cProject.hasRunElf()) {
|
if (!cProject.hasStartBinaryRunner()) {
|
||||||
cProject.setRunElf(true);
|
cProject.setStartBinaryRunner(true);
|
||||||
ElfRunner runner = new ElfRunner(cProject);
|
BinaryRunner runner = new BinaryRunner(cProject);
|
||||||
Thread thread = new Thread(runner, "Elf Runner");
|
Thread thread = new Thread(runner, "Binary Runner");
|
||||||
// thread.setPriority(Thread.NORM_PRIORITY - 1);
|
// thread.setPriority(Thread.NORM_PRIORITY - 1);
|
||||||
thread.setDaemon(true);
|
thread.setDaemon(true);
|
||||||
thread.start();
|
thread.start();
|
||||||
|
@ -67,17 +67,9 @@ public class BinaryContainer extends Parent implements IBinaryContainer {
|
||||||
return super.getChildren();
|
return super.getChildren();
|
||||||
}
|
}
|
||||||
|
|
||||||
public IResource getCorrespondingResource() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
//public IResource getUnderlyingResource() {
|
|
||||||
// return null;
|
|
||||||
//}
|
|
||||||
|
|
||||||
void addChildIfExec(CoreModel factory, IFile file) {
|
void addChildIfExec(CoreModel factory, IFile file) {
|
||||||
// Attempt to speed things up by rejecting up front
|
// Attempt to speed things up by rejecting up front
|
||||||
// Things we know should not be Elf/Binary files.
|
// Things we know should not be Binary files.
|
||||||
if (!factory.isTranslationUnit(file)) {
|
if (!factory.isTranslationUnit(file)) {
|
||||||
ICElement celement = factory.create(file);
|
ICElement celement = factory.create(file);
|
||||||
if (celement != null) {
|
if (celement != null) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue