Пример #1
0
  public void onModuleLoad() {

    GXT.setDefaultTheme(Theme.BLUE, true);

    Dispatcher dispatcher = Dispatcher.get();
    dispatcher.addController(new DesktopController());

    dispatcher.dispatch(DesktopAppEvents.Login);

    GXT.hideLoadingPanel("loading");

    /*
    if (!GXT.isChrome){
    	WebMessageBox.info("Navegador incompatível", "Utilize o Google Chrome para um melhor funcionamento do sistema. " +
    			"Caso não tenha instalado no seu computador faça o download clicando <a href='http://www.google.com/intl/pt-BR/chrome/browser/' target='_blank'>aqui</a>.");
    }
    */

  }
Пример #2
0
  /** This is the entry point method. */
  public void onModuleLoad() {
    //        GWT.setUncaughtExceptionHandler(new GWT.UncaughtExceptionHandler() {
    //            public void onUncaughtException(Throwable e) {
    //                Window.alert("Error: " + e.getMessage());
    //                log.log(Level.SEVERE, e.getMessage(), e);
    //                e.printStackTrace();
    //            }
    //        });
    //        GXT.setDefaultTheme(Theme.BLUE, true);

    // Initialize servlets
    repoxService = (RepoxServiceAsync) GWT.create(RepoxService.class);
    Registry.register(REPOX_SERVICE, repoxService);
    Registry.register(COOKIE_MANAGER, new CookieManager());
    Registry.register(ES_MANAGEMENT_SERVICE, GWT.create(ESManagementService.class));
    Registry.register(HARVEST_OPERATIONS_SERVICE, GWT.create(HarvestOperationsService.class));
    Registry.register(RSS_SERVICE, GWT.create(RssService.class));
    Registry.register(DP_SERVICE, GWT.create(DPService.class));
    Registry.register(AGG_SERVICE, GWT.create(AGGService.class));
    Registry.register(DATA_SET_OPERATIONS_SERVICE, GWT.create(DataSetOperationsService.class));
    Registry.register(DATA_MANAGEMENT_SERVICE, GWT.create(DataManagementService.class));
    Registry.register(TASK_MANAGEMENT_SERVICE, GWT.create(TaskManagementService.class));
    Registry.register(TRANSFORMATIONS_SERVICE, GWT.create(TransformationsService.class));
    Registry.register(TAGS_SERVICE, GWT.create(TagsService.class));
    Registry.register(SEARCH_SERVICE, GWT.create(SearchService.class));
    Registry.register(FILTER_SERVICE, GWT.create(FilterService.class));
    userManagementService = (UserManagementServiceAsync) GWT.create(UserManagementService.class);
    Registry.register(USER_MANAGEMENT_SERVICE, userManagementService);
    Registry.register("MAIN_ROOT", this);

    // Add all controllers
    Dispatcher dispatcher = Dispatcher.get();
    dispatcher.addController(new AppController());
    dispatcher.addController(new BrowseController());
    dispatcher.addController(new FormController());
    dispatcher.addController(new DataSetController());
    dispatcher.addController(new HarvestingController());
    dispatcher.addController(new StatisticsController());
    dispatcher.addController(new AdministrationController());
    dispatcher.addController(new OaiTestController());
    dispatcher.addController(new AccountEditController());
    dispatcher.addController(new SchemaMapperController());
    dispatcher.addController(new ServiceManagerController());
    dispatcher.addController(new DataSetActionsController());
    dispatcher.addController(new RssController());
    // XMApper Controllers
    dispatcher.addController(new SaveMappingCtrl());

    checkFirstTimeRepoxUsed();

    History.addHistoryListener(this);
  }