import java.util.logging.Level;
import java.util.logging.Logger;
+import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.MessageBox;
+import org.eclipse.swt.widgets.Shell;
import org.tizen.emulator.skin.EmulatorSkin.SkinReopenPolicy;
import org.tizen.emulator.skin.comm.sock.SocketCommunicator;
import org.tizen.emulator.skin.config.EmulatorConfig;
EmulatorUI dbiContents = loadDbi( argSkinPath, lcdWidth, lcdHeight );
if ( null == dbiContents ) {
logger.severe( "Fail to load dbi file." );
+
+ Shell temp = new Shell( Display.getDefault());
+ MessageBox messageBox = new MessageBox( temp, SWT.ICON_ERROR );
+ messageBox.setText( "Emulator" );
+ messageBox.setMessage( "Fail to load \"" + DBI_FILE_NAME + "\" file\n" +
+ "Check if the file is corrupted or missing from the following path.\n" +
+ argSkinPath );
+ messageBox.open();
+ temp.dispose();
+
System.exit( -1 );
}
#define HEART_BEAT_INTERVAL 1
#define HEART_BEAT_FAIL_COUNT 5
#define HEART_BEAT_EXPIRE_COUNT 5
-#define RESTART_CLIENT_MAX_COUNT 3
+#define RESTART_CLIENT_MAX_COUNT 1
#define PORT_RETRY_COUNT 50