|
|
@ -849,6 +849,7 @@ public class GUIMultiModelHandler extends JPanel implements PrismModelListener |
|
|
{ |
|
|
{ |
|
|
public void run() |
|
|
public void run() |
|
|
{ |
|
|
{ |
|
|
|
|
|
editor.modelParseSuccessful(); |
|
|
updateBuiltModelDisplay(); |
|
|
updateBuiltModelDisplay(); |
|
|
theModel.doEnables(); |
|
|
theModel.doEnables(); |
|
|
theModel.notifyEventListeners(new GUIModelEvent(GUIModelEvent.MODEL_BUILT, lastMFConstants)); |
|
|
theModel.notifyEventListeners(new GUIModelEvent(GUIModelEvent.MODEL_BUILT, lastMFConstants)); |
|
|
@ -889,8 +890,11 @@ public class GUIMultiModelHandler extends JPanel implements PrismModelListener |
|
|
{ |
|
|
{ |
|
|
if (lastBuildError != null && lastBuildError instanceof PrismLangException) { |
|
|
if (lastBuildError != null && lastBuildError instanceof PrismLangException) { |
|
|
editor.modelParseFailed((PrismLangException) lastBuildError, false); |
|
|
editor.modelParseFailed((PrismLangException) lastBuildError, false); |
|
|
|
|
|
// Bring model tab to front, but only if not busy e.g. with experiment |
|
|
|
|
|
if (!theModel.getComputing()) { |
|
|
theModel.tabToFront(); |
|
|
theModel.tabToFront(); |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
updateBuiltModelDisplay(); |
|
|
updateBuiltModelDisplay(); |
|
|
theModel.doEnables(); |
|
|
theModel.doEnables(); |
|
|
theModel.notifyEventListeners(new GUIModelEvent(GUIModelEvent.MODEL_BUILD_FAILED)); |
|
|
theModel.notifyEventListeners(new GUIModelEvent(GUIModelEvent.MODEL_BUILD_FAILED)); |
|
|
|