]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.platform.ui.ontology/graph/ValidationView.pgraph
Playground for Antti.
[simantics/platform.git] / bundles / org.simantics.platform.ui.ontology / graph / ValidationView.pgraph
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>
12
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"
18
19 VIEW = VIEWS.Validations : DOC.Document
20 VIEW.Root : DOC.Components.Root
21   @DOC.child1_
22     VIEW.Panel
23       @SWT.scrolledComposite
24       @DOC.child2_ VIEW.Explorer
25       @DOC.child1_
26         VIEW.Panel2
27           @SWT.gridComposite 2
28           @DOC.child1_
29             VIEW.Cell1
30               @SWT.gridCell _ false false 1
31                 VIEW.ConfigureButton
32                   @SWT.button "Configure3"
33                   @VIEWS.sclEvent COMPONENTS.Button.onPress "configureButtonClick self"
34           @DOC.child2_
35             VIEW.Cell2
36               @SWT.gridCell _ false false 1
37                 VIEW.ValidateButton
38                   @SWT.button "Validate"
39                   @VIEWS.sclEvent COMPONENTS.Button.onPress "validateButtonClick self"
40
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
44
45 VIEW.Explorer
46   COMPONENTS.Component.Check true
47   @SWT.explorer true true
48     "http://www.simantics.org/PlatformUI-1.0/Views/Validations/BrowseContext"
49     "#ValidationSelection"
50     VIEW.Columns
51   @VIEWS.sclEvent COMPONENTS.Explorer.onCheck "issueSourceExplorerCheck self"
52
53 MBC = MOD.ModelingBrowseContext
54
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"
68
69   
70