Package org.zanata.webtrans.shared.rpc

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


    }

    public void show(final TransMemoryResultItem item) {
        // request TM details from the server
        dispatcher.execute(
                new GetTransMemoryDetailsAction(item.getSourceIdList()),
                new AbstractAsyncCallback<TransMemoryDetailsList>() {
                    @Override
                    public void onSuccess(TransMemoryDetailsList result) {
                        tmDetails = result;
                        display.clearSourceAndTarget();
View Full Code Here


            AsyncCallback<UpdateTransUnitResult> _callback =
                    (AsyncCallback<UpdateTransUnitResult>) callback;
            Scheduler.get().scheduleDeferred(
                    new DummyUpdateTransUnitCommand(_action, _callback));
        } else if (action instanceof GetTransMemoryDetailsAction) {
            final GetTransMemoryDetailsAction _action =
                    (GetTransMemoryDetailsAction) action;
            AsyncCallback<TransMemoryDetailsList> _callback =
                    (AsyncCallback<TransMemoryDetailsList>) callback;
            Scheduler.get().scheduleDeferred(
                    new DummyGetTransMemoryDetailsCommand(_action, _callback));
View Full Code Here

    @Test
    public void testExecute() throws Exception {
        WorkspaceId workspaceId =
                TestFixture.workspaceId(hLocale.getLocaleId());
        GetTransMemoryDetailsAction action =
                new GetTransMemoryDetailsAction(1L, 2L);
        action.setWorkspaceId(workspaceId);
        ProjectIterationId projectIterationId =
                workspaceId.getProjectIterationId();
        when(
                localeServiceImpl.validateLocaleByProjectIteration(
                        workspaceId.getLocaleId(),
View Full Code Here

    }

    @Test(expectedExceptions = ActionException.class)
    public void testExecuteWithInvalidLocale() throws Exception {
        WorkspaceId workspaceId = TestFixture.workspaceId();
        GetTransMemoryDetailsAction action = new GetTransMemoryDetailsAction();
        action.setWorkspaceId(workspaceId);
        ProjectIterationId projectIterationId =
                workspaceId.getProjectIterationId();
        when(
                localeServiceImpl.validateLocaleByProjectIteration(
                        workspaceId.getLocaleId(),
View Full Code Here

TOP

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

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.