mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-25 18:05:33 +02:00
This commit is contained in:
parent
9b2e58256f
commit
b67b0d9139
4 changed files with 43 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2003-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-04 David Inglis
|
2003-12-04 David Inglis
|
||||||
Fixed bug #48063
|
Fixed bug #48063
|
||||||
|
|
||||||
|
|
|
@ -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-09 Hoda Amer
|
2003-12-09 Hoda Amer
|
||||||
Added a method to return the created class element to the class wizard.
|
Added a method to return the created class element to the class wizard.
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,8 @@ import org.eclipse.cdt.core.model.ICProject;
|
||||||
import org.eclipse.cdt.core.model.IElementChangedListener;
|
import org.eclipse.cdt.core.model.IElementChangedListener;
|
||||||
import org.eclipse.cdt.core.model.IParent;
|
import org.eclipse.cdt.core.model.IParent;
|
||||||
import org.eclipse.cdt.core.model.ITranslationUnit;
|
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.cdt.internal.ui.BaseCElementContentProvider;
|
||||||
import org.eclipse.core.resources.IResource;
|
import org.eclipse.core.resources.IResource;
|
||||||
import org.eclipse.core.resources.IResourceDelta;
|
import org.eclipse.core.resources.IResourceDelta;
|
||||||
|
@ -125,6 +127,8 @@ public class CElementContentProvider extends BaseCElementContentProvider impleme
|
||||||
element instanceof IBinary || element instanceof IArchive) {
|
element instanceof IBinary || element instanceof IArchive) {
|
||||||
postRefresh(element);
|
postRefresh(element);
|
||||||
return;
|
return;
|
||||||
|
} else if (element instanceof ArchiveContainer || element instanceof BinaryContainer) {
|
||||||
|
postContainerRefresh((IParent) element, element.getCProject());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue