mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
This commit is contained in:
parent
08dab80c33
commit
6a7946eeee
4 changed files with 43 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-12-11 David Inglis
|
||||
Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=48596
|
||||
|
||||
* model/org/eclipse/cdt/internal/core/model/CModelManager.java
|
||||
|
||||
2003-12-11 Alain Magloire
|
||||
|
||||
Call the super() constructor.
|
||||
|
|
|
@ -337,6 +337,35 @@ public class CModelManager implements IResourceChangeListener {
|
|||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
ICProject cproject = celement.getCProject();
|
||||
CProjectInfo info = (CProjectInfo)peekAtInfo(cproject);
|
||||
if (info.vBin != null) {
|
||||
if (peekAtInfo(info.vBin) != null) {
|
||||
IBinary[] bins = info.vBin.getBinaries();
|
||||
for (int i = 0; i < bins.length; i++) {
|
||||
if (celement.getPath().isPrefixOf(bins[i].getPath())) {
|
||||
CElementDelta delta = new CElementDelta(getCModel());
|
||||
delta.changed(info.vBin, ICElementDelta.CHANGED);
|
||||
registerCModelDelta(delta);
|
||||
info.vBin.removeChild(bins[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (info.vLib != null) {
|
||||
if (peekAtInfo(info.vLib) != null) {
|
||||
IArchive[] ars = info.vLib.getArchives();
|
||||
for (int i = 0; i < ars.length; i++) {
|
||||
if (celement.getPath().isPrefixOf(ars[i].getPath())) {
|
||||
CElementDelta delta = new CElementDelta(getCModel());
|
||||
delta.changed(info.vLib, ICElementDelta.CHANGED);
|
||||
registerCModelDelta(delta);
|
||||
info.vLib.removeChild(ars[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2002-12-11 David Inglis
|
||||
Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=48596
|
||||
|
||||
* src/org/eclipse/cdt/ui/CElementContentProvider.java
|
||||
|
||||
2003-12-10 Alain Magloire
|
||||
|
||||
A quick fix for PR 47751. The correct way to deal with this
|
||||
|
|
|
@ -18,6 +18,8 @@ import org.eclipse.cdt.core.model.ICProject;
|
|||
import org.eclipse.cdt.core.model.IElementChangedListener;
|
||||
import org.eclipse.cdt.core.model.IParent;
|
||||
import org.eclipse.cdt.core.model.ITranslationUnit;
|
||||
import org.eclipse.cdt.internal.core.model.ArchiveContainer;
|
||||
import org.eclipse.cdt.internal.core.model.BinaryContainer;
|
||||
import org.eclipse.cdt.internal.ui.BaseCElementContentProvider;
|
||||
import org.eclipse.core.resources.IResource;
|
||||
import org.eclipse.core.resources.IResourceDelta;
|
||||
|
@ -125,6 +127,8 @@ public class CElementContentProvider extends BaseCElementContentProvider impleme
|
|||
element instanceof IBinary || element instanceof IArchive) {
|
||||
postRefresh(element);
|
||||
return;
|
||||
} else if (element instanceof ArchiveContainer || element instanceof BinaryContainer) {
|
||||
postContainerRefresh((IParent) element, element.getCProject());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue