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