From 2c9a94875675599f106a8dd1d1257f9ddc8822f7 Mon Sep 17 00:00:00 2001
From: Alexander Diewald <diewald@fortiss.org>
Date: Wed, 15 Mar 2017 10:51:25 +0000
Subject: [PATCH] - Do not disable the Annotation View Updates when the DSE is
 launched:   - The update is disabled when the model transformation is
 requested externally (models already added to the project may be altered).
 The DSE only uses "floating" models for the transformation: no Annotation
 View updates are triggered.   - Disabling the Annotation View updates when
 running the DSE renders the view unusable until the DSE stops.

---
 .../alg/dse/backend/opt4j/Opt4JExplorerBackend.java        | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/org.fortiss.af3.exploration.alg/trunk/src/org/fortiss/af3/exploration/alg/dse/backend/opt4j/Opt4JExplorerBackend.java b/org.fortiss.af3.exploration.alg/trunk/src/org/fortiss/af3/exploration/alg/dse/backend/opt4j/Opt4JExplorerBackend.java
index 0da294ac..de04cd42 100644
--- a/org.fortiss.af3.exploration.alg/trunk/src/org/fortiss/af3/exploration/alg/dse/backend/opt4j/Opt4JExplorerBackend.java
+++ b/org.fortiss.af3.exploration.alg/trunk/src/org/fortiss/af3/exploration/alg/dse/backend/opt4j/Opt4JExplorerBackend.java
@@ -44,7 +44,6 @@ import org.fortiss.af3.exploration.model.ExplorationTarget;
 import org.fortiss.af3.exploration.moea.model.DseSpecification;
 import org.fortiss.af3.exploration.moea.model.feature.SafetyExploration;
 import org.fortiss.af3.exploration.moea.model.parameters.EAOptimizer;
-import org.fortiss.tooling.base.ui.annotation.view.AnnotationViewPartBase;
 import org.opt4j.core.common.completer.IndividualCompleterModule;
 import org.opt4j.core.config.Task;
 import org.opt4j.core.config.TaskStateListener;
@@ -245,9 +244,6 @@ public class Opt4JExplorerBackend extends ExplorerBackendBase<EAOptimizer> {
 			progressMonitor.beginTask("EA optimization", opt4JParameters.getIterations());
 		}
 
-		// Disable any Annotation view update
-		AnnotationViewPartBase.setUpdateEnabled(false);
-
 		CompositeExplorationSolution<?> rval = null;
 		Exception ex = null;
 		try {
@@ -268,9 +264,6 @@ public class Opt4JExplorerBackend extends ExplorerBackendBase<EAOptimizer> {
 				rval = validate(rval, archExplorationProblemModule.getEvaluators());
 			}
 			opt4JTask.close();
-
-			// Disable any Annotation view update
-			AnnotationViewPartBase.setUpdateEnabled(true);
 		}
 
 		if(ex != null) {
-- 
GitLab