Examples of prepareUndoFor()


Examples of org.zanata.webtrans.client.ui.UndoLink.prepareUndoFor()

                if (result.getUpdateInfoList().isEmpty()) {
                    eventBus.fireEvent(new NotificationEvent(Info, messages
                            .noTranslationToMerge()));
                } else {
                    final UndoLink undoLink = undoLinkProvider.get();
                    undoLink.prepareUndoFor(result);

                    List<String> rowIndicesOrNull =
                            Lists.transform(result.getUpdateInfoList(),
                                    SuccessRowIndexOrNullFunction.FUNCTION);
                    Iterable<String> successRowIndices =
View Full Code Here

Examples of org.zanata.webtrans.client.ui.UndoLink.prepareUndoFor()

                        goToRowLink));
                int rowIndexOnPage =
                        navigationService.findRowIndexById(updatedTU.getId());
                if (rowIndexOnPage != NavigationService.UNDEFINED) {
                    UndoLink undoLink = undoLinkProvider.get();
                    undoLink.prepareUndoFor(result);
                    targetContentsPresenter.addUndoLink(rowIndexOnPage,
                            undoLink);
                    navigationService.updateDataModel(updatedTU);
                    targetContentsPresenter.confirmSaved(updatedTU);
                    targetContentsPresenter.setFocus();
View Full Code Here

Examples of org.zanata.webtrans.client.ui.UndoLink.prepareUndoFor()

                                    searchText, replacement,
                                    updateInfoList.size());
                }

                final UndoLink undoLink = undoLinkProvider.get();
                undoLink.prepareUndoFor(result);
                undoLink.setUndoCallback(new UndoLink.UndoCallback() {
                    @Override
                    public void preUndo() {
                        executePreUndo(updateInfoList);
                    }
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.