Skip to main content
summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorAndrew Gvozdev2011-12-26 23:40:59 -0500
committerAndrew Gvozdev2011-12-26 23:40:59 -0500
commit08a0e81c57ece2d5f06791aa3a024c61f98948b9 (patch)
tree474f07c2c204574ac7106c79d8b7ab463fb03582 /build
parentd99855ebf4f20becc2ef1f49d6ce058bcc0a5de9 (diff)
downloadorg.eclipse.cdt-08a0e81c57ece2d5f06791aa3a024c61f98948b9.tar.gz
org.eclipse.cdt-08a0e81c57ece2d5f06791aa3a024c61f98948b9.tar.xz
org.eclipse.cdt-08a0e81c57ece2d5f06791aa3a024c61f98948b9.zip
bug 367559: Double source folder in Make Targets View
Diffstat (limited to 'build')
-rw-r--r--build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/MakeContentProvider.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/MakeContentProvider.java b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/MakeContentProvider.java
index f25279446e..c135157080 100644
--- a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/MakeContentProvider.java
+++ b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/MakeContentProvider.java
@@ -47,7 +47,6 @@ import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.preferences.IEclipsePreferences.IPreferenceChangeListener;
import org.eclipse.core.runtime.preferences.IEclipsePreferences.PreferenceChangeEvent;
import org.eclipse.core.runtime.preferences.InstanceScope;
-import org.eclipse.jface.viewers.AbstractTreeViewer;
import org.eclipse.jface.viewers.ITreeContentProvider;
import org.eclipse.jface.viewers.StructuredViewer;
import org.eclipse.jface.viewers.Viewer;
@@ -346,11 +345,12 @@ public class MakeContentProvider implements ITreeContentProvider, IMakeTargetLis
public void run() {
if (viewer == null || viewer.getControl() == null || viewer.getControl().isDisposed())
return;
- if (viewer instanceof AbstractTreeViewer) {
- ((AbstractTreeViewer) viewer).remove(affected.toArray());
- } else {
- viewer.refresh(resource);
+
+ if (CCorePlugin.showSourceRootsAtTopOfProject()) {
+ // that will refresh equal TargetSourceContainer from the tree
+ viewer.refresh(new TargetSourceContainer(new CSourceEntry((IFolder) resource, null, 0)));
}
+ viewer.refresh(resource);
}
});
}

Back to the top