1 package org.simantics.document.server.request;
3 import gnu.trove.map.hash.THashMap;
7 import org.simantics.db.ReadGraph;
8 import org.simantics.document.base.ontology.DocumentationResource;
9 import org.simantics.structural2.scl.ComponentTypeProperty;
11 public class DocumentContext /*extends ExpressionContext*/ {
13 private static Map<String,ComponentTypeProperty> get(ReadGraph graph) {
14 Map<String,ComponentTypeProperty> properties = new THashMap<String,ComponentTypeProperty>();
15 properties .put("input", new ComponentTypeProperty(DocumentationResource.getInstance(graph).Properties_input, ActualCompileRequest.VARIABLE));
16 properties .put("self", new ComponentTypeProperty(DocumentationResource.getInstance(graph).Properties_self, ActualCompileRequest.VARIABLE));
17 properties .put("model", new ComponentTypeProperty(DocumentationResource.getInstance(graph).Properties_model, ActualCompileRequest.VARIABLE));
18 properties .put("experiment", new ComponentTypeProperty(DocumentationResource.getInstance(graph).Properties_experiment, ActualCompileRequest.VARIABLE));
19 properties .put("graph", new ComponentTypeProperty(DocumentationResource.getInstance(graph).Properties_graph, ActualCompileRequest.READ_GRAPH_INTERNAL));
23 public DocumentContext(ReadGraph graph) {