public void actionPerformed(ActionEvent arg0) {
		// TODO Auto-generated method stub
		Grammar g = environment.getGrammar(UnrestrictedGrammar.class);
		Production[] p=g.getProductions();
		Grammar g_trimmed=trim(p);
//		FrameFactory.createFrame(g_trimed);

		if (g == null)
			return;
		TMBruteParsePane bpp = new TMBruteParsePane(environment, g, g_trimmed, myVariableMap, null);
		environment.add(bpp, "Parser for Converted Grammar from TM", new CriticalTag() {
		});
		environment.setActive(bpp);
	}