]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.document.swt.ontology/src/org/simantics/document/swt/ontology/SWTResources.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.document.swt.ontology / src / org / simantics / document / swt / ontology / SWTResources.java
1 package org.simantics.document.swt.ontology;\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 SWTResources {\r
12     \r
13     public final Resource Components;\r
14     public final Resource Components_Browser;\r
15     public final Resource Components_Browser_url;\r
16     public final Resource Components_Browser_url_Inverse;\r
17     public final Resource Components_Button;\r
18     public final Resource Components_Button_onPress;\r
19     public final Resource Components_Button_onPress_Inverse;\r
20     public final Resource Components_Button_text;\r
21     public final Resource Components_Button_text_Inverse;\r
22     public final Resource Components_Combo;\r
23     public final Resource Components_Combo_available;\r
24     public final Resource Components_Combo_available_Inverse;\r
25     public final Resource Components_Combo_onModify;\r
26     public final Resource Components_Combo_onModify_Inverse;\r
27     public final Resource Components_Combo_selected;\r
28     public final Resource Components_Combo_selected_Inverse;\r
29     public final Resource Components_Component;\r
30     public final Resource Components_Component_HScroll;\r
31     public final Resource Components_Component_HScroll_Inverse;\r
32     public final Resource Components_Component_NoScroll;\r
33     public final Resource Components_Component_NoScroll_Inverse;\r
34     public final Resource Components_Component_VScroll;\r
35     public final Resource Components_Component_VScroll_Inverse;\r
36     public final Resource Components_Component_alignment;\r
37     public final Resource Components_Component_alignment_Inverse;\r
38     public final Resource Components_Component_background;\r
39     public final Resource Components_Component_background_Inverse;\r
40     public final Resource Components_Component_font;\r
41     public final Resource Components_Component_font_Inverse;\r
42     public final Resource Components_Component_foreground;\r
43     public final Resource Components_Component_foreground_Inverse;\r
44     public final Resource Components_Component_multiLine;\r
45     public final Resource Components_Component_multiLine_Inverse;\r
46     public final Resource Components_Explorer;\r
47     public final Resource Components_Explorer_browseContext;\r
48     public final Resource Components_Explorer_browseContext_Inverse;\r
49     public final Resource Components_Explorer_columns;\r
50     public final Resource Components_Explorer_columns_Inverse;\r
51     public final Resource Components_Explorer_contextMenuId;\r
52     public final Resource Components_Explorer_contextMenuId_Inverse;\r
53     public final Resource Components_Explorer_displayFilter;\r
54     public final Resource Components_Explorer_displayFilter_Inverse;\r
55     public final Resource Components_Explorer_displayHeader;\r
56     public final Resource Components_Explorer_displayHeader_Inverse;\r
57     public final Resource Components_Explorer_dragSourceListenerFactory;\r
58     public final Resource Components_Explorer_dragSourceListenerFactory_Inverse;\r
59     public final Resource Components_Explorer_editingColumn;\r
60     public final Resource Components_Explorer_editingColumn_Inverse;\r
61     public final Resource Components_Explorer_explorerInput;\r
62     public final Resource Components_Explorer_explorerInput_Inverse;\r
63     public final Resource Components_GridCell;\r
64     public final Resource Components_GridCell_grabHorizontal;\r
65     public final Resource Components_GridCell_grabHorizontal_Inverse;\r
66     public final Resource Components_GridCell_grabVertical;\r
67     public final Resource Components_GridCell_grabVertical_Inverse;\r
68     public final Resource Components_GridCell_span;\r
69     public final Resource Components_GridCell_span_Inverse;\r
70     public final Resource Components_GridComposite;\r
71     public final Resource Components_GridComposite_extendedMargins;\r
72     public final Resource Components_GridComposite_extendedMargins_Inverse;\r
73     public final Resource Components_GridComposite_numColumns;\r
74     public final Resource Components_GridComposite_numColumns_Inverse;\r
75     public final Resource Components_Label;\r
76     public final Resource Components_Label_text;\r
77     public final Resource Components_Label_text_Inverse;\r
78     public final Resource Components_SCLTextEditor;\r
79     public final Resource Components_SCLTextEditor_onModify;\r
80     public final Resource Components_SCLTextEditor_onModify_Inverse;\r
81     public final Resource Components_SCLTextEditor_textAndErrors;\r
82     public final Resource Components_SCLTextEditor_textAndErrors_Inverse;\r
83     public final Resource Components_ScrolledComposite;\r
84     public final Resource Components_TrackedText;\r
85     public final Resource Components_TrackedText_editingBackground;\r
86     public final Resource Components_TrackedText_editingBackground_Inverse;\r
87     public final Resource Components_TrackedText_hoverBackground;\r
88     public final Resource Components_TrackedText_hoverBackground_Inverse;\r
89     public final Resource Components_TrackedText_inactiveBackground;\r
90     public final Resource Components_TrackedText_inactiveBackground_Inverse;\r
91     public final Resource Components_TrackedText_invalidBackground;\r
92     public final Resource Components_TrackedText_invalidBackground_Inverse;\r
93     public final Resource Components_TrackedText_onModify;\r
94     public final Resource Components_TrackedText_onModify_Inverse;\r
95     public final Resource Components_TrackedText_text;\r
96     public final Resource Components_TrackedText_text_Inverse;\r
97     public final Resource Components_TrackedText_validator;\r
98     public final Resource Components_TrackedText_validator_Inverse;\r
99     public final Resource Components_attribute;\r
100     public final Resource Functions;\r
101     public final Resource Functions_explorerInput;\r
102     public final Resource Functions_input;\r
103     public final Resource Functions_propertyDisplayValue;\r
104     public final Resource Functions_propertyDisplayValueModifier;\r
105     public final Resource Literals;\r
106     public final Resource Literals_Columns;\r
107     public final Resource Literals_Margins;\r
108     public final Resource Properties;\r
109     public final Resource Properties_ParameterType;\r
110     public final Resource Properties_ParameterType_sclValueProperty;\r
111     public final Resource Properties_ParameterType_sclValueProperty_Inverse;\r
112     public final Resource SCLMain;\r
113     public final Resource TypedVariableTabContribution;\r
114     public final Resource TypedVariableTabContribution_HasView;\r
115     public final Resource TypedVariableTabContribution_HasView_Inverse;\r
116     public final Resource TypedVariableTabContribution_type;\r
117     public final Resource TypedVariableTabContribution_type_Inverse;\r
118     public final Resource button;\r
119     public final Resource combo;\r
120     public final Resource connect;\r
121     public final Resource defAttribute;\r
122     public final Resource explorer;\r
123     public final Resource gridCell;\r
124     public final Resource gridComposite;\r
125     public final Resource label;\r
126     public final Resource sclTextEditor;\r
127     public final Resource scrolledComposite;\r
128     public final Resource trackedText;\r
129         \r
130     public static class URIs {\r
131         public static final String Components = "http://www.simantics.org/SWT-1.0/Components";\r
132         public static final String Components_Browser = "http://www.simantics.org/SWT-1.0/Components/Browser";\r
133         public static final String Components_Browser_url = "http://www.simantics.org/SWT-1.0/Components/Browser/url";\r
134         public static final String Components_Browser_url_Inverse = "http://www.simantics.org/SWT-1.0/Components/Browser/url/Inverse";\r
135         public static final String Components_Button = "http://www.simantics.org/SWT-1.0/Components/Button";\r
136         public static final String Components_Button_onPress = "http://www.simantics.org/SWT-1.0/Components/Button/onPress";\r
137         public static final String Components_Button_onPress_Inverse = "http://www.simantics.org/SWT-1.0/Components/Button/onPress/Inverse";\r
138         public static final String Components_Button_text = "http://www.simantics.org/SWT-1.0/Components/Button/text";\r
139         public static final String Components_Button_text_Inverse = "http://www.simantics.org/SWT-1.0/Components/Button/text/Inverse";\r
140         public static final String Components_Combo = "http://www.simantics.org/SWT-1.0/Components/Combo";\r
141         public static final String Components_Combo_available = "http://www.simantics.org/SWT-1.0/Components/Combo/available";\r
142         public static final String Components_Combo_available_Inverse = "http://www.simantics.org/SWT-1.0/Components/Combo/available/Inverse";\r
143         public static final String Components_Combo_onModify = "http://www.simantics.org/SWT-1.0/Components/Combo/onModify";\r
144         public static final String Components_Combo_onModify_Inverse = "http://www.simantics.org/SWT-1.0/Components/Combo/onModify/Inverse";\r
145         public static final String Components_Combo_selected = "http://www.simantics.org/SWT-1.0/Components/Combo/selected";\r
146         public static final String Components_Combo_selected_Inverse = "http://www.simantics.org/SWT-1.0/Components/Combo/selected/Inverse";\r
147         public static final String Components_Component = "http://www.simantics.org/SWT-1.0/Components/Component";\r
148         public static final String Components_Component_HScroll = "http://www.simantics.org/SWT-1.0/Components/Component/HScroll";\r
149         public static final String Components_Component_HScroll_Inverse = "http://www.simantics.org/SWT-1.0/Components/Component/HScroll/Inverse";\r
150         public static final String Components_Component_NoScroll = "http://www.simantics.org/SWT-1.0/Components/Component/NoScroll";\r
151         public static final String Components_Component_NoScroll_Inverse = "http://www.simantics.org/SWT-1.0/Components/Component/NoScroll/Inverse";\r
152         public static final String Components_Component_VScroll = "http://www.simantics.org/SWT-1.0/Components/Component/VScroll";\r
153         public static final String Components_Component_VScroll_Inverse = "http://www.simantics.org/SWT-1.0/Components/Component/VScroll/Inverse";\r
154         public static final String Components_Component_alignment = "http://www.simantics.org/SWT-1.0/Components/Component/alignment";\r
155         public static final String Components_Component_alignment_Inverse = "http://www.simantics.org/SWT-1.0/Components/Component/alignment/Inverse";\r
156         public static final String Components_Component_background = "http://www.simantics.org/SWT-1.0/Components/Component/background";\r
157         public static final String Components_Component_background_Inverse = "http://www.simantics.org/SWT-1.0/Components/Component/background/Inverse";\r
158         public static final String Components_Component_font = "http://www.simantics.org/SWT-1.0/Components/Component/font";\r
159         public static final String Components_Component_font_Inverse = "http://www.simantics.org/SWT-1.0/Components/Component/font/Inverse";\r
160         public static final String Components_Component_foreground = "http://www.simantics.org/SWT-1.0/Components/Component/foreground";\r
161         public static final String Components_Component_foreground_Inverse = "http://www.simantics.org/SWT-1.0/Components/Component/foreground/Inverse";\r
162         public static final String Components_Component_multiLine = "http://www.simantics.org/SWT-1.0/Components/Component/multiLine";\r
163         public static final String Components_Component_multiLine_Inverse = "http://www.simantics.org/SWT-1.0/Components/Component/multiLine/Inverse";\r
164         public static final String Components_Explorer = "http://www.simantics.org/SWT-1.0/Components/Explorer";\r
165         public static final String Components_Explorer_browseContext = "http://www.simantics.org/SWT-1.0/Components/Explorer/browseContext";\r
166         public static final String Components_Explorer_browseContext_Inverse = "http://www.simantics.org/SWT-1.0/Components/Explorer/browseContext/Inverse";\r
167         public static final String Components_Explorer_columns = "http://www.simantics.org/SWT-1.0/Components/Explorer/columns";\r
168         public static final String Components_Explorer_columns_Inverse = "http://www.simantics.org/SWT-1.0/Components/Explorer/columns/Inverse";\r
169         public static final String Components_Explorer_contextMenuId = "http://www.simantics.org/SWT-1.0/Components/Explorer/contextMenuId";\r
170         public static final String Components_Explorer_contextMenuId_Inverse = "http://www.simantics.org/SWT-1.0/Components/Explorer/contextMenuId/Inverse";\r
171         public static final String Components_Explorer_displayFilter = "http://www.simantics.org/SWT-1.0/Components/Explorer/displayFilter";\r
172         public static final String Components_Explorer_displayFilter_Inverse = "http://www.simantics.org/SWT-1.0/Components/Explorer/displayFilter/Inverse";\r
173         public static final String Components_Explorer_displayHeader = "http://www.simantics.org/SWT-1.0/Components/Explorer/displayHeader";\r
174         public static final String Components_Explorer_displayHeader_Inverse = "http://www.simantics.org/SWT-1.0/Components/Explorer/displayHeader/Inverse";\r
175         public static final String Components_Explorer_dragSourceListenerFactory = "http://www.simantics.org/SWT-1.0/Components/Explorer/dragSourceListenerFactory";\r
176         public static final String Components_Explorer_dragSourceListenerFactory_Inverse = "http://www.simantics.org/SWT-1.0/Components/Explorer/dragSourceListenerFactory/Inverse";\r
177         public static final String Components_Explorer_editingColumn = "http://www.simantics.org/SWT-1.0/Components/Explorer/editingColumn";\r
178         public static final String Components_Explorer_editingColumn_Inverse = "http://www.simantics.org/SWT-1.0/Components/Explorer/editingColumn/Inverse";\r
179         public static final String Components_Explorer_explorerInput = "http://www.simantics.org/SWT-1.0/Components/Explorer/explorerInput";\r
180         public static final String Components_Explorer_explorerInput_Inverse = "http://www.simantics.org/SWT-1.0/Components/Explorer/explorerInput/Inverse";\r
181         public static final String Components_GridCell = "http://www.simantics.org/SWT-1.0/Components/GridCell";\r
182         public static final String Components_GridCell_grabHorizontal = "http://www.simantics.org/SWT-1.0/Components/GridCell/grabHorizontal";\r
183         public static final String Components_GridCell_grabHorizontal_Inverse = "http://www.simantics.org/SWT-1.0/Components/GridCell/grabHorizontal/Inverse";\r
184         public static final String Components_GridCell_grabVertical = "http://www.simantics.org/SWT-1.0/Components/GridCell/grabVertical";\r
185         public static final String Components_GridCell_grabVertical_Inverse = "http://www.simantics.org/SWT-1.0/Components/GridCell/grabVertical/Inverse";\r
186         public static final String Components_GridCell_span = "http://www.simantics.org/SWT-1.0/Components/GridCell/span";\r
187         public static final String Components_GridCell_span_Inverse = "http://www.simantics.org/SWT-1.0/Components/GridCell/span/Inverse";\r
188         public static final String Components_GridComposite = "http://www.simantics.org/SWT-1.0/Components/GridComposite";\r
189         public static final String Components_GridComposite_extendedMargins = "http://www.simantics.org/SWT-1.0/Components/GridComposite/extendedMargins";\r
190         public static final String Components_GridComposite_extendedMargins_Inverse = "http://www.simantics.org/SWT-1.0/Components/GridComposite/extendedMargins/Inverse";\r
191         public static final String Components_GridComposite_numColumns = "http://www.simantics.org/SWT-1.0/Components/GridComposite/numColumns";\r
192         public static final String Components_GridComposite_numColumns_Inverse = "http://www.simantics.org/SWT-1.0/Components/GridComposite/numColumns/Inverse";\r
193         public static final String Components_Label = "http://www.simantics.org/SWT-1.0/Components/Label";\r
194         public static final String Components_Label_text = "http://www.simantics.org/SWT-1.0/Components/Label/text";\r
195         public static final String Components_Label_text_Inverse = "http://www.simantics.org/SWT-1.0/Components/Label/text/Inverse";\r
196         public static final String Components_SCLTextEditor = "http://www.simantics.org/SWT-1.0/Components/SCLTextEditor";\r
197         public static final String Components_SCLTextEditor_onModify = "http://www.simantics.org/SWT-1.0/Components/SCLTextEditor/onModify";\r
198         public static final String Components_SCLTextEditor_onModify_Inverse = "http://www.simantics.org/SWT-1.0/Components/SCLTextEditor/onModify/Inverse";\r
199         public static final String Components_SCLTextEditor_textAndErrors = "http://www.simantics.org/SWT-1.0/Components/SCLTextEditor/textAndErrors";\r
200         public static final String Components_SCLTextEditor_textAndErrors_Inverse = "http://www.simantics.org/SWT-1.0/Components/SCLTextEditor/textAndErrors/Inverse";\r
201         public static final String Components_ScrolledComposite = "http://www.simantics.org/SWT-1.0/Components/ScrolledComposite";\r
202         public static final String Components_TrackedText = "http://www.simantics.org/SWT-1.0/Components/TrackedText";\r
203         public static final String Components_TrackedText_editingBackground = "http://www.simantics.org/SWT-1.0/Components/TrackedText/editingBackground";\r
204         public static final String Components_TrackedText_editingBackground_Inverse = "http://www.simantics.org/SWT-1.0/Components/TrackedText/editingBackground/Inverse";\r
205         public static final String Components_TrackedText_hoverBackground = "http://www.simantics.org/SWT-1.0/Components/TrackedText/hoverBackground";\r
206         public static final String Components_TrackedText_hoverBackground_Inverse = "http://www.simantics.org/SWT-1.0/Components/TrackedText/hoverBackground/Inverse";\r
207         public static final String Components_TrackedText_inactiveBackground = "http://www.simantics.org/SWT-1.0/Components/TrackedText/inactiveBackground";\r
208         public static final String Components_TrackedText_inactiveBackground_Inverse = "http://www.simantics.org/SWT-1.0/Components/TrackedText/inactiveBackground/Inverse";\r
209         public static final String Components_TrackedText_invalidBackground = "http://www.simantics.org/SWT-1.0/Components/TrackedText/invalidBackground";\r
210         public static final String Components_TrackedText_invalidBackground_Inverse = "http://www.simantics.org/SWT-1.0/Components/TrackedText/invalidBackground/Inverse";\r
211         public static final String Components_TrackedText_onModify = "http://www.simantics.org/SWT-1.0/Components/TrackedText/onModify";\r
212         public static final String Components_TrackedText_onModify_Inverse = "http://www.simantics.org/SWT-1.0/Components/TrackedText/onModify/Inverse";\r
213         public static final String Components_TrackedText_text = "http://www.simantics.org/SWT-1.0/Components/TrackedText/text";\r
214         public static final String Components_TrackedText_text_Inverse = "http://www.simantics.org/SWT-1.0/Components/TrackedText/text/Inverse";\r
215         public static final String Components_TrackedText_validator = "http://www.simantics.org/SWT-1.0/Components/TrackedText/validator";\r
216         public static final String Components_TrackedText_validator_Inverse = "http://www.simantics.org/SWT-1.0/Components/TrackedText/validator/Inverse";\r
217         public static final String Components_attribute = "http://www.simantics.org/SWT-1.0/Components/attribute";\r
218         public static final String Functions = "http://www.simantics.org/SWT-1.0/Functions";\r
219         public static final String Functions_explorerInput = "http://www.simantics.org/SWT-1.0/Functions/explorerInput";\r
220         public static final String Functions_input = "http://www.simantics.org/SWT-1.0/Functions/input";\r
221         public static final String Functions_propertyDisplayValue = "http://www.simantics.org/SWT-1.0/Functions/propertyDisplayValue";\r
222         public static final String Functions_propertyDisplayValueModifier = "http://www.simantics.org/SWT-1.0/Functions/propertyDisplayValueModifier";\r
223         public static final String Literals = "http://www.simantics.org/SWT-1.0/Literals";\r
224         public static final String Literals_Columns = "http://www.simantics.org/SWT-1.0/Literals/Columns";\r
225         public static final String Literals_Margins = "http://www.simantics.org/SWT-1.0/Literals/Margins";\r
226         public static final String Properties = "http://www.simantics.org/SWT-1.0/Properties";\r
227         public static final String Properties_ParameterType = "http://www.simantics.org/SWT-1.0/Properties/ParameterType";\r
228         public static final String Properties_ParameterType_sclValueProperty = "http://www.simantics.org/SWT-1.0/Properties/ParameterType/sclValueProperty";\r
229         public static final String Properties_ParameterType_sclValueProperty_Inverse = "http://www.simantics.org/SWT-1.0/Properties/ParameterType/sclValueProperty/Inverse";\r
230         public static final String SCLMain = "http://www.simantics.org/SWT-1.0/SCLMain";\r
231         public static final String TypedVariableTabContribution = "http://www.simantics.org/SWT-1.0/TypedVariableTabContribution";\r
232         public static final String TypedVariableTabContribution_HasView = "http://www.simantics.org/SWT-1.0/TypedVariableTabContribution/HasView";\r
233         public static final String TypedVariableTabContribution_HasView_Inverse = "http://www.simantics.org/SWT-1.0/TypedVariableTabContribution/HasView/Inverse";\r
234         public static final String TypedVariableTabContribution_type = "http://www.simantics.org/SWT-1.0/TypedVariableTabContribution/type";\r
235         public static final String TypedVariableTabContribution_type_Inverse = "http://www.simantics.org/SWT-1.0/TypedVariableTabContribution/type/Inverse";\r
236         public static final String button = "http://www.simantics.org/SWT-1.0/button";\r
237         public static final String combo = "http://www.simantics.org/SWT-1.0/combo";\r
238         public static final String connect = "http://www.simantics.org/SWT-1.0/connect";\r
239         public static final String defAttribute = "http://www.simantics.org/SWT-1.0/defAttribute";\r
240         public static final String explorer = "http://www.simantics.org/SWT-1.0/explorer";\r
241         public static final String gridCell = "http://www.simantics.org/SWT-1.0/gridCell";\r
242         public static final String gridComposite = "http://www.simantics.org/SWT-1.0/gridComposite";\r
243         public static final String label = "http://www.simantics.org/SWT-1.0/label";\r
244         public static final String sclTextEditor = "http://www.simantics.org/SWT-1.0/sclTextEditor";\r
245         public static final String scrolledComposite = "http://www.simantics.org/SWT-1.0/scrolledComposite";\r
246         public static final String trackedText = "http://www.simantics.org/SWT-1.0/trackedText";\r
247     }\r
248     \r
249     public static Resource getResourceOrNull(ReadGraph graph, String uri) {\r
250         try {\r
251             return graph.getResource(uri);\r
252         } catch(DatabaseException e) {\r
253             System.err.println(e.getMessage());\r
254             return null;\r
255         }\r
256     }\r
257     \r
258     public SWTResources(ReadGraph graph) {\r
259         Components = getResourceOrNull(graph, URIs.Components);\r
260         Components_Browser = getResourceOrNull(graph, URIs.Components_Browser);\r
261         Components_Browser_url = getResourceOrNull(graph, URIs.Components_Browser_url);\r
262         Components_Browser_url_Inverse = getResourceOrNull(graph, URIs.Components_Browser_url_Inverse);\r
263         Components_Button = getResourceOrNull(graph, URIs.Components_Button);\r
264         Components_Button_onPress = getResourceOrNull(graph, URIs.Components_Button_onPress);\r
265         Components_Button_onPress_Inverse = getResourceOrNull(graph, URIs.Components_Button_onPress_Inverse);\r
266         Components_Button_text = getResourceOrNull(graph, URIs.Components_Button_text);\r
267         Components_Button_text_Inverse = getResourceOrNull(graph, URIs.Components_Button_text_Inverse);\r
268         Components_Combo = getResourceOrNull(graph, URIs.Components_Combo);\r
269         Components_Combo_available = getResourceOrNull(graph, URIs.Components_Combo_available);\r
270         Components_Combo_available_Inverse = getResourceOrNull(graph, URIs.Components_Combo_available_Inverse);\r
271         Components_Combo_onModify = getResourceOrNull(graph, URIs.Components_Combo_onModify);\r
272         Components_Combo_onModify_Inverse = getResourceOrNull(graph, URIs.Components_Combo_onModify_Inverse);\r
273         Components_Combo_selected = getResourceOrNull(graph, URIs.Components_Combo_selected);\r
274         Components_Combo_selected_Inverse = getResourceOrNull(graph, URIs.Components_Combo_selected_Inverse);\r
275         Components_Component = getResourceOrNull(graph, URIs.Components_Component);\r
276         Components_Component_HScroll = getResourceOrNull(graph, URIs.Components_Component_HScroll);\r
277         Components_Component_HScroll_Inverse = getResourceOrNull(graph, URIs.Components_Component_HScroll_Inverse);\r
278         Components_Component_NoScroll = getResourceOrNull(graph, URIs.Components_Component_NoScroll);\r
279         Components_Component_NoScroll_Inverse = getResourceOrNull(graph, URIs.Components_Component_NoScroll_Inverse);\r
280         Components_Component_VScroll = getResourceOrNull(graph, URIs.Components_Component_VScroll);\r
281         Components_Component_VScroll_Inverse = getResourceOrNull(graph, URIs.Components_Component_VScroll_Inverse);\r
282         Components_Component_alignment = getResourceOrNull(graph, URIs.Components_Component_alignment);\r
283         Components_Component_alignment_Inverse = getResourceOrNull(graph, URIs.Components_Component_alignment_Inverse);\r
284         Components_Component_background = getResourceOrNull(graph, URIs.Components_Component_background);\r
285         Components_Component_background_Inverse = getResourceOrNull(graph, URIs.Components_Component_background_Inverse);\r
286         Components_Component_font = getResourceOrNull(graph, URIs.Components_Component_font);\r
287         Components_Component_font_Inverse = getResourceOrNull(graph, URIs.Components_Component_font_Inverse);\r
288         Components_Component_foreground = getResourceOrNull(graph, URIs.Components_Component_foreground);\r
289         Components_Component_foreground_Inverse = getResourceOrNull(graph, URIs.Components_Component_foreground_Inverse);\r
290         Components_Component_multiLine = getResourceOrNull(graph, URIs.Components_Component_multiLine);\r
291         Components_Component_multiLine_Inverse = getResourceOrNull(graph, URIs.Components_Component_multiLine_Inverse);\r
292         Components_Explorer = getResourceOrNull(graph, URIs.Components_Explorer);\r
293         Components_Explorer_browseContext = getResourceOrNull(graph, URIs.Components_Explorer_browseContext);\r
294         Components_Explorer_browseContext_Inverse = getResourceOrNull(graph, URIs.Components_Explorer_browseContext_Inverse);\r
295         Components_Explorer_columns = getResourceOrNull(graph, URIs.Components_Explorer_columns);\r
296         Components_Explorer_columns_Inverse = getResourceOrNull(graph, URIs.Components_Explorer_columns_Inverse);\r
297         Components_Explorer_contextMenuId = getResourceOrNull(graph, URIs.Components_Explorer_contextMenuId);\r
298         Components_Explorer_contextMenuId_Inverse = getResourceOrNull(graph, URIs.Components_Explorer_contextMenuId_Inverse);\r
299         Components_Explorer_displayFilter = getResourceOrNull(graph, URIs.Components_Explorer_displayFilter);\r
300         Components_Explorer_displayFilter_Inverse = getResourceOrNull(graph, URIs.Components_Explorer_displayFilter_Inverse);\r
301         Components_Explorer_displayHeader = getResourceOrNull(graph, URIs.Components_Explorer_displayHeader);\r
302         Components_Explorer_displayHeader_Inverse = getResourceOrNull(graph, URIs.Components_Explorer_displayHeader_Inverse);\r
303         Components_Explorer_dragSourceListenerFactory = getResourceOrNull(graph, URIs.Components_Explorer_dragSourceListenerFactory);\r
304         Components_Explorer_dragSourceListenerFactory_Inverse = getResourceOrNull(graph, URIs.Components_Explorer_dragSourceListenerFactory_Inverse);\r
305         Components_Explorer_editingColumn = getResourceOrNull(graph, URIs.Components_Explorer_editingColumn);\r
306         Components_Explorer_editingColumn_Inverse = getResourceOrNull(graph, URIs.Components_Explorer_editingColumn_Inverse);\r
307         Components_Explorer_explorerInput = getResourceOrNull(graph, URIs.Components_Explorer_explorerInput);\r
308         Components_Explorer_explorerInput_Inverse = getResourceOrNull(graph, URIs.Components_Explorer_explorerInput_Inverse);\r
309         Components_GridCell = getResourceOrNull(graph, URIs.Components_GridCell);\r
310         Components_GridCell_grabHorizontal = getResourceOrNull(graph, URIs.Components_GridCell_grabHorizontal);\r
311         Components_GridCell_grabHorizontal_Inverse = getResourceOrNull(graph, URIs.Components_GridCell_grabHorizontal_Inverse);\r
312         Components_GridCell_grabVertical = getResourceOrNull(graph, URIs.Components_GridCell_grabVertical);\r
313         Components_GridCell_grabVertical_Inverse = getResourceOrNull(graph, URIs.Components_GridCell_grabVertical_Inverse);\r
314         Components_GridCell_span = getResourceOrNull(graph, URIs.Components_GridCell_span);\r
315         Components_GridCell_span_Inverse = getResourceOrNull(graph, URIs.Components_GridCell_span_Inverse);\r
316         Components_GridComposite = getResourceOrNull(graph, URIs.Components_GridComposite);\r
317         Components_GridComposite_extendedMargins = getResourceOrNull(graph, URIs.Components_GridComposite_extendedMargins);\r
318         Components_GridComposite_extendedMargins_Inverse = getResourceOrNull(graph, URIs.Components_GridComposite_extendedMargins_Inverse);\r
319         Components_GridComposite_numColumns = getResourceOrNull(graph, URIs.Components_GridComposite_numColumns);\r
320         Components_GridComposite_numColumns_Inverse = getResourceOrNull(graph, URIs.Components_GridComposite_numColumns_Inverse);\r
321         Components_Label = getResourceOrNull(graph, URIs.Components_Label);\r
322         Components_Label_text = getResourceOrNull(graph, URIs.Components_Label_text);\r
323         Components_Label_text_Inverse = getResourceOrNull(graph, URIs.Components_Label_text_Inverse);\r
324         Components_SCLTextEditor = getResourceOrNull(graph, URIs.Components_SCLTextEditor);\r
325         Components_SCLTextEditor_onModify = getResourceOrNull(graph, URIs.Components_SCLTextEditor_onModify);\r
326         Components_SCLTextEditor_onModify_Inverse = getResourceOrNull(graph, URIs.Components_SCLTextEditor_onModify_Inverse);\r
327         Components_SCLTextEditor_textAndErrors = getResourceOrNull(graph, URIs.Components_SCLTextEditor_textAndErrors);\r
328         Components_SCLTextEditor_textAndErrors_Inverse = getResourceOrNull(graph, URIs.Components_SCLTextEditor_textAndErrors_Inverse);\r
329         Components_ScrolledComposite = getResourceOrNull(graph, URIs.Components_ScrolledComposite);\r
330         Components_TrackedText = getResourceOrNull(graph, URIs.Components_TrackedText);\r
331         Components_TrackedText_editingBackground = getResourceOrNull(graph, URIs.Components_TrackedText_editingBackground);\r
332         Components_TrackedText_editingBackground_Inverse = getResourceOrNull(graph, URIs.Components_TrackedText_editingBackground_Inverse);\r
333         Components_TrackedText_hoverBackground = getResourceOrNull(graph, URIs.Components_TrackedText_hoverBackground);\r
334         Components_TrackedText_hoverBackground_Inverse = getResourceOrNull(graph, URIs.Components_TrackedText_hoverBackground_Inverse);\r
335         Components_TrackedText_inactiveBackground = getResourceOrNull(graph, URIs.Components_TrackedText_inactiveBackground);\r
336         Components_TrackedText_inactiveBackground_Inverse = getResourceOrNull(graph, URIs.Components_TrackedText_inactiveBackground_Inverse);\r
337         Components_TrackedText_invalidBackground = getResourceOrNull(graph, URIs.Components_TrackedText_invalidBackground);\r
338         Components_TrackedText_invalidBackground_Inverse = getResourceOrNull(graph, URIs.Components_TrackedText_invalidBackground_Inverse);\r
339         Components_TrackedText_onModify = getResourceOrNull(graph, URIs.Components_TrackedText_onModify);\r
340         Components_TrackedText_onModify_Inverse = getResourceOrNull(graph, URIs.Components_TrackedText_onModify_Inverse);\r
341         Components_TrackedText_text = getResourceOrNull(graph, URIs.Components_TrackedText_text);\r
342         Components_TrackedText_text_Inverse = getResourceOrNull(graph, URIs.Components_TrackedText_text_Inverse);\r
343         Components_TrackedText_validator = getResourceOrNull(graph, URIs.Components_TrackedText_validator);\r
344         Components_TrackedText_validator_Inverse = getResourceOrNull(graph, URIs.Components_TrackedText_validator_Inverse);\r
345         Components_attribute = getResourceOrNull(graph, URIs.Components_attribute);\r
346         Functions = getResourceOrNull(graph, URIs.Functions);\r
347         Functions_explorerInput = getResourceOrNull(graph, URIs.Functions_explorerInput);\r
348         Functions_input = getResourceOrNull(graph, URIs.Functions_input);\r
349         Functions_propertyDisplayValue = getResourceOrNull(graph, URIs.Functions_propertyDisplayValue);\r
350         Functions_propertyDisplayValueModifier = getResourceOrNull(graph, URIs.Functions_propertyDisplayValueModifier);\r
351         Literals = getResourceOrNull(graph, URIs.Literals);\r
352         Literals_Columns = getResourceOrNull(graph, URIs.Literals_Columns);\r
353         Literals_Margins = getResourceOrNull(graph, URIs.Literals_Margins);\r
354         Properties = getResourceOrNull(graph, URIs.Properties);\r
355         Properties_ParameterType = getResourceOrNull(graph, URIs.Properties_ParameterType);\r
356         Properties_ParameterType_sclValueProperty = getResourceOrNull(graph, URIs.Properties_ParameterType_sclValueProperty);\r
357         Properties_ParameterType_sclValueProperty_Inverse = getResourceOrNull(graph, URIs.Properties_ParameterType_sclValueProperty_Inverse);\r
358         SCLMain = getResourceOrNull(graph, URIs.SCLMain);\r
359         TypedVariableTabContribution = getResourceOrNull(graph, URIs.TypedVariableTabContribution);\r
360         TypedVariableTabContribution_HasView = getResourceOrNull(graph, URIs.TypedVariableTabContribution_HasView);\r
361         TypedVariableTabContribution_HasView_Inverse = getResourceOrNull(graph, URIs.TypedVariableTabContribution_HasView_Inverse);\r
362         TypedVariableTabContribution_type = getResourceOrNull(graph, URIs.TypedVariableTabContribution_type);\r
363         TypedVariableTabContribution_type_Inverse = getResourceOrNull(graph, URIs.TypedVariableTabContribution_type_Inverse);\r
364         button = getResourceOrNull(graph, URIs.button);\r
365         combo = getResourceOrNull(graph, URIs.combo);\r
366         connect = getResourceOrNull(graph, URIs.connect);\r
367         defAttribute = getResourceOrNull(graph, URIs.defAttribute);\r
368         explorer = getResourceOrNull(graph, URIs.explorer);\r
369         gridCell = getResourceOrNull(graph, URIs.gridCell);\r
370         gridComposite = getResourceOrNull(graph, URIs.gridComposite);\r
371         label = getResourceOrNull(graph, URIs.label);\r
372         sclTextEditor = getResourceOrNull(graph, URIs.sclTextEditor);\r
373         scrolledComposite = getResourceOrNull(graph, URIs.scrolledComposite);\r
374         trackedText = getResourceOrNull(graph, URIs.trackedText);\r
375     }\r
376     \r
377     public static SWTResources getInstance(ReadGraph graph) {\r
378         Session session = graph.getSession();\r
379         SWTResources ret = session.peekService(SWTResources.class);\r
380         if(ret == null) {\r
381             QueryControl qc = graph.getService(QueryControl.class);\r
382             ret = new SWTResources(qc.getIndependentGraph(graph));\r
383             session.registerService(SWTResources.class, ret);\r
384         }\r
385         return ret;\r
386     }\r
387     \r
388     public static SWTResources getInstance(RequestProcessor session) throws DatabaseException {\r
389         SWTResources ret = session.peekService(SWTResources.class);\r
390         if(ret == null) {\r
391             ret = session.syncRequest(new Read<SWTResources>() {\r
392                 public SWTResources perform(ReadGraph graph) throws DatabaseException {\r
393                     QueryControl qc = graph.getService(QueryControl.class);\r
394                     return new SWTResources(qc.getIndependentGraph(graph));\r
395                 }\r
396             });\r
397             session.registerService(SWTResources.class, ret);\r
398         }\r
399         return ret;\r
400     }\r
401     \r
402 }\r
403 \r