Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,13 @@ protected IStatus run(final IProgressMonitor monitor) {
if (hadPreviousInput || (knownSaveables != null && !isAllSaveablesKnown())) {
registerSaveable();
}
// Check if the contents are being created right now, e.g. by the "still
// initializing" timer, with this syncExec dispatched by the event loop of
// the first diff. Creating them again would leave a second, orphaned
// content tree, whose viewer later diffs against a disposed input.
if (CompareEditor.this.getState() == CREATING_CONTROL) {
return;
}
setState(newState[0]);
createCompareControl();
});
Expand Down