]> gerrit.simantics Code Review - simantics/platform.git/log
simantics/platform.git
5 years agoSCL-compiler should activate installed bundles 51/2151/1
jsimomaa [Mon, 10 Sep 2018 07:23:04 +0000 (10:23 +0300)]
SCL-compiler should activate installed bundles

gitlab #115

Change-Id: I4b383d7987b760c8cbf945ceddac4603c9d4428b

5 years agoAdd Simantics History Feature to SDK to include in target platform 45/2145/1
jsimomaa [Sat, 8 Sep 2018 04:18:25 +0000 (07:18 +0300)]
Add Simantics History Feature to SDK to include in target platform

gitlab #40

Change-Id: I834f7eeee24109bbb211a91beda3f61dda26c022

5 years agoRemove unnecessary System.out print from DynamicExperimentThread 34/2134/1
Marko Luukkainen [Thu, 6 Sep 2018 07:33:30 +0000 (10:33 +0300)]
Remove unnecessary System.out print from DynamicExperimentThread

gitlab #111

Change-Id: I987361fcce0cf53b058ece699a187b03cc068b6f
(cherry picked from commit 9b9f2a9206583894edb1a4a4a93a6c6720c8dddd)

5 years agoHistory data collector did not collect min/max/avg values correctly 33/2133/1
Marko Luukkainen [Thu, 28 Jun 2018 13:25:55 +0000 (16:25 +0300)]
History data collector did not collect min/max/avg values correctly

gitlab #35

Change-Id: Iabc44ba0d8fb8a0348f27df07cd4d114975c4d0d
(cherry picked from commit 30ca6dab0384054fec22139c2e88fbcc31a463cd)

5 years agoSCL API for GraphFile plug-in. 32/2132/1
Marko Luukkainen [Thu, 28 Jun 2018 14:40:26 +0000 (17:40 +0300)]
SCL API for GraphFile plug-in.

gitlab #34

Change-Id: I81b9d41cfa392545df629bf9e7a6197c21effa58
(cherry picked from commit 24d45eec3a3bad14d1a275387c20a94cea594562)

5 years agoAdd grpc target related changes to release/1.34.1 29/2129/1
jsimomaa [Thu, 6 Sep 2018 12:07:43 +0000 (15:07 +0300)]
Add grpc target related changes to release/1.34.1

gitlab #98

Change-Id: I408f271c8fe8ea0aeae6bcb956917011e73162f2

5 years agoAdd grpc target related changes to release/1.34.1 28/2128/1
jsimomaa [Thu, 6 Sep 2018 11:24:23 +0000 (14:24 +0300)]
Add grpc target related changes to release/1.34.1

gitlab #98

Change-Id: Id7ceaf67367f1a2baa68823bc42fc117f79671e5

5 years agoAdd grpc to release/1.34.1 as well 27/2127/2
jsimomaa [Thu, 6 Sep 2018 11:12:49 +0000 (14:12 +0300)]
Add grpc to release/1.34.1 as well

gitlab #98

Change-Id: Iac17f24b208919946e89804ca72c2cf4f4793041

5 years agoRest API for Historian data 75/2075/2
Marko Luukkainen [Wed, 4 Jul 2018 10:28:35 +0000 (13:28 +0300)]
Rest API for Historian data

gitlab #40

Change-Id: I4bc9cc2dec3d3c2dcf902d372fc895b073d5e767
(cherry picked from commit 286183f3501ea34badb28d05bd8de954eff9b8bc)

5 years agoUpdated SDK target platform to include org.eclipse.jetty.servlets 77/2077/2
jsimomaa [Mon, 3 Sep 2018 05:23:58 +0000 (08:23 +0300)]
Updated SDK target platform to include org.eclipse.jetty.servlets

gitlab #40
gitlab #81

Change-Id: Ib05a69df5ae7a834a7a38b7e6df3ff7f43793b22

5 years agoInclude org.eclipse.jetty.servlets in SDK external dependencies 76/2076/1
Tuukka Lehtonen [Tue, 14 Aug 2018 10:10:30 +0000 (13:10 +0300)]
Include org.eclipse.jetty.servlets in SDK external dependencies

This takes version 9.4.5.v20170502 which is the same as the Jetty
plug-ins provided by Eclipse RCP SDK the current SDK uses.

gitlab #81

Change-Id: Idb2f93f0d79fe3656fc745860d8e6ccce1bb1d1e
(cherry picked from commit 37c463c49793553991a5b4412a7f9cd30d410d49)

5 years agoBackported b75a6bbc for release/1.34.1 31/2031/2
Tuukka Lehtonen [Sun, 26 Aug 2018 12:28:01 +0000 (15:28 +0300)]
Backported b75a6bbc for release/1.34.1

Previous too-optimized implementation had multiple flaws:
* Index calculation did not have enough parenthesis in it which meant
  that the value table index was sometimes calculated incorrectly.
  This lead to string literal values being read incorrectly.
* Did not take into account string literals longer than 127 characters
* Did not take into account that string literals are modified-utf-8
  encoded and simply decoded them as US-ASCII bytes. Essentially all
  resources with name containing special characters were indexed
  incorrectly up until now.

All of these flaws have been in the code for ages.

gitlab #86

Change-Id: Ibd5ecbaa1cdd1b8be759905bd8c29b9f8e012207
(cherry picked from commit cd47b6877cee258113eb00523701a57374becfd8)

5 years agoRemove error in ClusterChange isLoaded() 87/1987/1
Miro Richard Eklund [Fri, 3 Aug 2018 11:02:17 +0000 (14:02 +0300)]
Remove error in ClusterChange isLoaded()

gitlab #75

Change-Id: I2014788d390d581a9b185f2a25150619895f4acb
(cherry picked from commit 85eac68ed3cae0996c54b536a2f2a49abf8fc303)

5 years agoUse Runtime.halt instead of System.exit in delayed shutdown 32/1932/1
Hannu Niemistö [Wed, 18 Jul 2018 10:26:07 +0000 (13:26 +0300)]
Use Runtime.halt instead of System.exit in delayed shutdown

Change-Id: I4c43ff1f73639948bcefa4bf3c41cf4a06ff6b95

5 years agoFixed target defintion references to 1.34.1 30/1930/1
Hannu Niemistö [Tue, 17 Jul 2018 12:11:17 +0000 (15:11 +0300)]
Fixed target defintion references to 1.34.1

Change-Id: Ib5e62d908935727110d5ea78f8355ab442a53aa5

5 years agoBetter emptying of trash bin 27/1927/1
Antti Villberg [Tue, 17 Jul 2018 09:09:14 +0000 (12:09 +0300)]
Better emptying of trash bin

Statement removal was broken in write only request. TG remover did not
correctly manage internal resources. Added hardening against errors.

gitlab #32

Change-Id: I120fcbdb7077e0f037104331480a2b1ab090d798

5 years agoBlock external and excluded seeds in ConsistsOfProcess 26/1926/1
Antti Villberg [Sat, 7 Jul 2018 06:11:52 +0000 (09:11 +0300)]
Block external and excluded seeds in ConsistsOfProcess

refs #14162

Change-Id: I3d8048ee763b5e41e0b9835afcb129ad50b88025

5 years agoModified UTF-8 decoding fixes for TG reading and indexing
Tuukka Lehtonen [Tue, 26 Jun 2018 08:28:36 +0000 (11:28 +0300)]
Modified UTF-8 decoding fixes for TG reading and indexing

gitlab #33

Change-Id: Ibd4239b76d1d88fe4303bec9d7cc407d15e8505b

5 years agoAllow ExecutorWorker thread pool shutdown
Tuukka Lehtonen [Wed, 20 Jun 2018 08:07:58 +0000 (11:07 +0300)]
Allow ExecutorWorker thread pool shutdown

Also made the pool spawn daemon threads to allow shutdown regardless of
whether the pool is shut down or not.

gitlab #29

Change-Id: I680e15407c0fd0586070a212d291efd44dc28f5d

5 years agoForce platform shutdown after some delay when workbench is closed
Hannu Niemistö [Mon, 2 Jul 2018 08:24:40 +0000 (11:24 +0300)]
Force platform shutdown after some delay when workbench is closed

gitlab #37

Change-Id: I6ab788e55824dbc3b2dd656cbb6ead407e35938a

5 years agoSimantics 1.34.1 release engineering
Hannu Niemistö [Tue, 3 Jul 2018 09:25:11 +0000 (12:25 +0300)]
Simantics 1.34.1 release engineering

gitlab #39

Change-Id: I182b1aeec26a2d0e5397d3d996cfecbb0dccae14

5 years agoPrevent NPE if the path to the module source cannot be found 26/1826/1 release/1.34.0
Hannu Niemistö [Fri, 8 Jun 2018 11:10:30 +0000 (14:10 +0300)]
Prevent NPE if the path to the module source cannot be found

gitlab #18

Change-Id: Iac92cfae81f8caffa5c8dfba129e3e9868801e82
(cherry picked from commit c52bf8a84f74dd22f49ca1c6e5443720c2d0ac3a)

5 years agoWorked around Windows FS problems in IndexedRelationsSearcherBase 25/1825/1
Tuukka Lehtonen [Fri, 8 Jun 2018 22:35:29 +0000 (01:35 +0300)]
Worked around Windows FS problems in IndexedRelationsSearcherBase

See https://blogs.msdn.microsoft.com/oldnewthing/20120907-00/?p=6663/

gitlab #19

Change-Id: Ia12c848aa75836597121eadec05061ea23bb1240
(cherry picked from commit ad8fc537d4cde0d8891cf1cd39862055ca7f03cb)

5 years agoFixed target platforms for release/1.34.0
Tuukka Lehtonen [Fri, 8 Jun 2018 06:10:58 +0000 (09:10 +0300)]
Fixed target platforms for release/1.34.0

gitlab #16

5 years agoUse SLF4J Logger in SessionRequestManager. 13/1813/2
Tuukka Lehtonen [Thu, 31 May 2018 11:07:26 +0000 (14:07 +0300)]
Use SLF4J Logger in SessionRequestManager.

gitlab #14

Change-Id: Ia79a0fd4b895f02f98c6113cd1ca9fe95104c9d0

5 years agoMerge "Fixes to thread safety problems in SCL compiler"
Hannu Niemistö [Thu, 31 May 2018 12:25:59 +0000 (12:25 +0000)]
Merge "Fixes to thread safety problems in SCL compiler"

5 years agoFixes to thread safety problems in SCL compiler 09/1809/3
Hannu Niemistö [Tue, 29 May 2018 09:09:37 +0000 (12:09 +0300)]
Fixes to thread safety problems in SCL compiler

gitlab #12

Change-Id: I0b0aec3bb71138a5033ae2337178c86ff04f5e59

5 years agoImprovements to SCL HTTP client 08/1808/1
Jussi Koskela [Tue, 29 May 2018 07:29:45 +0000 (10:29 +0300)]
Improvements to SCL HTTP client

Add missing Proc effect to buildClient function. Function to read
content length from response. Function to read headers from response.
Option to add read / write progress callback functions.

gitlab #11

Change-Id: Iaff99e05e35a494b154d7d5b04bd936bb95b0407

5 years agoFixed ComponentCopyAdvisor to account for L0.TypeWithIdentifier properly 03/1803/1
Tuukka Lehtonen [Thu, 24 May 2018 22:29:31 +0000 (01:29 +0300)]
Fixed ComponentCopyAdvisor to account for L0.TypeWithIdentifier properly

The previous fix done for the same problem in Simantics redmine issue
7842 and commits
c912edf13bf5a91b2f6dc855f54d8728aa0a64f5,
803c42fd316859809eaeb3dc6a88b22cbf86b4b6 and
0cfc6a9b8b186ba432bc6758c089726b1471fd1f was simply wrong. Using
ModelingUtils.needsIdentifier is the most proper way to fix this.

gitlab #10

Change-Id: Id7cdc32a6596588154913fced742d751ce6ba864
(cherry picked from commit 290c3cfc8bf5a7b2cc6e8532f124512e0bf10517)

5 years agoMerge "Added another sampling method to HistorySampler"
Tuukka Lehtonen [Fri, 18 May 2018 18:45:14 +0000 (18:45 +0000)]
Merge "Added another sampling method to HistorySampler"

5 years agoAdded another sampling method to HistorySampler 93/1793/1
Tuukka Lehtonen [Fri, 18 May 2018 18:27:28 +0000 (21:27 +0300)]
Added another sampling method to HistorySampler

This intentionally doesn't replace the original history
sampling function since it might be used elsewhere.

gitlab #9

Change-Id: Ie7ea8f37f29a5a277a6678e7716e340884d30e69

5 years agoGraphList: List interface to linked lists in Simantics database 91/1791/1
Hannu Niemistö [Fri, 18 May 2018 09:43:12 +0000 (12:43 +0300)]
GraphList: List interface to linked lists in Simantics database

gitlab #8

Change-Id: I87a1dc12d84c7875db075dec09ad08a60d8e40d1

5 years agoMerge "Fix column width issues on HiDPI displays. KeyTiSelection fixes."
Marko Luukkainen [Thu, 17 May 2018 11:31:58 +0000 (11:31 +0000)]
Merge "Fix column width issues on HiDPI displays. KeyTiSelection fixes."

5 years agoFix column width issues on HiDPI displays. KeyTiSelection fixes. 83/1783/1
Marko Luukkainen [Thu, 17 May 2018 11:14:53 +0000 (14:14 +0300)]
Fix column width issues on HiDPI displays. KeyTiSelection fixes.

gitlab #7

Change-Id: I03a51472f2e9d38a78e38b92617d0e9f975f6c54

5 years agoDeprecate duplicate functionality in SimanticsUI 78/1778/1
jsimomaa [Tue, 15 May 2018 11:32:45 +0000 (14:32 +0300)]
Deprecate duplicate functionality in SimanticsUI

gitlab #4

Change-Id: I0f4482a8c2d482e59d0e1641de65a3936a03f1eb

5 years agoFilter also history items in resource search dialog 08/1708/4
Jussi Koskela [Wed, 11 Apr 2018 10:16:01 +0000 (13:16 +0300)]
Filter also history items in resource search dialog

refs #7864

Change-Id: I5d9dac3fc1dd43c21ff4a63d9e7ecab0081c3dcb

5 years agoMerge "Support for edge widths in rendering"
Hannu Niemistö [Mon, 14 May 2018 10:20:02 +0000 (10:20 +0000)]
Merge "Support for edge widths in rendering"

5 years agoSupport for edge widths in rendering 77/1777/1
Hannu Niemistö [Mon, 14 May 2018 10:07:02 +0000 (13:07 +0300)]
Support for edge widths in rendering

Change-Id: I079ad59d7997a4a17abaf7835f7d71ce8c006085

5 years agoMerge "Fixed record constructor resolving from namespaces"
Hannu Niemistö [Mon, 14 May 2018 10:06:03 +0000 (10:06 +0000)]
Merge "Fixed record constructor resolving from namespaces"

5 years agoFixed SCLCompletionProposal.validate to allow complete matches as well 75/1775/3
Tuukka Lehtonen [Mon, 14 May 2018 07:16:45 +0000 (10:16 +0300)]
Fixed SCLCompletionProposal.validate to allow complete matches as well

This fixes a case where the SCL module editor stops showing content
proposals once they fully match with the typed word, which is really
annoying.

gitlab #3

Change-Id: I7b1119bff4cb08063a838a441a628a785344220b

5 years agoFixed record constructor resolving from namespaces 71/1771/1
Hannu Niemistö [Sun, 13 May 2018 08:34:33 +0000 (11:34 +0300)]
Fixed record constructor resolving from namespaces

Change-Id: Ib8b40c416672bcc97ec7ec24c97e1a0df08a8730

5 years agoAdded SCL functions for exporting event log contents to CSV 69/1769/4
Tuukka Lehtonen [Fri, 11 May 2018 08:57:05 +0000 (11:57 +0300)]
Added SCL functions for exporting event log contents to CSV

gitlab #2

Change-Id: I14423646d035e02f0ec6149a87d170ebb3c01bae

6 years agoNew solver for SCL effects inequalities 34/1734/3
Hannu Niemistö [Wed, 25 Apr 2018 13:57:31 +0000 (16:57 +0300)]
New solver for SCL effects inequalities

In particularly, solving of cyclic inequalities.

Change-Id: I5d5734e9f029bf694221db2d7fc994d16d8d607a

6 years agoNew method to Prelude: indexSet 33/1733/1
Hannu Niemistö [Wed, 25 Apr 2018 12:03:16 +0000 (15:03 +0300)]
New method to Prelude: indexSet

Change-Id: I06affe3386f014ae098c31416503fd941f3c7d36

6 years agoNew SCL syntax <<effects>> 32/1732/1
Hannu Niemistö [Wed, 25 Apr 2018 12:02:43 +0000 (15:02 +0300)]
New SCL syntax <<effects>>

Change-Id: Iec61620d424e583b854a743ccc4ac37dc8e8f56f

6 years agoFunction to read and write bytes from streams 31/1731/1
Hannu Niemistö [Mon, 23 Apr 2018 12:02:59 +0000 (15:02 +0300)]
Function to read and write bytes from streams

Change-Id: I5aa133cbdda3acaf36ed4cb0d7175a7ec1e8caff

6 years agoCreate HTTP(s) client in SCL with certificate verification disabled 28/1728/2
Jussi Koskela [Fri, 20 Apr 2018 06:13:28 +0000 (09:13 +0300)]
Create HTTP(s) client in SCL with certificate verification disabled

Also fixed buildClient function to actually use the provided
ClientBuilder.

refs #7870

Change-Id: Ie0d7ae420fc3b96df607efacb64a8bc8384ec717

6 years agoMerge "Some SCL functions to control graphical debugger"
Tuukka Lehtonen [Thu, 19 Apr 2018 06:25:05 +0000 (09:25 +0300)]
Merge "Some SCL functions to control graphical debugger"

6 years agoSome SCL functions to control graphical debugger 24/1724/1
Hannu Niemistö [Thu, 19 Apr 2018 06:09:34 +0000 (09:09 +0300)]
Some SCL functions to control graphical debugger

Possibility to set statement filter and add resources with a function.

refs #7869

Change-Id: Ifb5cc1fb09d3120ea73302d0b1195bc00ec2949e

6 years agoTest equality of ObjectVariants using Objects.equals 09/1709/3
Jussi Koskela [Wed, 11 Apr 2018 11:14:38 +0000 (14:14 +0300)]
Test equality of ObjectVariants using Objects.equals

refs #7865

Change-Id: I331d7696662709cdabaa9808d07071b079fc853e

6 years agoSystem.currentTimeMillis to "Simantics/Misc" SCL-module 19/1719/1
jsimomaa [Tue, 17 Apr 2018 12:27:32 +0000 (15:27 +0300)]
System.currentTimeMillis to "Simantics/Misc" SCL-module

refs #7867

Change-Id: Ib7a26a7e982dca3de316cb203763a0f720a12b84

6 years agoBetter fix for ClusterTable maps going out of sync
Tuukka Lehtonen [Fri, 13 Apr 2018 21:31:15 +0000 (00:31 +0300)]
Better fix for ClusterTable maps going out of sync

ClusterSmall.toBig was not copying importance over to the constructed
ClusterBig causing importanceMap to go out of sync on the first call to
ClusterSmall.toBig.

refs #7724

Change-Id: I6e56b7f94962de3ec243a9d50775e649f930d0d2
(cherry picked from commit 980d21d8a26dddd2e57dbffdc8f320a76aa0973e)

6 years agoFixed ClusterTable cluster hash/importance map book-keeping problem
Tuukka Lehtonen [Thu, 12 Apr 2018 21:43:36 +0000 (00:43 +0300)]
Fixed ClusterTable cluster hash/importance map book-keeping problem

The main problem was that importance values should have been started
from 1 and 0 is considered an invalid importance value. This prevents
ClusterTable.replaceCluster from making mistakes in importanceMap.

refs #7724

Change-Id: Ie15a2d11bef2b8bdbcee2f5baba47633faa97826
(cherry picked from commit f59872e129c2d1b84fe322ae120fbeac22a94f88)

6 years agoMerge "Refactoring CHR handling code"
Hannu Niemistö [Thu, 12 Apr 2018 10:04:44 +0000 (13:04 +0300)]
Merge "Refactoring CHR handling code"

6 years agoRefactoring CHR handling code 12/1712/1
Hannu Niemistö [Thu, 12 Apr 2018 09:51:23 +0000 (12:51 +0300)]
Refactoring CHR handling code

refs #7866

Change-Id: If2b2a08c740c93d1a4b01830ab0e6de3c014fbec

6 years agoMerge "(refs #7866) Better error location for the NPE in compilation"
Hannu Niemistö [Thu, 12 Apr 2018 09:47:15 +0000 (12:47 +0300)]
Merge "(refs #7866) Better error location for the NPE in compilation"

6 years ago(refs #7866) Better error location for the NPE in compilation 11/1711/2
Hannu Niemistö [Thu, 12 Apr 2018 07:04:44 +0000 (10:04 +0300)]
(refs #7866) Better error location for the NPE in compilation

Change-Id: I3027ac4cd1061edefed6b46ddf1c79773d03caca

6 years agoAllow changing DisposingPolicy max queue length 05/1705/1
Tuukka Lehtonen [Tue, 10 Apr 2018 20:48:18 +0000 (23:48 +0300)]
Allow changing DisposingPolicy max queue length

Needed to suppor preference-configurability of diagram editor background
disposal.

refs #7863

Change-Id: Ibf9f29dde2c06f5b055bfd42f989368c7573f327
(cherry picked from commit 56a44956cc6cf02ee85b7cfd55c8d3cbfb80a82f)

6 years agoUse unpack in hdf.hdf5lib 02/1702/4
meklund [Tue, 10 Apr 2018 14:12:44 +0000 (17:12 +0300)]
Use unpack in hdf.hdf5lib

Unpack helps on Linux, since otherwise libhdf5_java.so cannot find
libhdf5.so.101.

refs #7858

Change-Id: I8946d5e30b2b4c8ac98a5555f8869399b516fdca

6 years agoUpgraded HDF5 library to 1.10.2 and added linux support 95/1695/6
Tuukka Lehtonen [Sun, 8 Apr 2018 22:01:52 +0000 (01:01 +0300)]
Upgraded HDF5 library to 1.10.2 and added linux support

Amend by Miro:
Ran patchelf -set-rpath \$ORIGIN libhdf5_java.so and updated README

refs #7858

Change-Id: Ibe6d56443b8d02c4e2896adaed9b76f86e042f6e

6 years agoFixes the dpi value in SVGSalamander to 96 98/1698/2
Hannu Niemistö [Tue, 10 Apr 2018 12:24:20 +0000 (15:24 +0300)]
Fixes the dpi value in SVGSalamander to 96

If SVG file defining symbol graphics does not contain unit information,
it is converted from points to pixels using a dpi-value. The value is 96
in most cases but in some machines differs from this default. This makes
the symbol graphics scaled compared to originally drawn graphics which
is undesirable.

refs #7860

Change-Id: I1f858ec0703a6f4dba9547fed2aca0438172248b

6 years agoA utility class for recursive search in cyclic graph 97/1697/3
Hannu Niemistö [Tue, 10 Apr 2018 06:57:49 +0000 (09:57 +0300)]
A utility class for recursive search in cyclic graph

refs #7859

Change-Id: Idba80d0a6a42ab06fa774da1933ffd1d636085f1

6 years agoFixing problems in the database unit testing environment with Acorn 93/1693/1
Tuukka Lehtonen [Thu, 5 Apr 2018 06:47:03 +0000 (09:47 +0300)]
Fixing problems in the database unit testing environment with Acorn

* Removed static map from org.simantics.acorn.FileIO.
  Moved the map into a session service as org.simantics.acorn.FileCache
* Changed org.simantics.db.testing.common.Tests utilities to use Acorn
  instead of ProCore (AcornTestHandler). Did not introduce abstraction
  for this for now.

refs #7855

Conflicts:
bundles/org.simantics.acorn/src/org/simantics/acorn/FileIO.java

Change-Id: Iec42395cc71b30a4c376a44778b358e3807e6ec9
(cherry picked from commit 03fac449ec81e88669169d671bb386eb93ac060d)

6 years agoFinalizing improve startup time for fresh or rollback'd session 29/1629/5
Tuukka Lehtonen [Thu, 5 Apr 2018 13:33:58 +0000 (16:33 +0300)]
Finalizing improve startup time for fresh or rollback'd session

Finally fixed the long-sought InputStream reading bug from
TransferableGraphFileReader.InputChannel.read(ByteBuffer).

The ByteFileReader implementation expected the provided
ReadableByteChannel to always provide a full buffer of data unless EOF
was encountered and the InputChannel.read implementation was not taking
care of that.

Also added simpler utilities for reading TG's from files/InputStreams
directly using static TransferableGraphFileReader.read(File/InputStream)
methods.

PlatformUtil.readTG can now finally use TransferableGraphFileReader for
maximal performance.

refs #7835

Change-Id: I170986bf271a409f9205fad808ae029becc1d3a4

6 years agoShow imports of nonexistent modules as errors 92/1692/1
Hannu Niemistö [Thu, 5 Apr 2018 10:28:31 +0000 (13:28 +0300)]
Show imports of nonexistent modules as errors

Previously there was a separate error category IMPORT_ERROR for all
import errors that was sorted with WARNINGS. Now IMPORT_ERROR category
is also used for import failures whose reason is compilation problem in
the upstream module (although this is fatal for compilation, the problem
is not located in the current module).

refs #7857

Change-Id: Id9227a69d045b68a3e94c1562eb6d24f70d7aaa1

6 years agoStreaming serialization of values, debugger for corrupted values 91/1691/1
Hannu Niemistö [Thu, 5 Apr 2018 08:07:16 +0000 (11:07 +0300)]
Streaming serialization of values, debugger for corrupted values

refs #7856

Change-Id: If9d7bdb84c46c3b3626241f9a63e582fe0a15004

6 years agoSupport diagram profile activity store/restore in model export/import 88/1688/1
Tuukka Lehtonen [Tue, 3 Apr 2018 20:48:36 +0000 (23:48 +0300)]
Support diagram profile activity store/restore in model export/import

Diagram profile selections are stored in the "profiles" workspace
persistent virtual graph. They cannot be done in the persistent database
because we do not want the profile selections to be part of the database
version/undo history. This just doesn't fit the current way of using
diagram profiles.

The code introduced in this commit needs to be put to use in
product-specific custom export/import logic and copy/paste handlers to
take advantage of it.

refs #7854

Change-Id: Ib996144f1afa376a1563e4309fe41421ee4da529
(cherry picked from commit 95e05b3cc3208ec57118e8167a090c9b90edfaf2)

6 years agoUse synchronized hash map instead of ConcurrentHashMap in LazyModule 83/1683/1
Hannu Niemistö [Tue, 3 Apr 2018 12:15:11 +0000 (15:15 +0300)]
Use synchronized hash map instead of ConcurrentHashMap in LazyModule

refs #7826

Change-Id: I660f5f3312a7d1db49441f02d55864e36c950d74

6 years agoCleaning up some bloat from CompilePGraphs 79/1679/1
jsimomaa [Tue, 3 Apr 2018 10:11:38 +0000 (13:11 +0300)]
Cleaning up some bloat from CompilePGraphs

refs #7852

Change-Id: Ie3cfe8d7873f9c687bffca776054c626cc65497b

6 years agoRace condition fix caused deadlock, allow parallel recomputation 76/1676/1
Hannu Niemistö [Tue, 3 Apr 2018 07:52:58 +0000 (10:52 +0300)]
Race condition fix caused deadlock, allow parallel recomputation

refs #7826

Change-Id: Ib0515c2ae7d3e6d1474f991965307969a439baf7

6 years agoEscape the dot in regular expression 74/1674/1
Jussi Koskela [Tue, 3 Apr 2018 06:24:31 +0000 (09:24 +0300)]
Escape the dot in regular expression

refs #7848

Change-Id: Iffbdcdc50150f24e4f6517fd8154a5a47bbf8eb0

6 years agoReset SVGNode's data hash on clean up 73/1673/1
Jussi Koskela [Tue, 3 Apr 2018 06:00:03 +0000 (09:00 +0300)]
Reset SVGNode's data hash on clean up

AnimatedSVGNode assumes that its diagram cache is initialized if data
hash is not null.

refs #7851

Change-Id: Id143816210c7905a772e2c391a32026bf838f8e6

6 years agoFail-safe import can now be disabled with a system property 72/1672/1
Tuukka Lehtonen [Mon, 2 Apr 2018 20:54:03 +0000 (23:54 +0300)]
Fail-safe import can now be disabled with a system property

Use the system property -Dorg.simantics.tg.import.failOnMissingEntities@
to disable fail-safe import by settings its value to true.

refs #7850

Change-Id: I2c29d1795ba0c04b16be1798c237651556326bd9
(cherry picked from commit f7c2f46c7c411c5c9dd3323d3cec3a4b8b6a3bbe)

6 years agoImproved subscription CSV export wizard page initial selection handling 69/1669/1
Tuukka Lehtonen [Fri, 30 Mar 2018 07:23:00 +0000 (10:23 +0300)]
Improved subscription CSV export wizard page initial selection handling

Now it supports chart/chart group/chart item selections as well to
initialize the subscription item selection.

refs #7849

Change-Id: Idbfbd979116b932f0d54958a63b01142401366a6
(cherry picked from commit b6f0f7aa4de4c172a830ef9087749e38185a8edf)

6 years agoFixed invalid comparison from AcornBackupProvider.RestoreCopyVisitor 66/1666/1
Tuukka Lehtonen [Thu, 29 Mar 2018 11:41:33 +0000 (14:41 +0300)]
Fixed invalid comparison from AcornBackupProvider.RestoreCopyVisitor

Also removed unnecessary Files.exists checks.

refs #7847

Change-Id: I67d9d5a500824a275f4412ef2ecb7c2860f7f1c7

6 years agoRemoved redundant Files.exists/isDirectory checks 61/1661/2
Tuukka Lehtonen [Wed, 28 Mar 2018 13:01:10 +0000 (16:01 +0300)]
Removed redundant Files.exists/isDirectory checks

refs #7847

Change-Id: Id2f5936a801ece1828c13e29662c15d61b04abaa

6 years agoFixed compilation problems and SWTAWTComponent focus problem with Java9+ 63/1663/1
Tuukka Lehtonen [Wed, 28 Mar 2018 19:44:18 +0000 (22:44 +0300)]
Fixed compilation problems and SWTAWTComponent focus problem with Java9+

refs #7848

Change-Id: If166f7864d05c67f4c58b87018b273a36f085801

6 years agoUse searchByTypeShallow in ModelingUtils.createMissingGUIDs 58/1658/1
Tuukka Lehtonen [Mon, 26 Mar 2018 20:33:42 +0000 (23:33 +0300)]
Use searchByTypeShallow in ModelingUtils.createMissingGUIDs

refs #7845

Change-Id: Idf9c33687c53a9725821911fce59d9cf7287ce9c

6 years agoImproved network-drive-resilience in index directory creation 57/1657/1
Tuukka Lehtonen [Mon, 26 Mar 2018 15:36:02 +0000 (18:36 +0300)]
Improved network-drive-resilience in index directory creation

In a product, the removed Files.exists(p) && !Files.isDirectory(p) code
threw an exception because the examined path was not guaranteed to be in
a coherent state at the time of examination but Files.createDirectories
would still take care of throwing any exceptions if there were any
problems in creating the directory.

The worst thing was that this exception was hidden and not even logged.
Luckily a problem case forced the find.

refs #7845

Change-Id: Id44c5118ad97fbb83dcec87f77717185d3e402a1

6 years agoPrevent NPEs in ViewUtils layout loading code 52/1652/3
Tuukka Lehtonen [Mon, 26 Mar 2018 09:30:51 +0000 (12:30 +0300)]
Prevent NPEs in ViewUtils layout loading code

refs #7843

Change-Id: Ia34be3d08b8a368ed314c56e3af0b4e39aa45cec

6 years agoOnly claim new identifier if instance L0.TypeWithIdentifier 54/1654/1
Tuukka Lehtonen [Mon, 26 Mar 2018 08:29:34 +0000 (11:29 +0300)]
Only claim new identifier if instance L0.TypeWithIdentifier

Fixed long-standing bug from CopyComponentAdvisor which added
identifiers for non-STR.Component instances which has started causing
problems in team server products in version comparisons.

refs #7842

Change-Id: Iac3e604993ec579cd8feb443843af944a8fa01f3
(cherry picked from commit c912edf13bf5a91b2f6dc855f54d8728aa0a64f5)

6 years agoAdding FileSystem and FileSystems to Files SCL-API 50/1650/3
jsimomaa [Mon, 26 Mar 2018 05:40:13 +0000 (08:40 +0300)]
Adding FileSystem and FileSystems to Files SCL-API

refs #7841

Change-Id: I8b2a02b68c29bb5be724def3e0c2d67b2b6c51e6

6 years agoImproved usability of shared library export wizard 48/1648/1
Tuukka Lehtonen [Fri, 23 Mar 2018 14:06:36 +0000 (16:06 +0200)]
Improved usability of shared library export wizard

Now allows selection of the exported shared library from the combo box
and does not allow the user to export any model-browser-selected
resource but only shared ontologies.

refs #7130

Change-Id: I19356805e37242967cb3bec7f26bb96689248d89
(cherry picked from commit bd8834c00c213045b3967794f5841f5f33bd809c)

6 years agoShow instance for SafeDynamic 38/1638/1
Hannu Niemistö [Thu, 22 Mar 2018 19:33:17 +0000 (21:33 +0200)]
Show instance for SafeDynamic

refs #7839

Change-Id: Ib84dceb46e1d43666b8f089e75c79e52f7bc3390

6 years agoCtrl+Shift+G support for finding also expressions from properties 28/1628/2
jsimomaa [Thu, 22 Mar 2018 13:38:34 +0000 (15:38 +0200)]
Ctrl+Shift+G support for finding also expressions from properties

refs #7834

Change-Id: I24ba4188bbe3b2ba412a9e42fc762f21f76aca55

6 years agoRemove duplicate string/regex functionality from Simantics/Misc 30/1630/3
jsimomaa [Thu, 22 Mar 2018 13:44:22 +0000 (15:44 +0200)]
Remove duplicate string/regex functionality from Simantics/Misc

refs #7836

Change-Id: I485f09891cb0bd60f2e3b53209a3aaa47e5f7d24

6 years agoAllow client-logic in component type interface property name editing 32/1632/3
Tuukka Lehtonen [Thu, 22 Mar 2018 16:00:37 +0000 (18:00 +0200)]
Allow client-logic in component type interface property name editing

refs #7838

Change-Id: I17cebd2f303b2713444eeba5b4480657e3fba057

6 years agoMinor fixes for product build information querying 27/1627/2
jsimomaa [Thu, 22 Mar 2018 13:34:35 +0000 (15:34 +0200)]
Minor fixes for product build information querying

refs #7828

Change-Id: Ibddcc305bce0d4e84f3fc684c80f3f65592374b6

6 years agoIntroduce QueryIndexUtils in favor of bloated ModelingUtils 31/1631/2
jsimomaa [Thu, 22 Mar 2018 13:46:34 +0000 (15:46 +0200)]
Introduce QueryIndexUtils in favor of bloated ModelingUtils

Usage of ModelingUtils requires dependency for the whole modeling-plugin
which brings in a lot of unwanted stuff for simple query indexing

refs #7837

Change-Id: I1d2c4c7881b21904ad72c101acc12b9d61169994

6 years agoInclude Jaxen in org.simantics.scl.feature to keep JDom2 happy 17/1617/2
Tuukka Lehtonen [Wed, 21 Mar 2018 16:15:54 +0000 (18:15 +0200)]
Include Jaxen in org.simantics.scl.feature to keep JDom2 happy

refs #7833

Change-Id: Ic55cec2e2cd94d49206dc6324974bc798cf6a98b

6 years agoMerge "Included Jaxen in the platform's external-components"
Tuukka Lehtonen [Wed, 21 Mar 2018 16:09:32 +0000 (18:09 +0200)]
Merge "Included Jaxen in the platform's external-components"

6 years agoIncluded Jaxen in the platform's external-components 16/1616/1
Tuukka Lehtonen [Wed, 21 Mar 2018 16:07:51 +0000 (18:07 +0200)]
Included Jaxen in the platform's external-components

JDom2 requires Jaxen in its classpath to perform non-validating XML
parsing and it is not available at the moment in its classpath.

refs #7833

Change-Id: I961370f9c09c10dd61fe49f0147cd32716f010ef

6 years agoSCL-functionality for build information querying 09/1609/2
jsimomaa [Tue, 20 Mar 2018 20:51:42 +0000 (22:51 +0200)]
SCL-functionality for build information querying

refs #7828

Change-Id: Ic4b02ce9a205309a7f9a3fd38b0842c6b0597087

6 years agoMinor updates to Document/All.scl and Prelude.scl 07/1607/4
Miro Richard Eklund [Tue, 20 Mar 2018 14:55:48 +0000 (16:55 +0200)]
Minor updates to Document/All.scl and Prelude.scl

"show" is able to type cast a ByteArray without the additional
specification in Prelude.scl. Show is unable to be used on ByteArrays if
Prelude.scl contains an implementation for it, as "show" cannot
determine which implementation to use: the general, or the ByteArray
specific. Thus, ByteArray has been removed from Prelude.

getTuples returns a list of tuples that can be of any format: they do
not necessarily have to all be the same. As a result, [a] specification
doesn't correctly reflect the data that can be fetched with getTuples,
but [Dynamic] does.

refs #7830
refs #7831

Change-Id: Ib9912e9479838df2c8d32c621936e8fdecef2d7b

6 years agoIncluded ANT build file to generate buildinfo.properties
Tuukka Lehtonen [Tue, 20 Mar 2018 12:31:47 +0000 (14:31 +0200)]
Included ANT build file to generate buildinfo.properties

The file contains three properties:
* simantics-platform.branch
* simantics-platform.commit
* simantics-platform.build.id

refs #7828

6 years agoMerge "Added a function to read the module source text"
Hannu Niemistö [Tue, 20 Mar 2018 12:25:04 +0000 (14:25 +0200)]
Merge "Added a function to read the module source text"

6 years agoAdded a function to read the module source text 03/1603/1
Hannu Niemistö [Tue, 20 Mar 2018 12:07:13 +0000 (14:07 +0200)]
Added a function to read the module source text

refs #7811

Change-Id: I62a37e226b1f7b531d69e8446bbff805c67825ec

6 years agoRemoved apparent debugging code from org.simantics.utils.Development 02/1602/1
Tuukka Lehtonen [Tue, 20 Mar 2018 08:04:38 +0000 (10:04 +0200)]
Removed apparent debugging code from org.simantics.utils.Development

refs #7719

Change-Id: If5e3366a390f7c2cae581d7d0994f85a404a326d

6 years agoFixed index changed indicator regression caused by commit 8b8630b9 00/1600/1
Tuukka Lehtonen [Mon, 19 Mar 2018 20:50:18 +0000 (22:50 +0200)]
Fixed index changed indicator regression caused by commit 8b8630b9

refs #7785

Change-Id: I4fc56d823f825c65c9fbece81d26d30d0cb9f16d

6 years agoFixed various bugs in TG readers 93/1593/4
Antti Villberg [Fri, 16 Mar 2018 14:55:52 +0000 (16:55 +0200)]
Fixed various bugs in TG readers

Added primary install-location based relative path resolution to
database baselining logic. Secondary relative baseline resolution logic
still uses working directory.

refs #7825

Change-Id: I154528e674e6d478ea4bdb1de4d38c38d5097fdf