3 * Copyright (C) 2015 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.taxeditor
.operation
;
12 import java
.io
.Serializable
;
13 import java
.util
.UUID
;
15 import org
.eclipse
.swt
.widgets
.Display
;
17 import eu
.etaxonomy
.cdm
.api
.application
.CdmApplicationState
;
20 * Default implementation of the {@link IFeedbackGenerator} interface.
26 public abstract class FeedbackGenerator
implements IFeedbackGenerator
{
30 * Generates feedback for a waiting remoting progress monitor
32 * @return feedback object
34 public abstract Serializable
generateFeedback();
40 public void setFeedbackForMonitor(final UUID uuid
) {
41 Display
.getDefault().syncExec(new Runnable() {
44 CdmApplicationState
.getCurrentAppConfig().getProgressMonitorService().setFeedback(uuid
, generateFeedback());