Package org.zanata.webtrans.shared.rpc

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


        eventProcessor.start(new StartCallback() {
            @Override
            public void onSuccess(String connectionId) {
                // tell server the ConnectionId for this EditorClientId
                injector.getDispatcher().execute(
                        new EventServiceConnectedAction(connectionId),
                        new AsyncCallback<NoOpResult>() {
                            @Override
                            public void onFailure(Throwable e) {
                                showErrorWithLink(
                                        "Server communication failed...", e);
View Full Code Here


            AsyncCallback<NoOpResult> _callback =
                    (AsyncCallback<NoOpResult>) callback;
            Scheduler.get().scheduleDeferred(
                    new DummyPublishWorkspaceChatCommand(_callback));
        } else if (action instanceof EventServiceConnectedAction) {
            final EventServiceConnectedAction _action =
                    (EventServiceConnectedAction) action;
            AsyncCallback<NoOpResult> _callback =
                    (AsyncCallback<NoOpResult>) callback;
            Scheduler.get().scheduleDeferred(
                    new DummyEventServiceConnectedCommand(_action, _callback));
View Full Code Here

    @Test
    public void testExecute() throws ActionException {
        WorkspaceId workspaceId = TestFixture.workspaceId();
        EditorClientId editorClientId = new EditorClientId("sessionId", 1);
        EventServiceConnectedAction action =
                new EventServiceConnectedAction("connectionId");
        action.setWorkspaceId(workspaceId);
        action.setEditorClientId(editorClientId);
        when(translationWorkspaceManager.getOrRegisterWorkspace(workspaceId))
                .thenReturn(translationWorkspace);

        handler.execute(action, null);
View Full Code Here

TOP

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

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.