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

Check for Empty path in the binary and copy the []IPathEntry

for the manager.

	* model/org/eclipse/cdt/internal/core/model/Binary.java
	* model/org/eclipse/cdt/internal/core/model/PathEntryManager.java
This commit is contained in:
Alain Magloire 2004-07-15 20:41:22 +00:00
parent dbd947fc1d
commit 1e11fc16ef
3 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,11 @@
2004-07-15 Alain Magloire
Check for Empty path in the binary and copy the []IPathEntry
for the manager.
* model/org/eclipse/cdt/internal/core/model/Binary.java
* model/org/eclipse/cdt/internal/core/model/PathEntryManager.java
2004-07-15 Chris Wiebe
Initial draft for the type hierarchy view.

View file

@ -251,7 +251,7 @@ public class Binary extends Openable implements IBinary {
IPath filename = filename = symbol.getFilename();
BinaryFunction function = null;
if (filename != null) {
if (filename != null && !filename.isEmpty()) {
BinaryModule module = null;
if (hash.containsKey(filename)) {
module = (BinaryModule)hash.get(filename);

View file

@ -179,7 +179,7 @@ public class PathEntryManager implements IPathEntryStoreListener, IElementChange
resolvedEntries = (IPathEntry[])listEntries.toArray(NO_PATHENTRIES);
if (generateMarkers) {
final ICProject finalCProject = cproject;
final IPathEntry[] finalEntries = resolvedEntries;
final IPathEntry[] finalEntries = (IPathEntry[])listEntries.toArray(NO_PATHENTRIES);
Job markerTask = new Job("PathEntry Marker Job") { //$NON-NLS-1$
/* (non-Javadoc)
* @see org.eclipse.core.runtime.jobs.Job#run(org.eclipse.core.runtime.IProgressMonitor)