From: Tuukka Lehtonen Date: Thu, 16 Jan 2020 08:31:25 +0000 (+0000) Subject: Merge "Sort symbol item contributions alphanumerically, not lexicographically" X-Git-Tag: v1.43.0~136^2~1 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=b8a76a20d9e9c085527ccb8f56fd01bd4ca79dbe;hp=2ee59d838ce282b09cfbde855edda9c663adfdf3;p=simantics%2Fplatform.git Merge "Sort symbol item contributions alphanumerically, not lexicographically" --- diff --git a/bundles/org.simantics.project/src/org/simantics/project/management/PlatformUtil.java b/bundles/org.simantics.project/src/org/simantics/project/management/PlatformUtil.java index af59dbfc1..8f93d24ab 100644 --- a/bundles/org.simantics.project/src/org/simantics/project/management/PlatformUtil.java +++ b/bundles/org.simantics.project/src/org/simantics/project/management/PlatformUtil.java @@ -479,7 +479,18 @@ public class PlatformUtil { private static boolean isImmutable(Bundle bundle) { String immutable = (String) bundle.getHeaders().get("Immutable"); - return immutable != null ? "true".equals(immutable) : true; + if(immutable == null) + return true; + if("false".equals(immutable)) + return false; + if("trueWhenDeployed".equals(immutable)) { + String installHint = System.getProperty("installOntologiesAsDeployed"); + if("true".equals(installHint)) + return true; + else + return false; + } + return true; } public static class TGInfo {