Make MoveAgent to implement CaretListener instead of ViewPart to implement it.