Examples of GetGlossaryDetailsAction


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

    }

    public void show(final GlossaryResultItem item) {
        // request glossary details from the server
        dispatcher.execute(
                new GetGlossaryDetailsAction(item.getSourceIdList()),
                new AsyncCallback<GetGlossaryDetailsResult>() {
                    @Override
                    public void onFailure(Throwable caught) {
                        Log.error(caught.getMessage(), caught);
                    }
View Full Code Here

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

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

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

    @Test
    public void testExecute() throws Exception {
        WorkspaceId workspaceId =
                TestFixture.workspaceId(targetHLocale.getLocaleId());
        ArrayList<Long> sourceIdList = Lists.newArrayList(1L);
        GetGlossaryDetailsAction action =
                new GetGlossaryDetailsAction(sourceIdList);
        action.setWorkspaceId(workspaceId);
        when(
                localeServiceImpl.validateLocaleByProjectIteration(workspaceId
                        .getLocaleId(), workspaceId.getProjectIterationId()
                        .getProjectSlug(), workspaceId.getProjectIterationId()
                        .getIterationSlug())).thenReturn(targetHLocale);
View Full Code Here

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

    @Test(expectedExceptions = ActionException.class)
    public void testExecuteWithInvalidLocale() throws Exception {
        WorkspaceId workspaceId =
                TestFixture.workspaceId(targetHLocale.getLocaleId());
        GetGlossaryDetailsAction action =
                new GetGlossaryDetailsAction(Lists.newArrayList(1L));
        action.setWorkspaceId(workspaceId);
        ProjectIterationId projectIterationId =
                workspaceId.getProjectIterationId();
        when(
                localeServiceImpl.validateLocaleByProjectIteration(
                        workspaceId.getLocaleId(),
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.