From 8b036e7766cc81ab8384d555c07920c1cbbebf31 Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Mon, 18 Nov 2002 15:44:58 +0000 Subject: [PATCH] Remove reference to Elf. --- .../internal/core/model/ArchiveContainer.java | 6 +++--- .../internal/core/model/BinaryContainer.java | 18 +++++------------- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/ArchiveContainer.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/ArchiveContainer.java index cc1cacaf108..d2ea2187aa0 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/ArchiveContainer.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/ArchiveContainer.java @@ -41,10 +41,10 @@ public class ArchiveContainer extends Parent implements IArchiveContainer { } 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 - cProject.setRunElf(true); - ElfRunner runner = new ElfRunner(cProject); + cProject.setStartBinaryRunner(true); + BinaryRunner runner = new BinaryRunner(cProject); Thread thread = new Thread(runner, "Archive Runner"); // thread.setPriority(Thread.NORM_PRIORITY - 1); thread.setDaemon(true); diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/BinaryContainer.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/BinaryContainer.java index b3141a9f344..57079d78b4b 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/BinaryContainer.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/BinaryContainer.java @@ -50,10 +50,10 @@ public class BinaryContainer extends Parent implements IBinaryContainer { public ICElement [] getChildren(boolean sync) { // The first time probe the entire project to discover binaries. - if (!cProject.hasRunElf()) { - cProject.setRunElf(true); - ElfRunner runner = new ElfRunner(cProject); - Thread thread = new Thread(runner, "Elf Runner"); + if (!cProject.hasStartBinaryRunner()) { + cProject.setStartBinaryRunner(true); + BinaryRunner runner = new BinaryRunner(cProject); + Thread thread = new Thread(runner, "Binary Runner"); // thread.setPriority(Thread.NORM_PRIORITY - 1); thread.setDaemon(true); thread.start(); @@ -67,17 +67,9 @@ public class BinaryContainer extends Parent implements IBinaryContainer { return super.getChildren(); } - public IResource getCorrespondingResource() { - return null; - } - - //public IResource getUnderlyingResource() { - // return null; - //} - void addChildIfExec(CoreModel factory, IFile file) { // 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)) { ICElement celement = factory.create(file); if (celement != null) {