allRepos.clear();
try {
allRepos.addAll(Central.getWorkspace().getPlugins(Repository.class));
} catch (Exception e) {
messages.addMessage(MESSAGE_KEY, "Repository List: Unable to load OSGi Repositories. " + e.getMessage(), e, IMessageProvider.ERROR, viewer.getControl());
// Load the repos and clear the error message if the Workspace is initialised later.
Central.onWorkspaceInit(new Function<Workspace,Void>() {
public Void run(final Workspace ws) {
SWTConcurrencyUtil.execForControl(viewer.getControl(), true, new Runnable() {