Fix CopyAdvisorUtil.copy2 to copy IsRelatedTo-statements left out before This implementation works so that it copies any IsRelatedTo statements where both the subject and object have been copied during the normal (old) copy process. The statements are marked as pending during the copy and post-processed after everything else has been copied. gitlab #607 Change-Id: I9170a448c127e0c7de6eae4260db5799ad7644bb
Add utility class org.simantics.modeling.help.HelpContexts The new class gathers headless code related to reading help context ids from the database that was previously crammed into a very illogical package org.simantics.modeling.ui.modelBrowser.handlers. gitlab #588 Change-Id: I4cbc00919d2dfef50a779ccee7f31eeb6d61eee5
Changed SCLTypeUtils to not log warnings for non-property relations For example procedural UCs and their substructure requests would report tons of these all the time, which is worthless. Also added an SCL type for MOD.ChangeInformation to avoid having to see warnings about the SCL type of MOD.ChangeInformation not being available: ``` WARN [...] org.simantics.modeling.SCLTypeUtils: SCLTypeUtils.getType cannot transform data type '{ createdBy : String, createdAt : Long, modifiedBy : String, modifiedAt : Long }' to type. Returns a as default. ``` gitlab #546 Change-Id: I30210fb3055a4d844fe6e9b07c64490a45c14ecd
Added system property for controlling writing of MOD.changed tags You can set -Dorg.simantics.modeling.writeChangedTags=false to disable writing of MOD.changed tags. The property can be set dynamically at runtime also. gitlab #428 Change-Id: I4867c1742b62d2a4a449d5f98a115e4ce36e0257
Use RuntimeEnvironmentRequest2 where applicable This allows e.g. procedural user component substructure expressions to use SCL functionality included by the user component's local SCL modules instead of only having to rely on functionality included by the SCLMain at the containing index root. gitlab #527 Change-Id: I7bcb22910737851771f2be54aafecd7480d1c81b
Move platform to only work with JDK's >= 11 * Several javax-prefixed packages are being removed from JDK (such as javax.xml.bind) and one has to provide javax.packages via new jakarta-bundles. See: http://openjdk.java.net/jeps/320#Java-EE-modules Java 11 is LTS and we don't want to require anything beyond that at this point. Next LTS will be 17 which will be the next target. Classes are also now compiled for Java 11. gitlab #486 gitlab #524 Change-Id: Ib2edf9401ada203412569fadef4f092344b1c553
Handle SelectionOutline interface implementation in SCLScenegraph Created custom SelectionShapeNode class for outline highlights, so that SCLScenegraph can process outline as selection. Change-Id: Ieeaa47618a8c94f07d9b482c9a3d77044852f2ba (cherry picked from commit 37c78d83578e57c8bb858d51591446994405b617)
Fixed InvertBasicExpressionVisitor bugs with subtractions and divisions Minus expressions and divisions were both computed the wrong way around, i.e. a-b as b-a and a/b as b/a. Consolidated duplicate InvertBasicExpressionVisitor code into single base class. Also noticed that the basicexpression parser doesn't parse e.g. `a*5/4` but parses `a*5 / 4` just fine. Didn't dive into these parser problems for now. Hopefully we can retire this code entirely at some point in favor of SCL expressions. gitlab #505 Change-Id: I74eaeae1dbec080a10ffc43c0c321705c0b0ea86
Added `possibleInvertibleExpressionReferencedTransformedProperty` This allows retrieval of the gain/bias applied to direct property references in derived properties of user components. Also switched DatasourceAdapter to use SLF4J logging instead of java.util logging, which should not be used anywhere. gitlab #505 Change-Id: I753b89fa1738e378e3e1ad5eac2a44e4dba9692f
Improved shared library structure dump to take more types into account Added support for: * L0.SCLScript * GF.File This also removes dumping of the .pgraph file from the shared library exporter because the contents of the generated .pgraph file have never been complete, nor stable enough to actually give out any information on what has changed and how. The system gives no diffs out on what most usually changes, i.e. SCL modules, scripts, SVG files and other similar textual data. gitlab #452 Change-Id: Id35b8b6d339398ba89aca3e10aff7aeb4c610242
Support for creating shared ontology dump to git More generic implementation gitlab #452 Change-Id: Icaeb7d33386b037f48c5154b1fe8777b04f3b38d
Rename and move 'modeling.adapters.Removers' and make it API gitlab #466 Change-Id: I0e86bf7ebce158de3e1627059909040960c6ba08
Support for creating shared ontology dump to git File name escaping from FileUtils gitlab #452 Change-Id: I1e2d55f04f916a0fd0938fc27cb72ca56fa30000