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