mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Undid the previous change due to doubts in its safety.
This commit is contained in:
parent
57e806a4ad
commit
21e1364cb5
1 changed files with 2 additions and 1 deletions
|
@ -46,6 +46,7 @@ import org.eclipse.cdt.core.model.ISourceRoot;
|
||||||
import org.eclipse.cdt.core.model.ITranslationUnit;
|
import org.eclipse.cdt.core.model.ITranslationUnit;
|
||||||
import org.eclipse.cdt.core.model.IWorkingCopy;
|
import org.eclipse.cdt.core.model.IWorkingCopy;
|
||||||
import org.eclipse.cdt.ui.CElementGrouping;
|
import org.eclipse.cdt.ui.CElementGrouping;
|
||||||
|
import org.eclipse.cdt.ui.CUIPlugin;
|
||||||
import org.eclipse.cdt.ui.IncludesGrouping;
|
import org.eclipse.cdt.ui.IncludesGrouping;
|
||||||
import org.eclipse.cdt.ui.NamespacesGrouping;
|
import org.eclipse.cdt.ui.NamespacesGrouping;
|
||||||
|
|
||||||
|
@ -207,7 +208,7 @@ public class BaseCElementContentProvider implements ITreeContentProvider {
|
||||||
// if it is not already a working copy
|
// if it is not already a working copy
|
||||||
if (!(element instanceof IWorkingCopy)){
|
if (!(element instanceof IWorkingCopy)){
|
||||||
// if it has a valid working copy
|
// if it has a valid working copy
|
||||||
IWorkingCopy copy = tu.findSharedWorkingCopy();
|
IWorkingCopy copy = tu.findSharedWorkingCopy(CUIPlugin.getDefault().getBufferFactory());
|
||||||
if (copy != null) {
|
if (copy != null) {
|
||||||
tu = copy;
|
tu = copy;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue