[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-patch] CDebugEditor fixes.
|
Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.ui/ChangeLog,v
retrieving revision 1.140
diff -u -r1.140 ChangeLog
--- ChangeLog 28 Apr 2003 02:36:07 -0000 1.140
+++ ChangeLog 29 Apr 2003 18:41:46 -0000
@@ -1,3 +1,8 @@
+2003-04-29 Alain Magloire
+
+ * src/org/eclipse/cdt/debug/internal/ui/editor/CDebugDocumentProvider.java (doSetInput):
+ Disconnect the old input from the working manager.
+
2003-04-27 Alain Magloire
Bug PR 36759, the outliner was not updated, when using
Index: src/org/eclipse/cdt/debug/internal/ui/editors/CDebugEditor.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/editors/CDebugEditor.java,v
retrieving revision 1.3
diff -u -r1.3 CDebugEditor.java
--- src/org/eclipse/cdt/debug/internal/ui/editors/CDebugEditor.java 8 Apr 2003 21:06:50 -0000 1.3
+++ src/org/eclipse/cdt/debug/internal/ui/editors/CDebugEditor.java 29 Apr 2003 18:41:47 -0000
@@ -390,8 +390,18 @@
{
newInput = ((EditorInputDelegate)input).getDelegate();
}
+ IEditorInput oldInput = getEditorInput();
+ if ( oldInput instanceof EditorInputDelegate )
+ {
+ oldInput = ((EditorInputDelegate)oldInput).getDelegate();
+ }
+ if (oldInput != null)
+ {
+ CUIPlugin.getDefault().getWorkingCopyManager().disconnect(oldInput);
+ }
super.doSetInput( newInput );
- CUIPlugin.getDefault().getWorkingCopyManager().connect(input);
+ // This hack should be after the super.doSetInput();
+ CUIPlugin.getDefault().getWorkingCopyManager().connect(newInput);
}
protected void attachSourceLocation()