mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-26 02:15:31 +02:00
disconnect() from the working copy manager.
This commit is contained in:
parent
c979f5db7d
commit
0533d620d4
1 changed files with 11 additions and 1 deletions
|
@ -390,8 +390,18 @@ public class CDebugEditor extends CEditor
|
||||||
{
|
{
|
||||||
newInput = ((EditorInputDelegate)input).getDelegate();
|
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 );
|
super.doSetInput( newInput );
|
||||||
CUIPlugin.getDefault().getWorkingCopyManager().connect(input);
|
// This hack should be after the super.doSetInput();
|
||||||
|
CUIPlugin.getDefault().getWorkingCopyManager().connect(newInput);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void attachSourceLocation()
|
protected void attachSourceLocation()
|
||||||
|
|
Loading…
Add table
Reference in a new issue