package com.ibm.sk;

import java.util.Arrays;
import java.util.stream.Collectors;

import com.ibm.sk.ant.AntLoader;
import com.ibm.sk.ant.facade.AntFactory;
import com.ibm.sk.ff.gui.common.objects.operations.InitMenuData;
import com.ibm.sk.handlers.GameMenuHandler;

public class MenuMain extends AbstractMain {

	public MenuMain() {
		super();
	}

	public static void main(final String args[]) {
		final AntFactory[] implementations = AntLoader.getImplementations();
		final InitMenuData initData = new InitMenuData();

		initData.setCompetitors(Arrays.asList(implementations).stream().map(AntFactory::getTeamName)
				.collect(Collectors.toList()).stream().toArray(String[]::new));
		showMainWindow(initData);
	}

	public static void showMainWindow(final InitMenuData initData) {
		FACADE.showInitMenu(initData);
		FACADE.addGuiEventListener(new GameMenuHandler(FACADE, initData));
	}

}

@@ -150,16 +150,66 @@
 actory;%0A
+import com.ibm.sk.ff.gui.client.ReplayFileHelper;%0A
 import c
@@ -662,13 +662,8 @@
 ame)
-%0A%09%09%09%09
 .col
@@ -722,16 +722,81 @@
 :new));%0A
+%09%09initData.setReplay(ReplayFileHelper.getAvailableReplays());%0A%09%09%0A
 %09%09showMa

Send replay data to menu