From: Tuukka Lehtonen Date: Wed, 18 Dec 2019 11:44:38 +0000 (+0200) Subject: Backwards-compatibility fixes for Validation property tab X-Git-Tag: v1.43.0~136^2~19 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F21%2F3721%2F1;p=simantics%2Fplatform.git Backwards-compatibility fixes for Validation property tab * BrowseContext should not include ProjectBrowseContext as it brings in unwanted contributions * Check "selectedness" with more relaxed criterion gitlab #365 Change-Id: Icb684cada676695328883f3f513151cc5fd51c0f --- diff --git a/bundles/org.simantics.platform.ui.ontology/graph/ValidationView.pgraph b/bundles/org.simantics.platform.ui.ontology/graph/ValidationView.pgraph index 31aeb3cbd..132134c0b 100644 --- a/bundles/org.simantics.platform.ui.ontology/graph/ValidationView.pgraph +++ b/bundles/org.simantics.platform.ui.ontology/graph/ValidationView.pgraph @@ -64,7 +64,7 @@ VIEW.Explorer MBC = MOD.ModelingBrowseContext VIEWS.Validations.BrowseContext : VP.BrowseContext - VP.BrowseContext.Includes PROJECT.ProjectBrowseContext + //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 diff --git a/bundles/org.simantics.platform.ui.ontology/scl/Simantics/PlatformUI.scl b/bundles/org.simantics.platform.ui.ontology/scl/Simantics/PlatformUI.scl index 07309cb7b..b91964e40 100644 --- a/bundles/org.simantics.platform.ui.ontology/scl/Simantics/PlatformUI.scl +++ b/bundles/org.simantics.platform.ui.ontology/scl/Simantics/PlatformUI.scl @@ -141,5 +141,5 @@ usedIssueSources indexRoot = do objectsWithType indexRoot L0.ConsistsOf ISSUE.IssueSource checkedStateRule :: BrowseNodeRule CheckedState -checkedStateRule (ResourceX r) = if existsStatement3 r ISSUE.IssueSource.Selected (parent r) then CHECKED else NOT_CHECKED +checkedStateRule (ResourceX r) = if existsStatement r ISSUE.IssueSource.Selected then CHECKED else NOT_CHECKED \ No newline at end of file