From a0148402f6710c438650e0f8d767fc9dd7650d2f Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Wed, 18 Dec 2019 13:44:38 +0200 Subject: [PATCH] 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 --- .../graph/ValidationView.pgraph | 2 +- .../scl/Simantics/PlatformUI.scl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.43.2