1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Bug 515703: The source not found editor now updates

I removed an if statement where the two compared items always have the same
value thus not executing the code that updates the editor.

Change-Id: I3fb43a1c84d06ce6dc92e95f6c745a4b23977f2d
Signed-off-by: Yannick Mayeur <yannick.mayeur@gmail.com>
This commit is contained in:
Yannick Mayeur 2017-05-04 16:39:18 +01:00 committed by Jonah Graham
parent a4ed678552
commit bda21e55ab

View file

@ -474,10 +474,8 @@ public class DsfSourceDisplayAdapter implements ISourceDisplay, ISteppingControl
*/
if (editor instanceof IReusableEditor) {
IReusableEditor re = (IReusableEditor) editor;
if (!input.equals(re.getEditorInput())) {
re.setInput(input);
}
}
return editor;
}
};