2 * Copyright (C) 2015 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
9 package eu
.etaxonomy
.taxeditor
.operation
;
11 import java
.io
.Serializable
;
12 import java
.util
.UUID
;
14 import org
.eclipse
.swt
.widgets
.Display
;
16 import eu
.etaxonomy
.cdm
.api
.application
.CdmApplicationState
;
19 * Default implementation of the {@link IFeedbackGenerator} interface.
25 public abstract class FeedbackGenerator
implements IFeedbackGenerator
{
29 * Generates feedback for a waiting remoting progress monitor
31 * @return feedback object
33 public abstract Serializable
generateFeedback();
39 public void setFeedbackForMonitor(final UUID uuid
) {
40 Display
.getDefault().syncExec(new Runnable() {
43 CdmApplicationState
.getCurrentAppConfig().getProgressMonitorService().setFeedback(uuid
, generateFeedback());