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));
	}

}

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.client.ReplayFileHelper;
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));
		initData.setReplay(ReplayFileHelper.getAvailableReplays());
		
		showMainWindow(initData);
	}

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

}

Send replay data to menu