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