diff --git a/package.json b/package.json index c5864bf..05de6c4 100644 --- a/package.json +++ b/package.json @@ -149,6 +149,11 @@ "title": "Display model checking panel", "category": "TLA+" }, + { + "command": "tlaplus.model.editor.display", + "title": "Display model editor", + "category": "TLA+" + }, { "command": "tlaplus.out.visualize", "title": "Visualize TLC output", @@ -196,6 +201,10 @@ "command": "tlaplus.model.check.run", "when": "editorLangId == tlaplus || editorLangId == tlaplus_cfg" }, + { + "command": "tlaplus.model.editor.display", + "when": "editorLangId == tlaplus" + }, { "command": "tlaplus.model.check.runAgain", "when": "tlaplus.tlc.canRunAgain" @@ -226,6 +235,11 @@ "command": "tlaplus.model.check.run", "when": "resourceLangId == tlaplus || resourceLangId == tlaplus_cfg", "group": "z_commands" + }, + { + "command": "tlaplus.model.editor.display", + "when": "resourceLangId == tlaplus", + "group": "z_commands" } ], "editor/context": [ @@ -234,6 +248,11 @@ "when": "editorLangId == tlaplus || editorLangId == tlaplus_cfg", "group": "z_commands" }, + { + "command": "tlaplus.model.editor.display", + "when": "editorLangId == tlaplus", + "group": "z_commands" + }, { "command": "tlaplus.out.visualize", "when": "resourceExtname == .out", diff --git a/resources/model-editor-view.css b/resources/model-editor-view.css new file mode 100644 index 0000000..e3ae241 --- /dev/null +++ b/resources/model-editor-view.css @@ -0,0 +1,8 @@ +.constant_definition_input { + margin: 0 0 0 9px; +} + +.constant_definition_label { + margin: 0 6px; +} + diff --git a/resources/model-editor-view.html b/resources/model-editor-view.html new file mode 100644 index 0000000..36f7960 --- /dev/null +++ b/resources/model-editor-view.html @@ -0,0 +1,89 @@ + + + + + + + + + + + Model Editor + + +
+
+

Choose spec:

+
+

+ +

+
+
+

What is the behavior spec?

+
+

+ + +

+ Init: +
+ Next: +
+ + +
+
+
+

What is the model?

+
+

+

+ +
+

+
+
+ + +
+ + +