X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.platform.ui.ontology%2Fgraph%2FValidationView.pgraph;fp=bundles%2Forg.simantics.platform.ui.ontology%2Fgraph%2FValidationView.pgraph;h=4857f1c79b708209246362aeb08d4d8581eecfa3;hb=0ffcb1180dcccf28e66a391338885be224ba1c47;hp=0000000000000000000000000000000000000000;hpb=342a2b006b88330280060c16c2ab50374468a4c6;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.platform.ui.ontology/graph/ValidationView.pgraph b/bundles/org.simantics.platform.ui.ontology/graph/ValidationView.pgraph new file mode 100644 index 000000000..4857f1c79 --- /dev/null +++ b/bundles/org.simantics.platform.ui.ontology/graph/ValidationView.pgraph @@ -0,0 +1,70 @@ +L0 = +DOC = +SWT = +STR = +SEL = +COMPONENTS = +VIEWS = +VP = +MOD = +PROJECT = +ISSUE = + +VIEWS.ValidationContribution : SWT.TypedVariableTabContribution + SEL.AbstractVariableTabContribution.HasPriority 1 + SEL.AbstractTypedVariableTabContribution.HasType L0.IndexRoot + SWT.TypedVariableTabContribution.HasView VIEWS.Validations + L0.HasLabel "Validation3" + +VIEW = VIEWS.Validations : DOC.Document +VIEW.Root : DOC.Components.Root + @DOC.child1_ + VIEW.Panel + @SWT.scrolledComposite + @DOC.child2_ VIEW.Explorer + @DOC.child1_ + VIEW.Panel2 + @SWT.gridComposite 2 + @DOC.child1_ + VIEW.Cell1 + @SWT.gridCell _ false false 1 + VIEW.ConfigureButton + @SWT.button "Configure3" + @VIEWS.sclEvent COMPONENTS.Button.onPress "configureButtonClick self" + @DOC.child2_ + VIEW.Cell2 + @SWT.gridCell _ false false 1 + VIEW.ValidateButton + @SWT.button "Validate" + @VIEWS.sclEvent COMPONENTS.Button.onPress "validateButtonClick self" + +VIEW.Columns = { columns = [ + {key = "single", label = "Issue sources", tooltip = "Issue sources", width = 80, weight = 1, alignment = "LEFT", grab = true} + ]} : SWT.Literals.Columns + +VIEW.Explorer + COMPONENTS.Component.Check true + @SWT.explorer true true + "http://www.simantics.org/PlatformUI-1.0/Views/Validations/BrowseContext" + "#ValidationSelection" + VIEW.Columns + @VIEWS.sclEvent COMPONENTS.Explorer.onCheck "issueSourceExplorerCheck self" + +MBC = MOD.ModelingBrowseContext + +VIEWS.Validations.BrowseContext : VP.BrowseContext + VP.BrowseContext.Includes PROJECT.ProjectBrowseContext + VP.BrowseContext.HasVisualsContribution PROJECT.Contributions.StandardNameLabelRule + VP.BrowseContext.HasChildContribution VIEWS.Validations.BrowseContext.Children : VP.ChildContribution + VP.ChildContribution.HasParentNodeType MBC.Variable + VP.ChildContribution.HasChildNodeType ISSUE.IssueSource + VP.ChildContribution.HasRule VIEWS.Validations.BrowseContext.Children.Rule : MOD.SCLChildRule + @MOD.scl MOD.SCLChildRule.getChildren "usedIssueSources" "Resource -> [Resource]" + VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution + VP.VisualsContribution.HasNodeType ISSUE.IssueSource + VP.VisualsContribution.HasPriority 1.0 + VP.VisualsContribution.HasRule VIEWS.Validations.BrowseContext.Checked + @MOD.sclCheckedStateRule "checkedStateRule" + + + \ No newline at end of file