--- /dev/null
+package org.simantics.document.swt.ontology;\r
+\r
+import org.simantics.db.RequestProcessor;\r
+import org.simantics.db.Resource;\r
+import org.simantics.db.ReadGraph;\r
+import org.simantics.db.request.Read;\r
+import org.simantics.db.Session;\r
+import org.simantics.db.exception.DatabaseException;\r
+import org.simantics.db.service.QueryControl;\r
+\r
+public class SWTResources {\r
+ \r
+ public final Resource Components;\r
+ public final Resource Components_Browser;\r
+ public final Resource Components_Browser_url;\r
+ public final Resource Components_Browser_url_Inverse;\r
+ public final Resource Components_Button;\r
+ public final Resource Components_Button_onPress;\r
+ public final Resource Components_Button_onPress_Inverse;\r
+ public final Resource Components_Button_text;\r
+ public final Resource Components_Button_text_Inverse;\r
+ public final Resource Components_Combo;\r
+ public final Resource Components_Combo_available;\r
+ public final Resource Components_Combo_available_Inverse;\r
+ public final Resource Components_Combo_onModify;\r
+ public final Resource Components_Combo_onModify_Inverse;\r
+ public final Resource Components_Combo_selected;\r
+ public final Resource Components_Combo_selected_Inverse;\r
+ public final Resource Components_Component;\r
+ public final Resource Components_Component_HScroll;\r
+ public final Resource Components_Component_HScroll_Inverse;\r
+ public final Resource Components_Component_NoScroll;\r
+ public final Resource Components_Component_NoScroll_Inverse;\r
+ public final Resource Components_Component_VScroll;\r
+ public final Resource Components_Component_VScroll_Inverse;\r
+ public final Resource Components_Component_alignment;\r
+ public final Resource Components_Component_alignment_Inverse;\r
+ public final Resource Components_Component_background;\r
+ public final Resource Components_Component_background_Inverse;\r
+ public final Resource Components_Component_font;\r
+ public final Resource Components_Component_font_Inverse;\r
+ public final Resource Components_Component_foreground;\r
+ public final Resource Components_Component_foreground_Inverse;\r
+ public final Resource Components_Component_multiLine;\r
+ public final Resource Components_Component_multiLine_Inverse;\r
+ public final Resource Components_Explorer;\r
+ public final Resource Components_Explorer_browseContext;\r
+ public final Resource Components_Explorer_browseContext_Inverse;\r
+ public final Resource Components_Explorer_columns;\r
+ public final Resource Components_Explorer_columns_Inverse;\r
+ public final Resource Components_Explorer_contextMenuId;\r
+ public final Resource Components_Explorer_contextMenuId_Inverse;\r
+ public final Resource Components_Explorer_displayFilter;\r
+ public final Resource Components_Explorer_displayFilter_Inverse;\r
+ public final Resource Components_Explorer_displayHeader;\r
+ public final Resource Components_Explorer_displayHeader_Inverse;\r
+ public final Resource Components_Explorer_dragSourceListenerFactory;\r
+ public final Resource Components_Explorer_dragSourceListenerFactory_Inverse;\r
+ public final Resource Components_Explorer_editingColumn;\r
+ public final Resource Components_Explorer_editingColumn_Inverse;\r
+ public final Resource Components_Explorer_explorerInput;\r
+ public final Resource Components_Explorer_explorerInput_Inverse;\r
+ public final Resource Components_GridCell;\r
+ public final Resource Components_GridCell_grabHorizontal;\r
+ public final Resource Components_GridCell_grabHorizontal_Inverse;\r
+ public final Resource Components_GridCell_grabVertical;\r
+ public final Resource Components_GridCell_grabVertical_Inverse;\r
+ public final Resource Components_GridCell_span;\r
+ public final Resource Components_GridCell_span_Inverse;\r
+ public final Resource Components_GridComposite;\r
+ public final Resource Components_GridComposite_extendedMargins;\r
+ public final Resource Components_GridComposite_extendedMargins_Inverse;\r
+ public final Resource Components_GridComposite_numColumns;\r
+ public final Resource Components_GridComposite_numColumns_Inverse;\r
+ public final Resource Components_Label;\r
+ public final Resource Components_Label_text;\r
+ public final Resource Components_Label_text_Inverse;\r
+ public final Resource Components_SCLTextEditor;\r
+ public final Resource Components_SCLTextEditor_onModify;\r
+ public final Resource Components_SCLTextEditor_onModify_Inverse;\r
+ public final Resource Components_SCLTextEditor_textAndErrors;\r
+ public final Resource Components_SCLTextEditor_textAndErrors_Inverse;\r
+ public final Resource Components_ScrolledComposite;\r
+ public final Resource Components_TrackedText;\r
+ public final Resource Components_TrackedText_editingBackground;\r
+ public final Resource Components_TrackedText_editingBackground_Inverse;\r
+ public final Resource Components_TrackedText_hoverBackground;\r
+ public final Resource Components_TrackedText_hoverBackground_Inverse;\r
+ public final Resource Components_TrackedText_inactiveBackground;\r
+ public final Resource Components_TrackedText_inactiveBackground_Inverse;\r
+ public final Resource Components_TrackedText_invalidBackground;\r
+ public final Resource Components_TrackedText_invalidBackground_Inverse;\r
+ public final Resource Components_TrackedText_onModify;\r
+ public final Resource Components_TrackedText_onModify_Inverse;\r
+ public final Resource Components_TrackedText_text;\r
+ public final Resource Components_TrackedText_text_Inverse;\r
+ public final Resource Components_TrackedText_validator;\r
+ public final Resource Components_TrackedText_validator_Inverse;\r
+ public final Resource Components_attribute;\r
+ public final Resource Functions;\r
+ public final Resource Functions_explorerInput;\r
+ public final Resource Functions_input;\r
+ public final Resource Functions_propertyDisplayValue;\r
+ public final Resource Functions_propertyDisplayValueModifier;\r
+ public final Resource Literals;\r
+ public final Resource Literals_Columns;\r
+ public final Resource Literals_Margins;\r
+ public final Resource Properties;\r
+ public final Resource Properties_ParameterType;\r
+ public final Resource Properties_ParameterType_sclValueProperty;\r
+ public final Resource Properties_ParameterType_sclValueProperty_Inverse;\r
+ public final Resource SCLMain;\r
+ public final Resource TypedVariableTabContribution;\r
+ public final Resource TypedVariableTabContribution_HasView;\r
+ public final Resource TypedVariableTabContribution_HasView_Inverse;\r
+ public final Resource TypedVariableTabContribution_type;\r
+ public final Resource TypedVariableTabContribution_type_Inverse;\r
+ public final Resource button;\r
+ public final Resource combo;\r
+ public final Resource connect;\r
+ public final Resource defAttribute;\r
+ public final Resource explorer;\r
+ public final Resource gridCell;\r
+ public final Resource gridComposite;\r
+ public final Resource label;\r
+ public final Resource sclTextEditor;\r
+ public final Resource scrolledComposite;\r
+ public final Resource trackedText;\r
+ \r
+ public static class URIs {\r
+ public static final String Components = "http://www.simantics.org/SWT-1.0/Components";\r
+ public static final String Components_Browser = "http://www.simantics.org/SWT-1.0/Components/Browser";\r
+ public static final String Components_Browser_url = "http://www.simantics.org/SWT-1.0/Components/Browser/url";\r
+ public static final String Components_Browser_url_Inverse = "http://www.simantics.org/SWT-1.0/Components/Browser/url/Inverse";\r
+ public static final String Components_Button = "http://www.simantics.org/SWT-1.0/Components/Button";\r
+ public static final String Components_Button_onPress = "http://www.simantics.org/SWT-1.0/Components/Button/onPress";\r
+ public static final String Components_Button_onPress_Inverse = "http://www.simantics.org/SWT-1.0/Components/Button/onPress/Inverse";\r
+ public static final String Components_Button_text = "http://www.simantics.org/SWT-1.0/Components/Button/text";\r
+ public static final String Components_Button_text_Inverse = "http://www.simantics.org/SWT-1.0/Components/Button/text/Inverse";\r
+ public static final String Components_Combo = "http://www.simantics.org/SWT-1.0/Components/Combo";\r
+ public static final String Components_Combo_available = "http://www.simantics.org/SWT-1.0/Components/Combo/available";\r
+ public static final String Components_Combo_available_Inverse = "http://www.simantics.org/SWT-1.0/Components/Combo/available/Inverse";\r
+ public static final String Components_Combo_onModify = "http://www.simantics.org/SWT-1.0/Components/Combo/onModify";\r
+ public static final String Components_Combo_onModify_Inverse = "http://www.simantics.org/SWT-1.0/Components/Combo/onModify/Inverse";\r
+ public static final String Components_Combo_selected = "http://www.simantics.org/SWT-1.0/Components/Combo/selected";\r
+ public static final String Components_Combo_selected_Inverse = "http://www.simantics.org/SWT-1.0/Components/Combo/selected/Inverse";\r
+ public static final String Components_Component = "http://www.simantics.org/SWT-1.0/Components/Component";\r
+ public static final String Components_Component_HScroll = "http://www.simantics.org/SWT-1.0/Components/Component/HScroll";\r
+ public static final String Components_Component_HScroll_Inverse = "http://www.simantics.org/SWT-1.0/Components/Component/HScroll/Inverse";\r
+ public static final String Components_Component_NoScroll = "http://www.simantics.org/SWT-1.0/Components/Component/NoScroll";\r
+ public static final String Components_Component_NoScroll_Inverse = "http://www.simantics.org/SWT-1.0/Components/Component/NoScroll/Inverse";\r
+ public static final String Components_Component_VScroll = "http://www.simantics.org/SWT-1.0/Components/Component/VScroll";\r
+ public static final String Components_Component_VScroll_Inverse = "http://www.simantics.org/SWT-1.0/Components/Component/VScroll/Inverse";\r
+ public static final String Components_Component_alignment = "http://www.simantics.org/SWT-1.0/Components/Component/alignment";\r
+ public static final String Components_Component_alignment_Inverse = "http://www.simantics.org/SWT-1.0/Components/Component/alignment/Inverse";\r
+ public static final String Components_Component_background = "http://www.simantics.org/SWT-1.0/Components/Component/background";\r
+ public static final String Components_Component_background_Inverse = "http://www.simantics.org/SWT-1.0/Components/Component/background/Inverse";\r
+ public static final String Components_Component_font = "http://www.simantics.org/SWT-1.0/Components/Component/font";\r
+ public static final String Components_Component_font_Inverse = "http://www.simantics.org/SWT-1.0/Components/Component/font/Inverse";\r
+ public static final String Components_Component_foreground = "http://www.simantics.org/SWT-1.0/Components/Component/foreground";\r
+ public static final String Components_Component_foreground_Inverse = "http://www.simantics.org/SWT-1.0/Components/Component/foreground/Inverse";\r
+ public static final String Components_Component_multiLine = "http://www.simantics.org/SWT-1.0/Components/Component/multiLine";\r
+ public static final String Components_Component_multiLine_Inverse = "http://www.simantics.org/SWT-1.0/Components/Component/multiLine/Inverse";\r
+ public static final String Components_Explorer = "http://www.simantics.org/SWT-1.0/Components/Explorer";\r
+ public static final String Components_Explorer_browseContext = "http://www.simantics.org/SWT-1.0/Components/Explorer/browseContext";\r
+ public static final String Components_Explorer_browseContext_Inverse = "http://www.simantics.org/SWT-1.0/Components/Explorer/browseContext/Inverse";\r
+ public static final String Components_Explorer_columns = "http://www.simantics.org/SWT-1.0/Components/Explorer/columns";\r
+ public static final String Components_Explorer_columns_Inverse = "http://www.simantics.org/SWT-1.0/Components/Explorer/columns/Inverse";\r
+ public static final String Components_Explorer_contextMenuId = "http://www.simantics.org/SWT-1.0/Components/Explorer/contextMenuId";\r
+ public static final String Components_Explorer_contextMenuId_Inverse = "http://www.simantics.org/SWT-1.0/Components/Explorer/contextMenuId/Inverse";\r
+ public static final String Components_Explorer_displayFilter = "http://www.simantics.org/SWT-1.0/Components/Explorer/displayFilter";\r
+ public static final String Components_Explorer_displayFilter_Inverse = "http://www.simantics.org/SWT-1.0/Components/Explorer/displayFilter/Inverse";\r
+ public static final String Components_Explorer_displayHeader = "http://www.simantics.org/SWT-1.0/Components/Explorer/displayHeader";\r
+ public static final String Components_Explorer_displayHeader_Inverse = "http://www.simantics.org/SWT-1.0/Components/Explorer/displayHeader/Inverse";\r
+ public static final String Components_Explorer_dragSourceListenerFactory = "http://www.simantics.org/SWT-1.0/Components/Explorer/dragSourceListenerFactory";\r
+ public static final String Components_Explorer_dragSourceListenerFactory_Inverse = "http://www.simantics.org/SWT-1.0/Components/Explorer/dragSourceListenerFactory/Inverse";\r
+ public static final String Components_Explorer_editingColumn = "http://www.simantics.org/SWT-1.0/Components/Explorer/editingColumn";\r
+ public static final String Components_Explorer_editingColumn_Inverse = "http://www.simantics.org/SWT-1.0/Components/Explorer/editingColumn/Inverse";\r
+ public static final String Components_Explorer_explorerInput = "http://www.simantics.org/SWT-1.0/Components/Explorer/explorerInput";\r
+ public static final String Components_Explorer_explorerInput_Inverse = "http://www.simantics.org/SWT-1.0/Components/Explorer/explorerInput/Inverse";\r
+ public static final String Components_GridCell = "http://www.simantics.org/SWT-1.0/Components/GridCell";\r
+ public static final String Components_GridCell_grabHorizontal = "http://www.simantics.org/SWT-1.0/Components/GridCell/grabHorizontal";\r
+ public static final String Components_GridCell_grabHorizontal_Inverse = "http://www.simantics.org/SWT-1.0/Components/GridCell/grabHorizontal/Inverse";\r
+ public static final String Components_GridCell_grabVertical = "http://www.simantics.org/SWT-1.0/Components/GridCell/grabVertical";\r
+ public static final String Components_GridCell_grabVertical_Inverse = "http://www.simantics.org/SWT-1.0/Components/GridCell/grabVertical/Inverse";\r
+ public static final String Components_GridCell_span = "http://www.simantics.org/SWT-1.0/Components/GridCell/span";\r
+ public static final String Components_GridCell_span_Inverse = "http://www.simantics.org/SWT-1.0/Components/GridCell/span/Inverse";\r
+ public static final String Components_GridComposite = "http://www.simantics.org/SWT-1.0/Components/GridComposite";\r
+ public static final String Components_GridComposite_extendedMargins = "http://www.simantics.org/SWT-1.0/Components/GridComposite/extendedMargins";\r
+ public static final String Components_GridComposite_extendedMargins_Inverse = "http://www.simantics.org/SWT-1.0/Components/GridComposite/extendedMargins/Inverse";\r
+ public static final String Components_GridComposite_numColumns = "http://www.simantics.org/SWT-1.0/Components/GridComposite/numColumns";\r
+ public static final String Components_GridComposite_numColumns_Inverse = "http://www.simantics.org/SWT-1.0/Components/GridComposite/numColumns/Inverse";\r
+ public static final String Components_Label = "http://www.simantics.org/SWT-1.0/Components/Label";\r
+ public static final String Components_Label_text = "http://www.simantics.org/SWT-1.0/Components/Label/text";\r
+ public static final String Components_Label_text_Inverse = "http://www.simantics.org/SWT-1.0/Components/Label/text/Inverse";\r
+ public static final String Components_SCLTextEditor = "http://www.simantics.org/SWT-1.0/Components/SCLTextEditor";\r
+ public static final String Components_SCLTextEditor_onModify = "http://www.simantics.org/SWT-1.0/Components/SCLTextEditor/onModify";\r
+ public static final String Components_SCLTextEditor_onModify_Inverse = "http://www.simantics.org/SWT-1.0/Components/SCLTextEditor/onModify/Inverse";\r
+ public static final String Components_SCLTextEditor_textAndErrors = "http://www.simantics.org/SWT-1.0/Components/SCLTextEditor/textAndErrors";\r
+ public static final String Components_SCLTextEditor_textAndErrors_Inverse = "http://www.simantics.org/SWT-1.0/Components/SCLTextEditor/textAndErrors/Inverse";\r
+ public static final String Components_ScrolledComposite = "http://www.simantics.org/SWT-1.0/Components/ScrolledComposite";\r
+ public static final String Components_TrackedText = "http://www.simantics.org/SWT-1.0/Components/TrackedText";\r
+ public static final String Components_TrackedText_editingBackground = "http://www.simantics.org/SWT-1.0/Components/TrackedText/editingBackground";\r
+ public static final String Components_TrackedText_editingBackground_Inverse = "http://www.simantics.org/SWT-1.0/Components/TrackedText/editingBackground/Inverse";\r
+ public static final String Components_TrackedText_hoverBackground = "http://www.simantics.org/SWT-1.0/Components/TrackedText/hoverBackground";\r
+ public static final String Components_TrackedText_hoverBackground_Inverse = "http://www.simantics.org/SWT-1.0/Components/TrackedText/hoverBackground/Inverse";\r
+ public static final String Components_TrackedText_inactiveBackground = "http://www.simantics.org/SWT-1.0/Components/TrackedText/inactiveBackground";\r
+ public static final String Components_TrackedText_inactiveBackground_Inverse = "http://www.simantics.org/SWT-1.0/Components/TrackedText/inactiveBackground/Inverse";\r
+ public static final String Components_TrackedText_invalidBackground = "http://www.simantics.org/SWT-1.0/Components/TrackedText/invalidBackground";\r
+ public static final String Components_TrackedText_invalidBackground_Inverse = "http://www.simantics.org/SWT-1.0/Components/TrackedText/invalidBackground/Inverse";\r
+ public static final String Components_TrackedText_onModify = "http://www.simantics.org/SWT-1.0/Components/TrackedText/onModify";\r
+ public static final String Components_TrackedText_onModify_Inverse = "http://www.simantics.org/SWT-1.0/Components/TrackedText/onModify/Inverse";\r
+ public static final String Components_TrackedText_text = "http://www.simantics.org/SWT-1.0/Components/TrackedText/text";\r
+ public static final String Components_TrackedText_text_Inverse = "http://www.simantics.org/SWT-1.0/Components/TrackedText/text/Inverse";\r
+ public static final String Components_TrackedText_validator = "http://www.simantics.org/SWT-1.0/Components/TrackedText/validator";\r
+ public static final String Components_TrackedText_validator_Inverse = "http://www.simantics.org/SWT-1.0/Components/TrackedText/validator/Inverse";\r
+ public static final String Components_attribute = "http://www.simantics.org/SWT-1.0/Components/attribute";\r
+ public static final String Functions = "http://www.simantics.org/SWT-1.0/Functions";\r
+ public static final String Functions_explorerInput = "http://www.simantics.org/SWT-1.0/Functions/explorerInput";\r
+ public static final String Functions_input = "http://www.simantics.org/SWT-1.0/Functions/input";\r
+ public static final String Functions_propertyDisplayValue = "http://www.simantics.org/SWT-1.0/Functions/propertyDisplayValue";\r
+ public static final String Functions_propertyDisplayValueModifier = "http://www.simantics.org/SWT-1.0/Functions/propertyDisplayValueModifier";\r
+ public static final String Literals = "http://www.simantics.org/SWT-1.0/Literals";\r
+ public static final String Literals_Columns = "http://www.simantics.org/SWT-1.0/Literals/Columns";\r
+ public static final String Literals_Margins = "http://www.simantics.org/SWT-1.0/Literals/Margins";\r
+ public static final String Properties = "http://www.simantics.org/SWT-1.0/Properties";\r
+ public static final String Properties_ParameterType = "http://www.simantics.org/SWT-1.0/Properties/ParameterType";\r
+ public static final String Properties_ParameterType_sclValueProperty = "http://www.simantics.org/SWT-1.0/Properties/ParameterType/sclValueProperty";\r
+ public static final String Properties_ParameterType_sclValueProperty_Inverse = "http://www.simantics.org/SWT-1.0/Properties/ParameterType/sclValueProperty/Inverse";\r
+ public static final String SCLMain = "http://www.simantics.org/SWT-1.0/SCLMain";\r
+ public static final String TypedVariableTabContribution = "http://www.simantics.org/SWT-1.0/TypedVariableTabContribution";\r
+ public static final String TypedVariableTabContribution_HasView = "http://www.simantics.org/SWT-1.0/TypedVariableTabContribution/HasView";\r
+ public static final String TypedVariableTabContribution_HasView_Inverse = "http://www.simantics.org/SWT-1.0/TypedVariableTabContribution/HasView/Inverse";\r
+ public static final String TypedVariableTabContribution_type = "http://www.simantics.org/SWT-1.0/TypedVariableTabContribution/type";\r
+ public static final String TypedVariableTabContribution_type_Inverse = "http://www.simantics.org/SWT-1.0/TypedVariableTabContribution/type/Inverse";\r
+ public static final String button = "http://www.simantics.org/SWT-1.0/button";\r
+ public static final String combo = "http://www.simantics.org/SWT-1.0/combo";\r
+ public static final String connect = "http://www.simantics.org/SWT-1.0/connect";\r
+ public static final String defAttribute = "http://www.simantics.org/SWT-1.0/defAttribute";\r
+ public static final String explorer = "http://www.simantics.org/SWT-1.0/explorer";\r
+ public static final String gridCell = "http://www.simantics.org/SWT-1.0/gridCell";\r
+ public static final String gridComposite = "http://www.simantics.org/SWT-1.0/gridComposite";\r
+ public static final String label = "http://www.simantics.org/SWT-1.0/label";\r
+ public static final String sclTextEditor = "http://www.simantics.org/SWT-1.0/sclTextEditor";\r
+ public static final String scrolledComposite = "http://www.simantics.org/SWT-1.0/scrolledComposite";\r
+ public static final String trackedText = "http://www.simantics.org/SWT-1.0/trackedText";\r
+ }\r
+ \r
+ public static Resource getResourceOrNull(ReadGraph graph, String uri) {\r
+ try {\r
+ return graph.getResource(uri);\r
+ } catch(DatabaseException e) {\r
+ System.err.println(e.getMessage());\r
+ return null;\r
+ }\r
+ }\r
+ \r
+ public SWTResources(ReadGraph graph) {\r
+ Components = getResourceOrNull(graph, URIs.Components);\r
+ Components_Browser = getResourceOrNull(graph, URIs.Components_Browser);\r
+ Components_Browser_url = getResourceOrNull(graph, URIs.Components_Browser_url);\r
+ Components_Browser_url_Inverse = getResourceOrNull(graph, URIs.Components_Browser_url_Inverse);\r
+ Components_Button = getResourceOrNull(graph, URIs.Components_Button);\r
+ Components_Button_onPress = getResourceOrNull(graph, URIs.Components_Button_onPress);\r
+ Components_Button_onPress_Inverse = getResourceOrNull(graph, URIs.Components_Button_onPress_Inverse);\r
+ Components_Button_text = getResourceOrNull(graph, URIs.Components_Button_text);\r
+ Components_Button_text_Inverse = getResourceOrNull(graph, URIs.Components_Button_text_Inverse);\r
+ Components_Combo = getResourceOrNull(graph, URIs.Components_Combo);\r
+ Components_Combo_available = getResourceOrNull(graph, URIs.Components_Combo_available);\r
+ Components_Combo_available_Inverse = getResourceOrNull(graph, URIs.Components_Combo_available_Inverse);\r
+ Components_Combo_onModify = getResourceOrNull(graph, URIs.Components_Combo_onModify);\r
+ Components_Combo_onModify_Inverse = getResourceOrNull(graph, URIs.Components_Combo_onModify_Inverse);\r
+ Components_Combo_selected = getResourceOrNull(graph, URIs.Components_Combo_selected);\r
+ Components_Combo_selected_Inverse = getResourceOrNull(graph, URIs.Components_Combo_selected_Inverse);\r
+ Components_Component = getResourceOrNull(graph, URIs.Components_Component);\r
+ Components_Component_HScroll = getResourceOrNull(graph, URIs.Components_Component_HScroll);\r
+ Components_Component_HScroll_Inverse = getResourceOrNull(graph, URIs.Components_Component_HScroll_Inverse);\r
+ Components_Component_NoScroll = getResourceOrNull(graph, URIs.Components_Component_NoScroll);\r
+ Components_Component_NoScroll_Inverse = getResourceOrNull(graph, URIs.Components_Component_NoScroll_Inverse);\r
+ Components_Component_VScroll = getResourceOrNull(graph, URIs.Components_Component_VScroll);\r
+ Components_Component_VScroll_Inverse = getResourceOrNull(graph, URIs.Components_Component_VScroll_Inverse);\r
+ Components_Component_alignment = getResourceOrNull(graph, URIs.Components_Component_alignment);\r
+ Components_Component_alignment_Inverse = getResourceOrNull(graph, URIs.Components_Component_alignment_Inverse);\r
+ Components_Component_background = getResourceOrNull(graph, URIs.Components_Component_background);\r
+ Components_Component_background_Inverse = getResourceOrNull(graph, URIs.Components_Component_background_Inverse);\r
+ Components_Component_font = getResourceOrNull(graph, URIs.Components_Component_font);\r
+ Components_Component_font_Inverse = getResourceOrNull(graph, URIs.Components_Component_font_Inverse);\r
+ Components_Component_foreground = getResourceOrNull(graph, URIs.Components_Component_foreground);\r
+ Components_Component_foreground_Inverse = getResourceOrNull(graph, URIs.Components_Component_foreground_Inverse);\r
+ Components_Component_multiLine = getResourceOrNull(graph, URIs.Components_Component_multiLine);\r
+ Components_Component_multiLine_Inverse = getResourceOrNull(graph, URIs.Components_Component_multiLine_Inverse);\r
+ Components_Explorer = getResourceOrNull(graph, URIs.Components_Explorer);\r
+ Components_Explorer_browseContext = getResourceOrNull(graph, URIs.Components_Explorer_browseContext);\r
+ Components_Explorer_browseContext_Inverse = getResourceOrNull(graph, URIs.Components_Explorer_browseContext_Inverse);\r
+ Components_Explorer_columns = getResourceOrNull(graph, URIs.Components_Explorer_columns);\r
+ Components_Explorer_columns_Inverse = getResourceOrNull(graph, URIs.Components_Explorer_columns_Inverse);\r
+ Components_Explorer_contextMenuId = getResourceOrNull(graph, URIs.Components_Explorer_contextMenuId);\r
+ Components_Explorer_contextMenuId_Inverse = getResourceOrNull(graph, URIs.Components_Explorer_contextMenuId_Inverse);\r
+ Components_Explorer_displayFilter = getResourceOrNull(graph, URIs.Components_Explorer_displayFilter);\r
+ Components_Explorer_displayFilter_Inverse = getResourceOrNull(graph, URIs.Components_Explorer_displayFilter_Inverse);\r
+ Components_Explorer_displayHeader = getResourceOrNull(graph, URIs.Components_Explorer_displayHeader);\r
+ Components_Explorer_displayHeader_Inverse = getResourceOrNull(graph, URIs.Components_Explorer_displayHeader_Inverse);\r
+ Components_Explorer_dragSourceListenerFactory = getResourceOrNull(graph, URIs.Components_Explorer_dragSourceListenerFactory);\r
+ Components_Explorer_dragSourceListenerFactory_Inverse = getResourceOrNull(graph, URIs.Components_Explorer_dragSourceListenerFactory_Inverse);\r
+ Components_Explorer_editingColumn = getResourceOrNull(graph, URIs.Components_Explorer_editingColumn);\r
+ Components_Explorer_editingColumn_Inverse = getResourceOrNull(graph, URIs.Components_Explorer_editingColumn_Inverse);\r
+ Components_Explorer_explorerInput = getResourceOrNull(graph, URIs.Components_Explorer_explorerInput);\r
+ Components_Explorer_explorerInput_Inverse = getResourceOrNull(graph, URIs.Components_Explorer_explorerInput_Inverse);\r
+ Components_GridCell = getResourceOrNull(graph, URIs.Components_GridCell);\r
+ Components_GridCell_grabHorizontal = getResourceOrNull(graph, URIs.Components_GridCell_grabHorizontal);\r
+ Components_GridCell_grabHorizontal_Inverse = getResourceOrNull(graph, URIs.Components_GridCell_grabHorizontal_Inverse);\r
+ Components_GridCell_grabVertical = getResourceOrNull(graph, URIs.Components_GridCell_grabVertical);\r
+ Components_GridCell_grabVertical_Inverse = getResourceOrNull(graph, URIs.Components_GridCell_grabVertical_Inverse);\r
+ Components_GridCell_span = getResourceOrNull(graph, URIs.Components_GridCell_span);\r
+ Components_GridCell_span_Inverse = getResourceOrNull(graph, URIs.Components_GridCell_span_Inverse);\r
+ Components_GridComposite = getResourceOrNull(graph, URIs.Components_GridComposite);\r
+ Components_GridComposite_extendedMargins = getResourceOrNull(graph, URIs.Components_GridComposite_extendedMargins);\r
+ Components_GridComposite_extendedMargins_Inverse = getResourceOrNull(graph, URIs.Components_GridComposite_extendedMargins_Inverse);\r
+ Components_GridComposite_numColumns = getResourceOrNull(graph, URIs.Components_GridComposite_numColumns);\r
+ Components_GridComposite_numColumns_Inverse = getResourceOrNull(graph, URIs.Components_GridComposite_numColumns_Inverse);\r
+ Components_Label = getResourceOrNull(graph, URIs.Components_Label);\r
+ Components_Label_text = getResourceOrNull(graph, URIs.Components_Label_text);\r
+ Components_Label_text_Inverse = getResourceOrNull(graph, URIs.Components_Label_text_Inverse);\r
+ Components_SCLTextEditor = getResourceOrNull(graph, URIs.Components_SCLTextEditor);\r
+ Components_SCLTextEditor_onModify = getResourceOrNull(graph, URIs.Components_SCLTextEditor_onModify);\r
+ Components_SCLTextEditor_onModify_Inverse = getResourceOrNull(graph, URIs.Components_SCLTextEditor_onModify_Inverse);\r
+ Components_SCLTextEditor_textAndErrors = getResourceOrNull(graph, URIs.Components_SCLTextEditor_textAndErrors);\r
+ Components_SCLTextEditor_textAndErrors_Inverse = getResourceOrNull(graph, URIs.Components_SCLTextEditor_textAndErrors_Inverse);\r
+ Components_ScrolledComposite = getResourceOrNull(graph, URIs.Components_ScrolledComposite);\r
+ Components_TrackedText = getResourceOrNull(graph, URIs.Components_TrackedText);\r
+ Components_TrackedText_editingBackground = getResourceOrNull(graph, URIs.Components_TrackedText_editingBackground);\r
+ Components_TrackedText_editingBackground_Inverse = getResourceOrNull(graph, URIs.Components_TrackedText_editingBackground_Inverse);\r
+ Components_TrackedText_hoverBackground = getResourceOrNull(graph, URIs.Components_TrackedText_hoverBackground);\r
+ Components_TrackedText_hoverBackground_Inverse = getResourceOrNull(graph, URIs.Components_TrackedText_hoverBackground_Inverse);\r
+ Components_TrackedText_inactiveBackground = getResourceOrNull(graph, URIs.Components_TrackedText_inactiveBackground);\r
+ Components_TrackedText_inactiveBackground_Inverse = getResourceOrNull(graph, URIs.Components_TrackedText_inactiveBackground_Inverse);\r
+ Components_TrackedText_invalidBackground = getResourceOrNull(graph, URIs.Components_TrackedText_invalidBackground);\r
+ Components_TrackedText_invalidBackground_Inverse = getResourceOrNull(graph, URIs.Components_TrackedText_invalidBackground_Inverse);\r
+ Components_TrackedText_onModify = getResourceOrNull(graph, URIs.Components_TrackedText_onModify);\r
+ Components_TrackedText_onModify_Inverse = getResourceOrNull(graph, URIs.Components_TrackedText_onModify_Inverse);\r
+ Components_TrackedText_text = getResourceOrNull(graph, URIs.Components_TrackedText_text);\r
+ Components_TrackedText_text_Inverse = getResourceOrNull(graph, URIs.Components_TrackedText_text_Inverse);\r
+ Components_TrackedText_validator = getResourceOrNull(graph, URIs.Components_TrackedText_validator);\r
+ Components_TrackedText_validator_Inverse = getResourceOrNull(graph, URIs.Components_TrackedText_validator_Inverse);\r
+ Components_attribute = getResourceOrNull(graph, URIs.Components_attribute);\r
+ Functions = getResourceOrNull(graph, URIs.Functions);\r
+ Functions_explorerInput = getResourceOrNull(graph, URIs.Functions_explorerInput);\r
+ Functions_input = getResourceOrNull(graph, URIs.Functions_input);\r
+ Functions_propertyDisplayValue = getResourceOrNull(graph, URIs.Functions_propertyDisplayValue);\r
+ Functions_propertyDisplayValueModifier = getResourceOrNull(graph, URIs.Functions_propertyDisplayValueModifier);\r
+ Literals = getResourceOrNull(graph, URIs.Literals);\r
+ Literals_Columns = getResourceOrNull(graph, URIs.Literals_Columns);\r
+ Literals_Margins = getResourceOrNull(graph, URIs.Literals_Margins);\r
+ Properties = getResourceOrNull(graph, URIs.Properties);\r
+ Properties_ParameterType = getResourceOrNull(graph, URIs.Properties_ParameterType);\r
+ Properties_ParameterType_sclValueProperty = getResourceOrNull(graph, URIs.Properties_ParameterType_sclValueProperty);\r
+ Properties_ParameterType_sclValueProperty_Inverse = getResourceOrNull(graph, URIs.Properties_ParameterType_sclValueProperty_Inverse);\r
+ SCLMain = getResourceOrNull(graph, URIs.SCLMain);\r
+ TypedVariableTabContribution = getResourceOrNull(graph, URIs.TypedVariableTabContribution);\r
+ TypedVariableTabContribution_HasView = getResourceOrNull(graph, URIs.TypedVariableTabContribution_HasView);\r
+ TypedVariableTabContribution_HasView_Inverse = getResourceOrNull(graph, URIs.TypedVariableTabContribution_HasView_Inverse);\r
+ TypedVariableTabContribution_type = getResourceOrNull(graph, URIs.TypedVariableTabContribution_type);\r
+ TypedVariableTabContribution_type_Inverse = getResourceOrNull(graph, URIs.TypedVariableTabContribution_type_Inverse);\r
+ button = getResourceOrNull(graph, URIs.button);\r
+ combo = getResourceOrNull(graph, URIs.combo);\r
+ connect = getResourceOrNull(graph, URIs.connect);\r
+ defAttribute = getResourceOrNull(graph, URIs.defAttribute);\r
+ explorer = getResourceOrNull(graph, URIs.explorer);\r
+ gridCell = getResourceOrNull(graph, URIs.gridCell);\r
+ gridComposite = getResourceOrNull(graph, URIs.gridComposite);\r
+ label = getResourceOrNull(graph, URIs.label);\r
+ sclTextEditor = getResourceOrNull(graph, URIs.sclTextEditor);\r
+ scrolledComposite = getResourceOrNull(graph, URIs.scrolledComposite);\r
+ trackedText = getResourceOrNull(graph, URIs.trackedText);\r
+ }\r
+ \r
+ public static SWTResources getInstance(ReadGraph graph) {\r
+ Session session = graph.getSession();\r
+ SWTResources ret = session.peekService(SWTResources.class);\r
+ if(ret == null) {\r
+ QueryControl qc = graph.getService(QueryControl.class);\r
+ ret = new SWTResources(qc.getIndependentGraph(graph));\r
+ session.registerService(SWTResources.class, ret);\r
+ }\r
+ return ret;\r
+ }\r
+ \r
+ public static SWTResources getInstance(RequestProcessor session) throws DatabaseException {\r
+ SWTResources ret = session.peekService(SWTResources.class);\r
+ if(ret == null) {\r
+ ret = session.syncRequest(new Read<SWTResources>() {\r
+ public SWTResources perform(ReadGraph graph) throws DatabaseException {\r
+ QueryControl qc = graph.getService(QueryControl.class);\r
+ return new SWTResources(qc.getIndependentGraph(graph));\r
+ }\r
+ });\r
+ session.registerService(SWTResources.class, ret);\r
+ }\r
+ return ret;\r
+ }\r
+ \r
+}\r
+\r