mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 00:36:16 +02:00
Check for Reorder IPathEntry and do a refresh
This commit is contained in:
parent
1c2ff9f1d9
commit
775e82edd0
3 changed files with 20 additions and 1 deletions
|
@ -1,3 +1,11 @@
|
|||
2004-03-23 Alain Magloire
|
||||
|
||||
Show the objects on the IOuputEntry path should
|
||||
be save in the BinaryContainer.
|
||||
|
||||
* src/org/eclipse/cdt/internal/ui/BaseCElementContentProvider.java
|
||||
* src/org/eclpse/cdt/ui/CElementContentProvider.java
|
||||
|
||||
2004-03-23 Hoda Amer
|
||||
Fix for bug#51303 Content Assist: Completion list remains open after a space is added to a prefix
|
||||
Fix for bug#53066 Content Assist: Information displayed after completion on Macro function is not legible.
|
||||
|
|
|
@ -129,6 +129,10 @@ public class BaseCElementContentProvider implements ITreeContentProvider {
|
|||
return getCProjects((ICModel)element);
|
||||
} else if (element instanceof ICProject ) {
|
||||
return getSourceRoots((ICProject)element);
|
||||
} else if (element instanceof IBinaryContainer) {
|
||||
return ((IBinaryContainer)element).getBinaries();
|
||||
} else if (element instanceof IArchiveContainer) {
|
||||
return ((IArchiveContainer)element).getArchives();
|
||||
} else if (element instanceof ICContainer) {
|
||||
return getCResources((ICContainer)element);
|
||||
} else if (element instanceof ITranslationUnit) {
|
||||
|
@ -182,7 +186,13 @@ public class BaseCElementContentProvider implements ITreeContentProvider {
|
|||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (element instanceof IBinaryContainer) {
|
||||
IBinaryContainer cont = (IBinaryContainer)element;
|
||||
IBinary[] bin = cont.getBinaries();
|
||||
return (bin != null) && bin.length > 0;
|
||||
}
|
||||
|
||||
if (element instanceof IParent) {
|
||||
// when we have C children return true, else we fetch all the children
|
||||
if (((IParent)element).hasChildren()) {
|
||||
|
|
|
@ -109,6 +109,7 @@ public class CElementContentProvider extends BaseCElementContentProvider impleme
|
|||
(flags & ICElementDelta.F_ADDED_PATHENTRY_LIBRARY) != 0 ||
|
||||
(flags & ICElementDelta.F_ADDED_PATHENTRY_SOURCE) != 0 ||
|
||||
(flags & ICElementDelta.F_REMOVED_PATHENTRY_LIBRARY) != 0 ||
|
||||
(flags & ICElementDelta.F_PATHENTRY_REORDER) != 0 ||
|
||||
(flags & ICElementDelta.F_REMOVED_PATHENTRY_SOURCE) != 0));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue