summaryrefslogtreecommitdiff
path: root/Source/DafnyExtension
diff options
context:
space:
mode:
authorGravatar wuestholz <unknown>2013-07-28 17:59:48 -0700
committerGravatar wuestholz <unknown>2013-07-28 17:59:48 -0700
commit12914c0fdf662a89b3988895b24e784751c1457f (patch)
tree50ef1935dc44255fb27c80ffc5ca6e1d08a5f4f3 /Source/DafnyExtension
parent8ebe3f941d07ec4a0700fbb616ae390a4e7a2e67 (diff)
DafnyExtension: Update the error model when a new error state is selected.
Diffstat (limited to 'Source/DafnyExtension')
-rw-r--r--Source/DafnyExtension/ErrorModelTagger.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/DafnyExtension/ErrorModelTagger.cs b/Source/DafnyExtension/ErrorModelTagger.cs
index acb8ccb0..e9f65b81 100644
--- a/Source/DafnyExtension/ErrorModelTagger.cs
+++ b/Source/DafnyExtension/ErrorModelTagger.cs
@@ -190,6 +190,10 @@ namespace DafnyLanguage
esrtag.Error.SelectedStateAdornment.Stroke = Brushes.Black;
esrtag.Error.SelectedStateAdornment.ToolTip = "unselect state";
esrtag.Error.SelectedStateId = esrtag.Id;
+ if (!string.IsNullOrEmpty(esrtag.Error.Model))
+ {
+ DafnyClassifier.DafnyMenuPackage.ShowErrorModel(esrtag.Error.Model, esrtag.Id);
+ }
}
});
return result;