Skip to main content
summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAlain Magloire2004-03-30 15:48:40 -0500
committerAlain Magloire2004-03-30 15:48:40 -0500
commit223e4b652a78402d1571330ca16e250f3335d56b (patch)
tree11f0111cf1be851b1284e7f2f83d593959e04307 /core
parent55aa4e1abf2a514bb2868e769812a207a8cbf716 (diff)
downloadorg.eclipse.cdt-223e4b652a78402d1571330ca16e250f3335d56b.tar.gz
org.eclipse.cdt-223e4b652a78402d1571330ca16e250f3335d56b.tar.xz
org.eclipse.cdt-223e4b652a78402d1571330ca16e250f3335d56b.zip
CView was not refreshing when close project.
Diffstat (limited to 'core')
-rw-r--r--core/org.eclipse.cdt.ui/ChangeLog5
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/BaseCElementContentProvider.java8
2 files changed, 12 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.ui/ChangeLog b/core/org.eclipse.cdt.ui/ChangeLog
index 36efae0f5b..3a8880c0a2 100644
--- a/core/org.eclipse.cdt.ui/ChangeLog
+++ b/core/org.eclipse.cdt.ui/ChangeLog
@@ -1,5 +1,10 @@
2004-03-30 Alain Magloire
+ Fix in the CView was not refreshing.
+ * src/org/eclipse/cdt/internal/ui/BaseCElementContentProvider.java
+
+2004-03-30 Alain Magloire
+
Change the icons of the Namespace, folks found it
confusing to reuse the same icons as the Java package.
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/BaseCElementContentProvider.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/BaseCElementContentProvider.java
index b965b05440..a785bf7971 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/BaseCElementContentProvider.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/BaseCElementContentProvider.java
@@ -359,11 +359,17 @@ public class BaseCElementContentProvider implements ITreeContentProvider {
// folder we have to exclude it as a normal child.
if (o instanceof IFolder) {
IFolder folder = (IFolder)o;
+ boolean found = false;
for (int j = 0; j < roots.length; j++) {
if (roots[j].getPath().equals(folder.getFullPath())) {
- continue;
+ found = true;
+ break;
}
}
+ // it is a sourceRoot skip it.
+ if (found) {
+ continue;
+ }
} else if (o instanceof IFile){
boolean found = false;
for (int j = 0; j < binaries.length; j++) {

Back to the top