1 L0 = <http://www.simantics.org/Layer0-1.1>
2 DOC = <http://www.simantics.org/Documentation-1.2>
3 SWT = <http://www.simantics.org/SWT-1.0>
4 STR = <http://www.simantics.org/Structural-1.2>
5 SEL = <http://www.simantics.org/SelectionView-1.2>
6 COMPONENTS = <http://www.simantics.org/SWT-1.0/Components>
7 VIEWS = <http://www.simantics.org/PlatformUI-1.0/Views>
8 VP = <http://www.simantics.org/Viewpoint-1.2>
9 MOD = <http://www.simantics.org/Modeling-1.2>
10 PROJECT = <http://www.simantics.org/Project-1.2>
11 ISSUE = <http://www.simantics.org/Issue-1.2>
13 VIEWS.ValidationContribution : SWT.TypedVariableTabContribution
14 SEL.AbstractVariableTabContribution.HasPriority 1
15 SEL.AbstractTypedVariableTabContribution.HasType L0.IndexRoot
16 SWT.TypedVariableTabContribution.HasView VIEWS.Validations
17 L0.HasLabel "Validation3"
19 VIEW = VIEWS.Validations : DOC.Document
20 VIEW.Root : DOC.Components.Root
23 @SWT.scrolledComposite
24 @DOC.child2_ VIEW.Explorer
30 @SWT.gridCell _ false false 1
32 @SWT.button "Configure3"
33 @VIEWS.sclEvent COMPONENTS.Button.onPress "configureButtonClick self"
36 @SWT.gridCell _ false false 1
38 @SWT.button "Validate"
39 @VIEWS.sclEvent COMPONENTS.Button.onPress "validateButtonClick self"
41 VIEW.Columns = { columns = [
42 {key = "single", label = "Issue sources", tooltip = "Issue sources", width = 80, weight = 1, alignment = "LEFT", grab = true}
43 ]} : SWT.Literals.Columns
46 COMPONENTS.Component.Check true
47 @SWT.explorer true true
48 "http://www.simantics.org/PlatformUI-1.0/Views/Validations/BrowseContext"
49 "#ValidationSelection"
51 @VIEWS.sclEvent COMPONENTS.Explorer.onCheck "issueSourceExplorerCheck self"
53 MBC = MOD.ModelingBrowseContext
55 VIEWS.Validations.BrowseContext : VP.BrowseContext
56 VP.BrowseContext.Includes PROJECT.ProjectBrowseContext
57 VP.BrowseContext.HasVisualsContribution PROJECT.Contributions.StandardNameLabelRule
58 VP.BrowseContext.HasChildContribution VIEWS.Validations.BrowseContext.Children : VP.ChildContribution
59 VP.ChildContribution.HasParentNodeType MBC.Variable
60 VP.ChildContribution.HasChildNodeType ISSUE.IssueSource
61 VP.ChildContribution.HasRule VIEWS.Validations.BrowseContext.Children.Rule : MOD.SCLChildRule
62 @MOD.scl MOD.SCLChildRule.getChildren "usedIssueSources" "Resource -> <ReadGraph> [Resource]"
63 VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
64 VP.VisualsContribution.HasNodeType ISSUE.IssueSource
65 VP.VisualsContribution.HasPriority 1.0
66 VP.VisualsContribution.HasRule VIEWS.Validations.BrowseContext.Checked
67 @MOD.sclCheckedStateRule "checkedStateRule"