mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 08:46:02 +02:00
2004-06-28 Alain Magloire
Fix for PR 68820. * model/org/eclipse/cdt/internal/core/model/DeltaProcessor.java * src/org/eclipse/cdt/core/resources/FileStorage.java
This commit is contained in:
parent
6b222b30ad
commit
b98a43f436
3 changed files with 18 additions and 9 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-06-28 Alain Magloire
|
||||
|
||||
Fix for PR 68820.
|
||||
* model/org/eclipse/cdt/internal/core/model/DeltaProcessor.java
|
||||
* src/org/eclipse/cdt/core/resources/FileStorage.java
|
||||
|
||||
2004-06-28 Hoda Amer
|
||||
Patch for Keith Campbell, a small fix in CConventions.
|
||||
|
||||
|
|
|
@ -375,9 +375,8 @@ public class DeltaProcessor {
|
|||
ICElementDelta[] result = new ICElementDelta[index];
|
||||
System.arraycopy(realDeltas, 0, result, 0, index);
|
||||
return result;
|
||||
} else {
|
||||
return NO_DELTA;
|
||||
}
|
||||
return NO_DELTA;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -430,9 +429,14 @@ public class DeltaProcessor {
|
|||
IResource resource = delta.getResource();
|
||||
ICElement current = createElement(resource);
|
||||
updateChildren = updateCurrentDeltaAndIndex(delta);
|
||||
if (current == null || current instanceof ISourceRoot ||
|
||||
(current instanceof ICProject && !((ICProject)current).getProject().isOpen())) {
|
||||
if (current == null || current instanceof ISourceRoot) {
|
||||
nonCResourcesChanged(parent, delta);
|
||||
} else if (current instanceof ICProject) {
|
||||
ICProject cprj = (ICProject)current;
|
||||
CModel cModel = CModelManager.getDefault().getCModel();
|
||||
if (!cprj.getProject().isOpen() || cModel.findCProject(cprj.getProject()) == null) {
|
||||
nonCResourcesChanged(parent, delta);
|
||||
}
|
||||
} else {
|
||||
parent = current;
|
||||
}
|
||||
|
|
|
@ -40,9 +40,8 @@ public class FileStorage extends PlatformObject implements IStorage {
|
|||
throw new CoreException(new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID,
|
||||
IStatus.ERROR, e.toString(), e));
|
||||
}
|
||||
} else {
|
||||
return in;
|
||||
}
|
||||
return in;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -86,10 +85,10 @@ public class FileStorage extends PlatformObject implements IStorage {
|
|||
if (this == obj)
|
||||
return true;
|
||||
if (obj instanceof IStorage) {
|
||||
IPath path= getFullPath();
|
||||
IPath p= getFullPath();
|
||||
IPath objPath= ((IStorage)obj).getFullPath();
|
||||
if (path != null && objPath != null)
|
||||
return path.equals(objPath);
|
||||
if (p != null && objPath != null)
|
||||
return p.equals(objPath);
|
||||
}
|
||||
return super.equals(obj);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue