[stagingView] Ensure reload occurs on UI-thread
commit1e39c8641c121612f00e930bfff3bcab1776902f
authorKevin Sawicki <kevin@github.com>
Mon, 21 Nov 2011 17:27:22 +0000 (21 09:27 -0800)
committerKevin Sawicki <kevin@github.com>
Mon, 21 Nov 2011 17:27:22 +0000 (21 09:27 -0800)
tree79dc73dd40b07f6839a9d68ea7456deffa20de13
parentef5738cd348767a6d67a4296438f76f821d0252f
[stagingView] Ensure reload occurs on UI-thread

This adds more guards and checks to the process of reloading
the staging view with a specified repository.  Reload clears
the current UI if a null repository is specified and so the
method should now always run on the UI-thread.  Also more strict
checks should be added to ensure the repository being displayed
is valid and registered.

Change-Id: I6f8cfca34c1baa4085b9c2f1e929d009a0cb0af0
Signed-off-by: Kevin Sawicki <kevin@github.com>
org.eclipse.egit.core/src/org/eclipse/egit/core/RepositoryUtil.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/staging/StagingView.java