IRunnableWithProgress runnable = new IRunnableWithProgress() {
public void run(IProgressMonitor monitor) throws InvocationTargetException {
IPreferenceStore store = Activator.getDefault().getPreferenceStore();
try {
URL url = new URL(store.getString(PreferenceConstants.P_CARDLIST_URL));
StandardTournament factory = new StandardTournament();
monitor.beginTask("Updating...", 2);
String[] restrictedCards = StringUtils.parseToStringArray( store.getString(PreferenceConstants.P_RESTRICTED_CARDS));
factory.read(url, store.getString(PreferenceConstants.P_REGEX_CARD), restrictedCards );
monitor.worked(1);
factory.save();
monitor.worked(1);
} catch (MalformedURLException e) {
MessageDialog.openInformation(
window.getShell(),
"FactOrFiction Tournament Format Plug-in",