package org.javarosa.demo.midlet;

import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;

import org.javarosa.core.JavaRosaServiceProvider;
import org.javarosa.core.api.IShell;
import org.javarosa.demo.shell.JavaRosaDemoShell;
import org.javarosa.j2me.view.J2MEDisplay;

/**
 * This is the starting point for the JavarosaDemo application
 * @author Brian DeRenzi
 *
 */
public class JavaRosaDemoMidlet extends MIDlet {
	IShell shell = null;


	protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
		// TODO Auto-generated method stub

	}

	protected void pauseApp() {
		// TODO Auto-generated method stub

	}

	protected void startApp() throws MIDletStateChangeException {
		/*
		 * Duplicate this class and change the following line to
		 * create a custom midlet to launch from
		 */
		shell = new JavaRosaDemoShell();

		// Do NOT edit below
		JavaRosaServiceProvider.instance().initialize();
		JavaRosaServiceProvider.instance().setDisplay(new J2MEDisplay(Display.getDisplay(this)));
		((JavaRosaDemoShell)shell).setMIDlet(this);
		shell.run();
	}

}

@@ -302,28 +302,31 @@
 ell.JavaRosa
-Demo
+CLForms
 Shell;%0D%0Aimpo
@@ -947,28 +947,31 @@
 new JavaRosa
-Demo
+CLForms
 Shell();%0D%0A%0D%0A
@@ -1151,20 +1151,23 @@
 JavaRosa
-Demo
+CLForms
 Shell)sh

rename clforms shell file to prevent further confusion