Commit 573ef83b authored by Alexander Diewald's avatar Alexander Diewald
Browse files

DSE.UI: Resolve Threading Issues: Synth. View Open, Delete AF3 Project

Issue-Ref: 4064
Issue-Url: https://af3-developer.fortiss.org/issues/4064

Signed-off-by: Alexander Diewald's avatarAlexander Diewald <diewald@fortiss.org>
parent 5759588d
DSEProcessNavigator.java 307b970c8d07b8cd4caccee1de88f05f672df32f YELLOW
DSEProcessNavigator.java ffe553880780053b5d01bf777b52e51bb611acf0 YELLOW
ExplorationElementTreeViewer.java 47f80c87855c35f11af01f409604b45433704974 GREEN
ExplorationNavigatorElementContentProvider.java 27a951f2dd5c9cb7f96c371e1e5f894825933cfd GREEN
ExplorationNavigatorFXController.java 317b4521a09e3f1067fd0e4aac061d1b573c092b GREEN
......
......@@ -32,6 +32,7 @@ import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.MenuItem;
......@@ -193,10 +194,12 @@ public class DSEProcessNavigator extends DseSaveableView implements IEventListen
/** Enables/Disables the buttons for opening views for specific DSE tasks. */
private void enableViewButtons(boolean enable) {
btnC.setEnabled(enable);
constraintMenu.setEnabled(enable);
objectiveMenu.setEnabled(enable);
btnS.setEnabled(enable);
btnV.setEnabled(enable);
Display.getDefault().asyncExec(() -> {
btnC.setEnabled(enable);
constraintMenu.setEnabled(enable);
objectiveMenu.setEnabled(enable);
btnS.setEnabled(enable);
btnV.setEnabled(enable);
});
}
}
......@@ -3,5 +3,5 @@ SolverSettingsDialog.java 25b3541fc6eab090500321fa32a3f68992fff0a0 GREEN
SolverSettingsTreeTableViewer.java 0f0be7ff52d2c48fbff9d37c7e23bd7a99eb1948 YELLOW
SynthesisCategoryExplorationTargetContentProvider.java 410f00e07b5f4208b762b80baf563b2b73a93a71 GREEN
SynthesisCategoryRuleSetContentProvider.java 039913dba18b0248d10a77275258bc9acf9526cf GREEN
SynthesisFXContentController.java 2adf53db3d39714cefde496926563d0e77c7b378 YELLOW
SynthesisFXContentController.java 0af860ed5ab2788042296d89c195ba2e2204447e YELLOW
SynthesisFXViewPart.java e40c2bd501d87b41c6324ab80fd34e64410db644 GREEN
......@@ -635,14 +635,16 @@ public class SynthesisFXContentController extends CompositeFXControllerBase<Anch
loadSolverSettings();
break;
case DSE_REMOVED_EVENT:
constraintTbl.setRoot(null);
constraintTbl.getColumns().clear();
constraintRuleSetTbl.getColumns().clear();
constraintRuleSetTbl.setRoot(null);
objectiveTbl.setRoot(null);
objectiveTbl.getColumns().clear();
objectiveRuleSetTbl.setRoot(null);
objectiveRuleSetTbl.getColumns().clear();
Platform.runLater(() -> {
constraintTbl.setRoot(null);
constraintRuleSetTbl.setRoot(null);
objectiveTbl.setRoot(null);
objectiveRuleSetTbl.setRoot(null);
constraintTbl.getColumns().clear();
constraintRuleSetTbl.getColumns().clear();
objectiveTbl.getColumns().clear();
objectiveRuleSetTbl.getColumns().clear();
});
activeDse = null;
break;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment