package com.inepex.example.ContactManager.client;

import java.util.Date;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.Cookies;
import com.google.gwt.user.client.ui.RootLayoutPanel;
import com.google.gwt.user.client.ui.RootPanel;
import com.inepex.example.ContactManager.client.gin.AppGinjector;
import com.inepex.example.ContactManager.client.i18n.CMI18n;
import com.inepex.example.ContactManager.client.navigation.AppPlaceHierarchyProvider;
import com.inepex.ineForm.client.IneFormProperties;
import com.inepex.ineForm.client.i18n.IneFormI18n;
import com.inepex.ineFrame.client.IneFrameEntryPoint;
import com.inepex.ineFrame.client.navigation.NavigationProperties;
import com.inepex.ineFrame.shared.util.date.DateHelper;
import com.inepex.inei18n.client.I18nStore_Client;
import com.inepex.inei18n.shared.ClientI18nProvider;
import com.inepex.ineom.shared.i18n.IneOmI18n;

public class App extends IneFrameEntryPoint {

	public static AppGinjector INJECTOR = GWT.create(AppGinjector.class);
	
	static {
		IneFormProperties.IN_OLD_STYLE_COMPATIBILITY_MODE=false;
		Cookies.setCookie(I18nStore_Client.LANG_COOKIE_ID, "en", new Date(System.currentTimeMillis()+DateHelper.dayInMs*50));
	}
	
	public App() {
		super(INJECTOR.getDispatchAsync(), INJECTOR.getEventBus(), INJECTOR.getAuthManager(), INJECTOR.getDescriptorStore(),
				INJECTOR.getHistoryProvider(), INJECTOR.getI18nStore_Client());
	}
	
	@Override
	public void onIneModuleLoad() {
		NavigationProperties.defaultPlace=AppPlaceHierarchyProvider.LOGGEDIN;
		NavigationProperties.noRightPlace=AppPlaceHierarchyProvider.LOGIN;
		NavigationProperties.wrongTokenPlace=AppPlaceHierarchyProvider.LOGGEDIN + "/" + AppPlaceHierarchyProvider.PAGENOTFOUND;
		NavigationProperties.loginPlace = AppPlaceHierarchyProvider.LOGIN;
		
		registerDescriptors();
		
		RootLayoutPanel.get().add(INJECTOR.getMasterPageView());
		INJECTOR.gePlaceHandler().fireInitialPlace();
	}
	
	private void registerDescriptors() {
	}

	@Override
	protected void registerAdditionalI18nModules() {
		clientI18nStore.registerModule(new IneOmI18n(new ClientI18nProvider<IneOmI18n>()));
		clientI18nStore.registerModule(new IneFormI18n(new ClientI18nProvider<IneFormI18n>()));
		clientI18nStore.registerModule(new CMI18n(new ClientI18nProvider<CMI18n>()));
	}
}

@@ -1828,30 +1828,24 @@
 );%0A%09%09%0A%09%09Root
-Layout
 Panel.get().

use RootPanel in ContactManager