1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 17:26:01 +02:00

Undid the previous change due to doubts in its safety.

This commit is contained in:
Sergey Prigogin 2009-04-20 16:49:42 +00:00
parent 57e806a4ad
commit 21e1364cb5

View file

@ -46,6 +46,7 @@ import org.eclipse.cdt.core.model.ISourceRoot;
import org.eclipse.cdt.core.model.ITranslationUnit;
import org.eclipse.cdt.core.model.IWorkingCopy;
import org.eclipse.cdt.ui.CElementGrouping;
import org.eclipse.cdt.ui.CUIPlugin;
import org.eclipse.cdt.ui.IncludesGrouping;
import org.eclipse.cdt.ui.NamespacesGrouping;
@ -207,7 +208,7 @@ public class BaseCElementContentProvider implements ITreeContentProvider {
// if it is not already a working copy
if (!(element instanceof IWorkingCopy)){
// if it has a valid working copy
IWorkingCopy copy = tu.findSharedWorkingCopy();
IWorkingCopy copy = tu.findSharedWorkingCopy(CUIPlugin.getDefault().getBufferFactory());
if (copy != null) {
tu = copy;
}