Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] CDebugEditor not updating outliner

Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.ui/ChangeLog,v
retrieving revision 1.139
diff -u -r1.139 ChangeLog
--- ChangeLog	25 Apr 2003 19:38:51 -0000	1.139
+++ ChangeLog	28 Apr 2003 02:34:00 -0000
@@ -1,3 +1,12 @@
+2003-04-27 Alain Magloire
+
+	Bug PR 36759, the outliner was not updated, when using
+	the CDebugEditor.
+
+	* src/org/eclipse/cdt/debug/internal/ui/editor/CDebugDocumentProvider.java (getBufferFactory):
+	New method overload getBufferFactory() to return the factory of
+	CUIPlugin.getDefault().getDocumentProvider().getBufferFactory().
+
 2003-04-25 Mikhail Khodjaiants
 	Fix for bug 36909.
 	* NoSymbolOrSourceElement.java: new file.
Index: src/org/eclipse/cdt/debug/internal/ui/editors/CDebugDocumentProvider.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/editors/CDebugDocumentProvider.java,v
retrieving revision 1.1
diff -u -r1.1 CDebugDocumentProvider.java
--- src/org/eclipse/cdt/debug/internal/ui/editors/CDebugDocumentProvider.java	6 Mar 2003 00:13:36 -0000	1.1
+++ src/org/eclipse/cdt/debug/internal/ui/editors/CDebugDocumentProvider.java	28 Apr 2003 02:34:02 -0000
@@ -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 @@
 			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();
+	}
+
 }



Back to the top