]> gerrit.simantics Code Review - simantics/platform.git/blob
df9a6dbcdbbda92a25ef99ff29045fc18c28ed57
[simantics/platform.git] /
1 package org.simantics.document.server.request;
2
3 import gnu.trove.map.hash.THashMap;
4
5 import java.util.Map;
6
7 import org.simantics.db.ReadGraph;
8 import org.simantics.document.base.ontology.DocumentationResource;
9 import org.simantics.structural2.scl.ComponentTypeProperty;
10
11 public class DocumentContext /*extends ExpressionContext*/ {
12 /*
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));
20         return properties;
21     }
22     
23         public DocumentContext(ReadGraph graph) {
24                 super(get(graph));
25         }
26 */
27 }