* "StandaloneEditor.html" then the StandaloneGuidedEditorManager is used to
* render the view. If not, the default view is shown.
*/
private void createMain() {
EventBus eventBus = new SimpleEventBus();
ClientFactory clientFactory = new ClientFactoryImpl(eventBus);
appController = new AppController(clientFactory,eventBus);
if (Window.Location.getPath().contains("StandaloneEditor.html")) {
RootLayoutPanel.get().add(new StandaloneEditorManager(clientFactory, eventBus).getBaseLayout());
} else {
RootLayoutPanel.get().add(appController.getMainPanel());
}
askToInstallSampleRepository();
//Have to start the FindPlace as the last thing during the initialization, otherwise we got https://bugzilla.redhat.com/show_bug.cgi?id=790025
clientFactory.getPlaceController().goTo(new FindPlace());
}