Package org.zanata.webtrans.shared.rpc

Examples of org.zanata.webtrans.shared.rpc.ActivateWorkspaceAction


                new UncaughtExceptionHandlerImpl(injector.getDispatcher(),
                        injector.getUserConfig());
        GWT.setUncaughtExceptionHandler(exceptionHandler);

        injector.getDispatcher().execute(
                new ActivateWorkspaceAction(getWorkspaceId()),
                new AsyncCallback<ActivateWorkspaceResult>() {

                    @Override
                    public void onFailure(Throwable caught) {
                        if (caught instanceof AuthenticationError) {
View Full Code Here


            AsyncCallback<GetDocumentListResult> gdlCallback =
                    (AsyncCallback<GetDocumentListResult>) callback;
            Scheduler.get().scheduleDeferred(
                    new DummyGetDocsListCommand(gdlAction, gdlCallback));
        } else if (action instanceof ActivateWorkspaceAction) {
            final ActivateWorkspaceAction gwcAction =
                    (ActivateWorkspaceAction) action;
            AsyncCallback<ActivateWorkspaceResult> gwcCallback =
                    (AsyncCallback<ActivateWorkspaceResult>) callback;
            Scheduler.get().scheduleDeferred(
                    new DummyActivateWorkspaceCommand(gwcAction, gwcCallback));
View Full Code Here

    }

    @Test
    public void testExecute() throws Exception {
        WorkspaceId workspaceId = TestFixture.workspaceId();
        ActivateWorkspaceAction action =
                new ActivateWorkspaceAction(workspaceId);
        when(translationWorkspaceManager.getOrRegisterWorkspace(workspaceId))
                .thenReturn(translationWorkspace);
        HLocale hLocale = new HLocale(workspaceId.getLocaleId());
        when(localeServiceImpl.getByLocaleId(workspaceId.getLocaleId()))
                .thenReturn(hLocale);
View Full Code Here

TOP

Related Classes of org.zanata.webtrans.shared.rpc.ActivateWorkspaceAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.