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

disconnect() from the working copy manager.

This commit is contained in:
Alain Magloire 2003-04-29 18:42:18 +00:00
parent c979f5db7d
commit 0533d620d4

View file

@ -390,8 +390,18 @@ public class CDebugEditor extends CEditor
{
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()