[474030] Fix SWTException when CompareDialog is canceled80/57080/3
commit5cba2174d55bf547a167f96ae5c46922b9ba8099
authorStefan Dirix <sdirix@eclipsesource.com>
Wed, 30 Sep 2015 14:37:17 +0000 (30 16:37 +0200)
committerStefan Dirix <sdirix@eclipsesource.com>
Mon, 5 Oct 2015 15:54:03 +0000 (5 17:54 +0200)
treea408769faddc403a9cc7e2757b7c736687ce3fc9
parentf79331d652ffb1ebec3560b5ff93a9111c51a748
[474030] Fix SWTException when CompareDialog is canceled

Check if the control is disposed before accessing it in
'refreshTitle()'. This avoids SWTExceptions when a CompareDialog in
which at least one difference was accepted or rejected is canceled via
the 'Cancel' button.

Bug: 474030
Signed-off-by: Stefan Dirix <sdirix@eclipsesource.com>
Change-Id: I913ea5e97eae0343b3f1601cfb893a861b55f9d4
plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/structuremergeviewer/EMFCompareStructureMergeViewer.java