Package org.zanata.webtrans.client.events

Examples of org.zanata.webtrans.client.events.TransMemoryShortcutCopyEvent


            this.tmIndex = tmIndex;
        }

        @Override
        public void onKeyShortcut(KeyShortcutEvent event) {
            eventBus.fireEvent(new TransMemoryShortcutCopyEvent(tmIndex));
        }
View Full Code Here


        when(userWorkspaceContext.hasEditTranslationAccess()).thenReturn(true);
        List<String> targetContents = Lists.newArrayList("a");
        when(transMemoryResultItem.getTargetContents()).thenReturn(
                targetContents);

        presenter.onTransMemoryCopy(new TransMemoryShortcutCopyEvent(0));

        verify(eventBus).fireEvent(copyTMEventCaptor.capture());
        assertThat(copyTMEventCaptor.getValue().getTargetResult(),
                Matchers.equalTo(targetContents));
    }
View Full Code Here

TOP

Related Classes of org.zanata.webtrans.client.events.TransMemoryShortcutCopyEvent

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.