]> gerrit.simantics Code Review - simantics/platform.git/blob
c497214d7c80bbe7285a6fd57af736e9d1915bd8
[simantics/platform.git] /
1 package org.simantics.selectionview;\r
2 \r
3 import org.simantics.db.RequestProcessor;\r
4 import org.simantics.db.Resource;\r
5 import org.simantics.db.ReadGraph;\r
6 import org.simantics.db.request.Read;\r
7 import org.simantics.db.Session;\r
8 import org.simantics.db.exception.DatabaseException;\r
9 import org.simantics.db.service.QueryControl;\r
10 \r
11 public class SelectionViewResources {\r
12     \r
13     public final Resource AbstractResourceTabContribution;\r
14     public final Resource AbstractResourceTabContribution_HasPriority;\r
15     public final Resource AbstractResourceTabContribution_HasPriority_Inverse;\r
16     public final Resource AbstractResourceTabContribution_HasTest;\r
17     public final Resource AbstractResourceTabContribution_HasTest_Inverse;\r
18     public final Resource AbstractTypedResourceTabContribution;\r
19     public final Resource AbstractTypedResourceTabContribution_HasType;\r
20     public final Resource AbstractTypedResourceTabContribution_HasType_Inverse;\r
21     public final Resource AbstractTypedVariableTabContribution;\r
22     public final Resource AbstractTypedVariableTabContribution_HasType;\r
23     public final Resource AbstractTypedVariableTabContribution_HasType_Inverse;\r
24     public final Resource AbstractVariableTabContribution;\r
25     public final Resource AbstractVariableTabContribution_HasPriority;\r
26     public final Resource AbstractVariableTabContribution_HasPriority_Inverse;\r
27     public final Resource AbstractVariableTabContribution_HasTest;\r
28     public final Resource AbstractVariableTabContribution_HasTest_Inverse;\r
29     public final Resource AbstractVariableTabContribution_testFunction;\r
30     public final Resource AbstractVariableTabContribution_testFunction_Inverse;\r
31     public final Resource CategoryHidden;\r
32     public final Resource ColorParameterType;\r
33     public final Resource DisplayProperty;\r
34     public final Resource DisplayUnit;\r
35     public final Resource DisplayValue;\r
36     public final Resource FontParameterType;\r
37     public final Resource Functions;\r
38     public final Resource Functions_colorModifier;\r
39     public final Resource Functions_displayPropertyValueAccessor;\r
40     public final Resource Functions_displayUnitValueAccessor;\r
41     public final Resource Functions_displayValueValueAccessor;\r
42     public final Resource Functions_fontModifier;\r
43     public final Resource Functions_getEnumerationValues;\r
44     public final Resource Functions_getPropertyChildName;\r
45     public final Resource Functions_inputModifier;\r
46     public final Resource Functions_singleResourceToVariableTransformation;\r
47     public final Resource Functions_singleResourceTransformation;\r
48     public final Resource Functions_singleVariableTransformation;\r
49     public final Resource Functions_standardSelectionInputTransformation;\r
50     public final Resource GenericCategory;\r
51     public final Resource GenericParameterType;\r
52     public final Resource GenericPropertyChild;\r
53     public final Resource HasCustomModifier;\r
54     public final Resource HasCustomModifier_Inverse;\r
55     public final Resource HasDisplayColumn;\r
56     public final Resource HasDisplayColumn_Inverse;\r
57     public final Resource HasDisplayProperty;\r
58     public final Resource HasDisplayProperty_Inverse;\r
59     public final Resource HasDisplayUnit;\r
60     public final Resource HasDisplayUnit_Inverse;\r
61     public final Resource HasDisplayValue;\r
62     public final Resource HasDisplayValue_Inverse;\r
63     public final Resource HasEnumerationValues;\r
64     public final Resource HasEnumerationValues_Inverse;\r
65     public final Resource HasFormatter;\r
66     public final Resource HasFormatter_Inverse;\r
67     public final Resource HasInputModifier;\r
68     public final Resource HasInputModifier_Inverse;\r
69     public final Resource HasStandardPropertyInfo;\r
70     public final Resource HasStandardPropertyInfo_Inverse;\r
71     public final Resource IsShownUnder;\r
72     public final Resource SelectionTransformation;\r
73     public final Resource SortingName;\r
74     public final Resource SortingName_Inverse;\r
75     public final Resource StandardPropertyInfo;\r
76     public final Resource StandardPropertyInfo_CategoryName;\r
77     public final Resource StandardPropertyInfo_CategoryName_Inverse;\r
78     public final Resource StandardPropertyInfo_CategorySortingName;\r
79     public final Resource StandardPropertyInfo_CategorySortingName_Inverse;\r
80     public final Resource StandardPropertyInfo_IsHidden;\r
81     public final Resource StandardPropertyInfo_IsHidden_Inverse;\r
82     public final Resource TabContribution;\r
83     public final Resource TypedVariableTabContribution;\r
84     public final Resource TypedVariableTabContribution_HasType;\r
85     public final Resource TypedVariableTabContribution_HasType_Inverse;\r
86     public final Resource UnderOf;\r
87     public final Resource VariableTabContribution;\r
88     public final Resource VariableTabContribution_HasPriority;\r
89     public final Resource VariableTabContribution_HasPriority_Inverse;\r
90     public final Resource VariableTabContribution_HasTest;\r
91     public final Resource VariableTabContribution_HasTest_Inverse;\r
92     public final Resource VariableTabContribution_HasView;\r
93     public final Resource VariableTabContribution_HasView_Inverse;\r
94     public final Resource VariableTabContribution_transformation;\r
95     public final Resource VariableTabContribution_transformation_Inverse;\r
96     public final Resource canBeLifted;\r
97     public final Resource canBeLifted_Inverse;\r
98     public final Resource getSpecialCategory;\r
99     public final Resource getSpecialCategory_Inverse;\r
100     public final Resource hidden;\r
101     public final Resource hidden_Inverse;\r
102         \r
103     public static class URIs {\r
104         public static final String AbstractResourceTabContribution = "http://www.simantics.org/SelectionView-1.2/AbstractResourceTabContribution";\r
105         public static final String AbstractResourceTabContribution_HasPriority = "http://www.simantics.org/SelectionView-1.2/AbstractResourceTabContribution/HasPriority";\r
106         public static final String AbstractResourceTabContribution_HasPriority_Inverse = "http://www.simantics.org/SelectionView-1.2/AbstractResourceTabContribution/HasPriority/Inverse";\r
107         public static final String AbstractResourceTabContribution_HasTest = "http://www.simantics.org/SelectionView-1.2/AbstractResourceTabContribution/HasTest";\r
108         public static final String AbstractResourceTabContribution_HasTest_Inverse = "http://www.simantics.org/SelectionView-1.2/AbstractResourceTabContribution/HasTest/Inverse";\r
109         public static final String AbstractTypedResourceTabContribution = "http://www.simantics.org/SelectionView-1.2/AbstractTypedResourceTabContribution";\r
110         public static final String AbstractTypedResourceTabContribution_HasType = "http://www.simantics.org/SelectionView-1.2/AbstractTypedResourceTabContribution/HasType";\r
111         public static final String AbstractTypedResourceTabContribution_HasType_Inverse = "http://www.simantics.org/SelectionView-1.2/AbstractTypedResourceTabContribution/HasType/Inverse";\r
112         public static final String AbstractTypedVariableTabContribution = "http://www.simantics.org/SelectionView-1.2/AbstractTypedVariableTabContribution";\r
113         public static final String AbstractTypedVariableTabContribution_HasType = "http://www.simantics.org/SelectionView-1.2/AbstractTypedVariableTabContribution/HasType";\r
114         public static final String AbstractTypedVariableTabContribution_HasType_Inverse = "http://www.simantics.org/SelectionView-1.2/AbstractTypedVariableTabContribution/HasType/Inverse";\r
115         public static final String AbstractVariableTabContribution = "http://www.simantics.org/SelectionView-1.2/AbstractVariableTabContribution";\r
116         public static final String AbstractVariableTabContribution_HasPriority = "http://www.simantics.org/SelectionView-1.2/AbstractVariableTabContribution/HasPriority";\r
117         public static final String AbstractVariableTabContribution_HasPriority_Inverse = "http://www.simantics.org/SelectionView-1.2/AbstractVariableTabContribution/HasPriority/Inverse";\r
118         public static final String AbstractVariableTabContribution_HasTest = "http://www.simantics.org/SelectionView-1.2/AbstractVariableTabContribution/HasTest";\r
119         public static final String AbstractVariableTabContribution_HasTest_Inverse = "http://www.simantics.org/SelectionView-1.2/AbstractVariableTabContribution/HasTest/Inverse";\r
120         public static final String AbstractVariableTabContribution_testFunction = "http://www.simantics.org/SelectionView-1.2/AbstractVariableTabContribution/testFunction";\r
121         public static final String AbstractVariableTabContribution_testFunction_Inverse = "http://www.simantics.org/SelectionView-1.2/AbstractVariableTabContribution/testFunction/Inverse";\r
122         public static final String CategoryHidden = "http://www.simantics.org/SelectionView-1.2/CategoryHidden";\r
123         public static final String ColorParameterType = "http://www.simantics.org/SelectionView-1.2/ColorParameterType";\r
124         public static final String DisplayProperty = "http://www.simantics.org/SelectionView-1.2/DisplayProperty";\r
125         public static final String DisplayUnit = "http://www.simantics.org/SelectionView-1.2/DisplayUnit";\r
126         public static final String DisplayValue = "http://www.simantics.org/SelectionView-1.2/DisplayValue";\r
127         public static final String FontParameterType = "http://www.simantics.org/SelectionView-1.2/FontParameterType";\r
128         public static final String Functions = "http://www.simantics.org/SelectionView-1.2/Functions";\r
129         public static final String Functions_colorModifier = "http://www.simantics.org/SelectionView-1.2/Functions/colorModifier";\r
130         public static final String Functions_displayPropertyValueAccessor = "http://www.simantics.org/SelectionView-1.2/Functions/displayPropertyValueAccessor";\r
131         public static final String Functions_displayUnitValueAccessor = "http://www.simantics.org/SelectionView-1.2/Functions/displayUnitValueAccessor";\r
132         public static final String Functions_displayValueValueAccessor = "http://www.simantics.org/SelectionView-1.2/Functions/displayValueValueAccessor";\r
133         public static final String Functions_fontModifier = "http://www.simantics.org/SelectionView-1.2/Functions/fontModifier";\r
134         public static final String Functions_getEnumerationValues = "http://www.simantics.org/SelectionView-1.2/Functions/getEnumerationValues";\r
135         public static final String Functions_getPropertyChildName = "http://www.simantics.org/SelectionView-1.2/Functions/getPropertyChildName";\r
136         public static final String Functions_inputModifier = "http://www.simantics.org/SelectionView-1.2/Functions/inputModifier";\r
137         public static final String Functions_singleResourceToVariableTransformation = "http://www.simantics.org/SelectionView-1.2/Functions/singleResourceToVariableTransformation";\r
138         public static final String Functions_singleResourceTransformation = "http://www.simantics.org/SelectionView-1.2/Functions/singleResourceTransformation";\r
139         public static final String Functions_singleVariableTransformation = "http://www.simantics.org/SelectionView-1.2/Functions/singleVariableTransformation";\r
140         public static final String Functions_standardSelectionInputTransformation = "http://www.simantics.org/SelectionView-1.2/Functions/standardSelectionInputTransformation";\r
141         public static final String GenericCategory = "http://www.simantics.org/SelectionView-1.2/GenericCategory";\r
142         public static final String GenericParameterType = "http://www.simantics.org/SelectionView-1.2/GenericParameterType";\r
143         public static final String GenericPropertyChild = "http://www.simantics.org/SelectionView-1.2/GenericPropertyChild";\r
144         public static final String HasCustomModifier = "http://www.simantics.org/SelectionView-1.2/HasCustomModifier";\r
145         public static final String HasCustomModifier_Inverse = "http://www.simantics.org/SelectionView-1.2/HasCustomModifier/Inverse";\r
146         public static final String HasDisplayColumn = "http://www.simantics.org/SelectionView-1.2/HasDisplayColumn";\r
147         public static final String HasDisplayColumn_Inverse = "http://www.simantics.org/SelectionView-1.2/HasDisplayColumn/Inverse";\r
148         public static final String HasDisplayProperty = "http://www.simantics.org/SelectionView-1.2/HasDisplayProperty";\r
149         public static final String HasDisplayProperty_Inverse = "http://www.simantics.org/SelectionView-1.2/HasDisplayProperty/Inverse";\r
150         public static final String HasDisplayUnit = "http://www.simantics.org/SelectionView-1.2/HasDisplayUnit";\r
151         public static final String HasDisplayUnit_Inverse = "http://www.simantics.org/SelectionView-1.2/HasDisplayUnit/Inverse";\r
152         public static final String HasDisplayValue = "http://www.simantics.org/SelectionView-1.2/HasDisplayValue";\r
153         public static final String HasDisplayValue_Inverse = "http://www.simantics.org/SelectionView-1.2/HasDisplayValue/Inverse";\r
154         public static final String HasEnumerationValues = "http://www.simantics.org/SelectionView-1.2/HasEnumerationValues";\r
155         public static final String HasEnumerationValues_Inverse = "http://www.simantics.org/SelectionView-1.2/HasEnumerationValues/Inverse";\r
156         public static final String HasFormatter = "http://www.simantics.org/SelectionView-1.2/HasFormatter";\r
157         public static final String HasFormatter_Inverse = "http://www.simantics.org/SelectionView-1.2/HasFormatter/Inverse";\r
158         public static final String HasInputModifier = "http://www.simantics.org/SelectionView-1.2/HasInputModifier";\r
159         public static final String HasInputModifier_Inverse = "http://www.simantics.org/SelectionView-1.2/HasInputModifier/Inverse";\r
160         public static final String HasStandardPropertyInfo = "http://www.simantics.org/SelectionView-1.2/HasStandardPropertyInfo";\r
161         public static final String HasStandardPropertyInfo_Inverse = "http://www.simantics.org/SelectionView-1.2/HasStandardPropertyInfo/Inverse";\r
162         public static final String IsShownUnder = "http://www.simantics.org/SelectionView-1.2/IsShownUnder";\r
163         public static final String SelectionTransformation = "http://www.simantics.org/SelectionView-1.2/SelectionTransformation";\r
164         public static final String SortingName = "http://www.simantics.org/SelectionView-1.2/SortingName";\r
165         public static final String SortingName_Inverse = "http://www.simantics.org/SelectionView-1.2/SortingName/Inverse";\r
166         public static final String StandardPropertyInfo = "http://www.simantics.org/SelectionView-1.2/StandardPropertyInfo";\r
167         public static final String StandardPropertyInfo_CategoryName = "http://www.simantics.org/SelectionView-1.2/StandardPropertyInfo/CategoryName";\r
168         public static final String StandardPropertyInfo_CategoryName_Inverse = "http://www.simantics.org/SelectionView-1.2/StandardPropertyInfo/CategoryName/Inverse";\r
169         public static final String StandardPropertyInfo_CategorySortingName = "http://www.simantics.org/SelectionView-1.2/StandardPropertyInfo/CategorySortingName";\r
170         public static final String StandardPropertyInfo_CategorySortingName_Inverse = "http://www.simantics.org/SelectionView-1.2/StandardPropertyInfo/CategorySortingName/Inverse";\r
171         public static final String StandardPropertyInfo_IsHidden = "http://www.simantics.org/SelectionView-1.2/StandardPropertyInfo/IsHidden";\r
172         public static final String StandardPropertyInfo_IsHidden_Inverse = "http://www.simantics.org/SelectionView-1.2/StandardPropertyInfo/IsHidden/Inverse";\r
173         public static final String TabContribution = "http://www.simantics.org/SelectionView-1.2/TabContribution";\r
174         public static final String TypedVariableTabContribution = "http://www.simantics.org/SelectionView-1.2/TypedVariableTabContribution";\r
175         public static final String TypedVariableTabContribution_HasType = "http://www.simantics.org/SelectionView-1.2/TypedVariableTabContribution/HasType";\r
176         public static final String TypedVariableTabContribution_HasType_Inverse = "http://www.simantics.org/SelectionView-1.2/TypedVariableTabContribution/HasType/Inverse";\r
177         public static final String UnderOf = "http://www.simantics.org/SelectionView-1.2/UnderOf";\r
178         public static final String VariableTabContribution = "http://www.simantics.org/SelectionView-1.2/VariableTabContribution";\r
179         public static final String VariableTabContribution_HasPriority = "http://www.simantics.org/SelectionView-1.2/VariableTabContribution/HasPriority";\r
180         public static final String VariableTabContribution_HasPriority_Inverse = "http://www.simantics.org/SelectionView-1.2/VariableTabContribution/HasPriority/Inverse";\r
181         public static final String VariableTabContribution_HasTest = "http://www.simantics.org/SelectionView-1.2/VariableTabContribution/HasTest";\r
182         public static final String VariableTabContribution_HasTest_Inverse = "http://www.simantics.org/SelectionView-1.2/VariableTabContribution/HasTest/Inverse";\r
183         public static final String VariableTabContribution_HasView = "http://www.simantics.org/SelectionView-1.2/VariableTabContribution/HasView";\r
184         public static final String VariableTabContribution_HasView_Inverse = "http://www.simantics.org/SelectionView-1.2/VariableTabContribution/HasView/Inverse";\r
185         public static final String VariableTabContribution_transformation = "http://www.simantics.org/SelectionView-1.2/VariableTabContribution/transformation";\r
186         public static final String VariableTabContribution_transformation_Inverse = "http://www.simantics.org/SelectionView-1.2/VariableTabContribution/transformation/Inverse";\r
187         public static final String canBeLifted = "http://www.simantics.org/SelectionView-1.2/canBeLifted";\r
188         public static final String canBeLifted_Inverse = "http://www.simantics.org/SelectionView-1.2/canBeLifted/Inverse";\r
189         public static final String getSpecialCategory = "http://www.simantics.org/SelectionView-1.2/getSpecialCategory";\r
190         public static final String getSpecialCategory_Inverse = "http://www.simantics.org/SelectionView-1.2/getSpecialCategory/Inverse";\r
191         public static final String hidden = "http://www.simantics.org/SelectionView-1.2/hidden";\r
192         public static final String hidden_Inverse = "http://www.simantics.org/SelectionView-1.2/hidden/Inverse";\r
193     }\r
194     \r
195     public static Resource getResourceOrNull(ReadGraph graph, String uri) {\r
196         try {\r
197             return graph.getResource(uri);\r
198         } catch(DatabaseException e) {\r
199             System.err.println(e.getMessage());\r
200             return null;\r
201         }\r
202     }\r
203     \r
204     public SelectionViewResources(ReadGraph graph) {\r
205         AbstractResourceTabContribution = getResourceOrNull(graph, URIs.AbstractResourceTabContribution);\r
206         AbstractResourceTabContribution_HasPriority = getResourceOrNull(graph, URIs.AbstractResourceTabContribution_HasPriority);\r
207         AbstractResourceTabContribution_HasPriority_Inverse = getResourceOrNull(graph, URIs.AbstractResourceTabContribution_HasPriority_Inverse);\r
208         AbstractResourceTabContribution_HasTest = getResourceOrNull(graph, URIs.AbstractResourceTabContribution_HasTest);\r
209         AbstractResourceTabContribution_HasTest_Inverse = getResourceOrNull(graph, URIs.AbstractResourceTabContribution_HasTest_Inverse);\r
210         AbstractTypedResourceTabContribution = getResourceOrNull(graph, URIs.AbstractTypedResourceTabContribution);\r
211         AbstractTypedResourceTabContribution_HasType = getResourceOrNull(graph, URIs.AbstractTypedResourceTabContribution_HasType);\r
212         AbstractTypedResourceTabContribution_HasType_Inverse = getResourceOrNull(graph, URIs.AbstractTypedResourceTabContribution_HasType_Inverse);\r
213         AbstractTypedVariableTabContribution = getResourceOrNull(graph, URIs.AbstractTypedVariableTabContribution);\r
214         AbstractTypedVariableTabContribution_HasType = getResourceOrNull(graph, URIs.AbstractTypedVariableTabContribution_HasType);\r
215         AbstractTypedVariableTabContribution_HasType_Inverse = getResourceOrNull(graph, URIs.AbstractTypedVariableTabContribution_HasType_Inverse);\r
216         AbstractVariableTabContribution = getResourceOrNull(graph, URIs.AbstractVariableTabContribution);\r
217         AbstractVariableTabContribution_HasPriority = getResourceOrNull(graph, URIs.AbstractVariableTabContribution_HasPriority);\r
218         AbstractVariableTabContribution_HasPriority_Inverse = getResourceOrNull(graph, URIs.AbstractVariableTabContribution_HasPriority_Inverse);\r
219         AbstractVariableTabContribution_HasTest = getResourceOrNull(graph, URIs.AbstractVariableTabContribution_HasTest);\r
220         AbstractVariableTabContribution_HasTest_Inverse = getResourceOrNull(graph, URIs.AbstractVariableTabContribution_HasTest_Inverse);\r
221         AbstractVariableTabContribution_testFunction = getResourceOrNull(graph, URIs.AbstractVariableTabContribution_testFunction);\r
222         AbstractVariableTabContribution_testFunction_Inverse = getResourceOrNull(graph, URIs.AbstractVariableTabContribution_testFunction_Inverse);\r
223         CategoryHidden = getResourceOrNull(graph, URIs.CategoryHidden);\r
224         ColorParameterType = getResourceOrNull(graph, URIs.ColorParameterType);\r
225         DisplayProperty = getResourceOrNull(graph, URIs.DisplayProperty);\r
226         DisplayUnit = getResourceOrNull(graph, URIs.DisplayUnit);\r
227         DisplayValue = getResourceOrNull(graph, URIs.DisplayValue);\r
228         FontParameterType = getResourceOrNull(graph, URIs.FontParameterType);\r
229         Functions = getResourceOrNull(graph, URIs.Functions);\r
230         Functions_colorModifier = getResourceOrNull(graph, URIs.Functions_colorModifier);\r
231         Functions_displayPropertyValueAccessor = getResourceOrNull(graph, URIs.Functions_displayPropertyValueAccessor);\r
232         Functions_displayUnitValueAccessor = getResourceOrNull(graph, URIs.Functions_displayUnitValueAccessor);\r
233         Functions_displayValueValueAccessor = getResourceOrNull(graph, URIs.Functions_displayValueValueAccessor);\r
234         Functions_fontModifier = getResourceOrNull(graph, URIs.Functions_fontModifier);\r
235         Functions_getEnumerationValues = getResourceOrNull(graph, URIs.Functions_getEnumerationValues);\r
236         Functions_getPropertyChildName = getResourceOrNull(graph, URIs.Functions_getPropertyChildName);\r
237         Functions_inputModifier = getResourceOrNull(graph, URIs.Functions_inputModifier);\r
238         Functions_singleResourceToVariableTransformation = getResourceOrNull(graph, URIs.Functions_singleResourceToVariableTransformation);\r
239         Functions_singleResourceTransformation = getResourceOrNull(graph, URIs.Functions_singleResourceTransformation);\r
240         Functions_singleVariableTransformation = getResourceOrNull(graph, URIs.Functions_singleVariableTransformation);\r
241         Functions_standardSelectionInputTransformation = getResourceOrNull(graph, URIs.Functions_standardSelectionInputTransformation);\r
242         GenericCategory = getResourceOrNull(graph, URIs.GenericCategory);\r
243         GenericParameterType = getResourceOrNull(graph, URIs.GenericParameterType);\r
244         GenericPropertyChild = getResourceOrNull(graph, URIs.GenericPropertyChild);\r
245         HasCustomModifier = getResourceOrNull(graph, URIs.HasCustomModifier);\r
246         HasCustomModifier_Inverse = getResourceOrNull(graph, URIs.HasCustomModifier_Inverse);\r
247         HasDisplayColumn = getResourceOrNull(graph, URIs.HasDisplayColumn);\r
248         HasDisplayColumn_Inverse = getResourceOrNull(graph, URIs.HasDisplayColumn_Inverse);\r
249         HasDisplayProperty = getResourceOrNull(graph, URIs.HasDisplayProperty);\r
250         HasDisplayProperty_Inverse = getResourceOrNull(graph, URIs.HasDisplayProperty_Inverse);\r
251         HasDisplayUnit = getResourceOrNull(graph, URIs.HasDisplayUnit);\r
252         HasDisplayUnit_Inverse = getResourceOrNull(graph, URIs.HasDisplayUnit_Inverse);\r
253         HasDisplayValue = getResourceOrNull(graph, URIs.HasDisplayValue);\r
254         HasDisplayValue_Inverse = getResourceOrNull(graph, URIs.HasDisplayValue_Inverse);\r
255         HasEnumerationValues = getResourceOrNull(graph, URIs.HasEnumerationValues);\r
256         HasEnumerationValues_Inverse = getResourceOrNull(graph, URIs.HasEnumerationValues_Inverse);\r
257         HasFormatter = getResourceOrNull(graph, URIs.HasFormatter);\r
258         HasFormatter_Inverse = getResourceOrNull(graph, URIs.HasFormatter_Inverse);\r
259         HasInputModifier = getResourceOrNull(graph, URIs.HasInputModifier);\r
260         HasInputModifier_Inverse = getResourceOrNull(graph, URIs.HasInputModifier_Inverse);\r
261         HasStandardPropertyInfo = getResourceOrNull(graph, URIs.HasStandardPropertyInfo);\r
262         HasStandardPropertyInfo_Inverse = getResourceOrNull(graph, URIs.HasStandardPropertyInfo_Inverse);\r
263         IsShownUnder = getResourceOrNull(graph, URIs.IsShownUnder);\r
264         SelectionTransformation = getResourceOrNull(graph, URIs.SelectionTransformation);\r
265         SortingName = getResourceOrNull(graph, URIs.SortingName);\r
266         SortingName_Inverse = getResourceOrNull(graph, URIs.SortingName_Inverse);\r
267         StandardPropertyInfo = getResourceOrNull(graph, URIs.StandardPropertyInfo);\r
268         StandardPropertyInfo_CategoryName = getResourceOrNull(graph, URIs.StandardPropertyInfo_CategoryName);\r
269         StandardPropertyInfo_CategoryName_Inverse = getResourceOrNull(graph, URIs.StandardPropertyInfo_CategoryName_Inverse);\r
270         StandardPropertyInfo_CategorySortingName = getResourceOrNull(graph, URIs.StandardPropertyInfo_CategorySortingName);\r
271         StandardPropertyInfo_CategorySortingName_Inverse = getResourceOrNull(graph, URIs.StandardPropertyInfo_CategorySortingName_Inverse);\r
272         StandardPropertyInfo_IsHidden = getResourceOrNull(graph, URIs.StandardPropertyInfo_IsHidden);\r
273         StandardPropertyInfo_IsHidden_Inverse = getResourceOrNull(graph, URIs.StandardPropertyInfo_IsHidden_Inverse);\r
274         TabContribution = getResourceOrNull(graph, URIs.TabContribution);\r
275         TypedVariableTabContribution = getResourceOrNull(graph, URIs.TypedVariableTabContribution);\r
276         TypedVariableTabContribution_HasType = getResourceOrNull(graph, URIs.TypedVariableTabContribution_HasType);\r
277         TypedVariableTabContribution_HasType_Inverse = getResourceOrNull(graph, URIs.TypedVariableTabContribution_HasType_Inverse);\r
278         UnderOf = getResourceOrNull(graph, URIs.UnderOf);\r
279         VariableTabContribution = getResourceOrNull(graph, URIs.VariableTabContribution);\r
280         VariableTabContribution_HasPriority = getResourceOrNull(graph, URIs.VariableTabContribution_HasPriority);\r
281         VariableTabContribution_HasPriority_Inverse = getResourceOrNull(graph, URIs.VariableTabContribution_HasPriority_Inverse);\r
282         VariableTabContribution_HasTest = getResourceOrNull(graph, URIs.VariableTabContribution_HasTest);\r
283         VariableTabContribution_HasTest_Inverse = getResourceOrNull(graph, URIs.VariableTabContribution_HasTest_Inverse);\r
284         VariableTabContribution_HasView = getResourceOrNull(graph, URIs.VariableTabContribution_HasView);\r
285         VariableTabContribution_HasView_Inverse = getResourceOrNull(graph, URIs.VariableTabContribution_HasView_Inverse);\r
286         VariableTabContribution_transformation = getResourceOrNull(graph, URIs.VariableTabContribution_transformation);\r
287         VariableTabContribution_transformation_Inverse = getResourceOrNull(graph, URIs.VariableTabContribution_transformation_Inverse);\r
288         canBeLifted = getResourceOrNull(graph, URIs.canBeLifted);\r
289         canBeLifted_Inverse = getResourceOrNull(graph, URIs.canBeLifted_Inverse);\r
290         getSpecialCategory = getResourceOrNull(graph, URIs.getSpecialCategory);\r
291         getSpecialCategory_Inverse = getResourceOrNull(graph, URIs.getSpecialCategory_Inverse);\r
292         hidden = getResourceOrNull(graph, URIs.hidden);\r
293         hidden_Inverse = getResourceOrNull(graph, URIs.hidden_Inverse);\r
294     }\r
295     \r
296     public static SelectionViewResources getInstance(ReadGraph graph) {\r
297         Session session = graph.getSession();\r
298         SelectionViewResources ret = session.peekService(SelectionViewResources.class);\r
299         if(ret == null) {\r
300             QueryControl qc = graph.getService(QueryControl.class);\r
301             ret = new SelectionViewResources(qc.getIndependentGraph(graph));\r
302             session.registerService(SelectionViewResources.class, ret);\r
303         }\r
304         return ret;\r
305     }\r
306     \r
307     public static SelectionViewResources getInstance(RequestProcessor session) throws DatabaseException {\r
308         SelectionViewResources ret = session.peekService(SelectionViewResources.class);\r
309         if(ret == null) {\r
310             ret = session.syncRequest(new Read<SelectionViewResources>() {\r
311                 public SelectionViewResources perform(ReadGraph graph) throws DatabaseException {\r
312                     QueryControl qc = graph.getService(QueryControl.class);\r
313                     return new SelectionViewResources(qc.getIndependentGraph(graph));\r
314                 }\r
315             });\r
316             session.registerService(SelectionViewResources.class, ret);\r
317         }\r
318         return ret;\r
319     }\r
320     \r
321 }\r
322 \r