Examples of GetTranslationHistoryAction


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

    }

    public void showTranslationHistory(final TransUnitId transUnitId) {
        this.transUnitId = transUnitId;
        popupAndShowLoading(messages.translationHistory());
        dispatcher.execute(new GetTranslationHistoryAction(transUnitId),
                new AsyncCallback<GetTranslationHistoryResult>() {
                    @Override
                    public void onFailure(Throwable caught) {
                        Log.error("failure getting translation history", caught);
                        eventBus.fireEvent(new NotificationEvent(
View Full Code Here

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

            .use("textFlowDAO", textFlowDAO)
            .use("textFlowTargetReviewCommentsDAO", reviewCommentsDAO)
            .use("resourceUtils", resourceUtils)
            .autowire(GetTranslationHistoryHandler.class);
      // @formatter:on
        action = new GetTranslationHistoryAction(transUnitId);
    }
View Full Code Here

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

        return targetHistory;
    }

    @Test
    public void canGetReviewComments() {
        GetTranslationHistoryAction action =
                new GetTranslationHistoryAction(new TransUnitId(1L));
        action.setWorkspaceId(TestFixture.workspaceId());
        LocaleId localeId = action.getWorkspaceId().getLocaleId();
        when(
                reviewCommentsDAO.getReviewComments(action.getTransUnitId(),
                        localeId)).thenReturn(
                Lists.newArrayList(makeCommentEntity(localeId, "a comment"),
                        makeCommentEntity(localeId, "another comment")));

        List<ReviewComment> result = handler.getReviewComments(action);
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.