1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

New method getBufferFactory() overload the parent.

This commit is contained in:
Alain Magloire 2003-04-28 02:35:56 +00:00
parent 1c7ed5ec08
commit ff2a519180

View file

@ -6,6 +6,7 @@
package org.eclipse.cdt.debug.internal.ui.editors;
import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
import org.eclipse.cdt.internal.core.model.IBufferFactory;
import org.eclipse.cdt.internal.ui.editor.CDocumentProvider;
import org.eclipse.cdt.ui.CUIPlugin;
import org.eclipse.core.resources.IStorage;
@ -90,4 +91,18 @@ public class CDebugDocumentProvider extends CDocumentProvider
return super.createAnnotationModel( ((EditorInputDelegate)element).getDelegate() );
return super.createAnnotationModel( element );
}
/* (non-Javadoc)
* This hack is important for the the outliner to work correctly.
* The outliner looks at the working copy and it is maintain by
* CUIPlugin.getDefault().getWorkingCopyManager()
* CUIPlugin.getDefault().getDocumentProvider();
* They are singletons.
*
* @see org.eclipse.cdt.internal.ui.editor.CDocumentProvider#getBufferFactory()
*/
public IBufferFactory getBufferFactory() {
return CUIPlugin.getDefault().getDocumentProvider().getBufferFactory();
}
}