Package org.zanata.webtrans.client.events

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


        TransUnit selectedTransUnit = navigationService.getSelectedOrNull();

        if (selectedTransUnit != null
                && selectedTransUnit.getId().equals(transUnitId)) {
            timer.cancel();
            eventBus.fireEvent(new CopyDataToEditorEvent(targets));
            if(saveAsFuzzyOpt) {
                listener.saveAsFuzzy(transUnitId);
            }
            saveAsFuzzyOpt = false;
        } else {
View Full Code Here


                });
    }

    @Override
    public void copyIntoEditor(List<String> contents) {
        eventBus.fireEvent(new CopyDataToEditorEvent(contents));
    }
View Full Code Here

        tmInfoPresenter.show(object);
    }

    @Override
    public void fireCopyEvent(TransMemoryResultItem object) {
        eventBus.fireEvent(new CopyDataToEditorEvent(object.getTargetContents()));
    }
View Full Code Here

        if (userWorkspaceContext.hasEditTranslationAccess()) {
            TransMemoryResultItem item = getTMResultOrNull(event);
            if (item != null) {
                Log.debug("Copy from translation memory:"
                        + (event.getIndex() + 1));
                eventBus.fireEvent(new CopyDataToEditorEvent(item
                        .getTargetContents()));
            }
        }
    }
View Full Code Here

        when(display.getId()).thenReturn(selectedTU.getId());
        when(display.getEditors()).thenReturn(Lists.newArrayList(editor));
        presenter.setStatesForTesting(selectedTU.getId(), 0, display);

        presenter
                .onDataCopy(new CopyDataToEditorEvent(Arrays.asList("target")));

        verify(editor).setTextAndValidate("target");
        verify(eventBus, atLeastOnce()).fireEvent(eventCaptor.capture());
        NotificationEvent notificationEvent =
                TestFixture.extractFromEvents(eventCaptor.getAllValues(),
View Full Code Here

TOP

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

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.