Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Ugyvitel implements EntryPoint {
- /**
- * This is the entry point method.
- */
- public void onModuleLoad() {
- final AppController appController = new AppController();
- AppController.getINSTANCE().getClientFactory().getEventBus().fireEvent(new BusyEvent(AbstractActivity.class));
- GWT.setUncaughtExceptionHandler(new UncaughtExceptionHandler() {
- @Override
- public void onUncaughtException(Throwable e) {
- AlertMessageBox alertMessageBox = new AlertMessageBox("Végzetes hiba", e.getMessage());
- alertMessageBox.show();
- e.printStackTrace();
- }
- });
- Scheduler.get().scheduleDeferred(new ScheduledCommand() {
- @Override
- public void execute() {
- UgyvitelRequestFactory requestfactory = AppController.getINSTANCE().getRequestfactory();
- final UserRequest userRequest = requestfactory.createUserRequest();
- try {
- userRequest.isLogged().fire(new Receiver<Boolean>() {
- @Override
- public void onSuccess(Boolean response) {
- if (response.equals(true)) {
- appController.config();
- RootPanel.get().add(appController.getViewport());
- }
- }
- });
- } catch (Throwable ex) {
- ex.printStackTrace();
- }
- }
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement