public void actionPerformed(ActionEvent e) {
		boolean editor = false;
		Automaton inside = null;
		State block = null;
		if (environment.getActive() instanceof EditBlockPane) {
			editor = true;
			EditBlockPane blockEditor = (EditBlockPane) environment.getActive();
			inside = blockEditor.getAutomaton();
			block = blockEditor.getBlock();
		}
		environment.remove(environment.getActive());
//		if (editor) {
//			EditorPane higherEditor = (EditorPane) environment.getActive();
//			Automaton higher = higherEditor.getAutomaton();
//			higher.replaceBlock(block, inside);
//		}
	}