Intercept part input change event.

In some cases (when 'Close editors automatically' is enabled for ex.)
Eclipse can substitute the underlying editor of an already opened part.
Handle this case by resetting the references associated with the part.