]> gerrit.simantics Code Review - simantics/platform.git/log
simantics/platform.git
4 years agoMerge "Use NIO file API instead of File"
Tuukka Lehtonen [Tue, 11 Feb 2020 11:13:11 +0000 (11:13 +0000)]
Merge "Use NIO file API instead of File"

4 years agoUse NIO file API instead of File 61/3861/1
Tuukka Lehtonen [Tue, 11 Feb 2020 11:11:56 +0000 (13:11 +0200)]
Use NIO file API instead of File

gitlab #462

Change-Id: I1472003a00b42cecb8fe9423707aa8ec8b4717e6

4 years agoMerge "Non-constant external value configuration via procedural UCs."
Tuukka Lehtonen [Tue, 11 Feb 2020 11:05:38 +0000 (11:05 +0000)]
Merge "Non-constant external value configuration via procedural UCs."

4 years agoMerge "Easier baselines"
Tuukka Lehtonen [Tue, 11 Feb 2020 10:48:29 +0000 (10:48 +0000)]
Merge "Easier baselines"

4 years agoMore sequence terminal relations 59/3859/2
Marko Luukkainen [Fri, 7 Feb 2020 12:44:47 +0000 (14:44 +0200)]
More sequence terminal relations

gitlab #463

Change-Id: I0a59b80bbe26ac67b6b642219e4750ad63417ba2

4 years agoEasier baselines 57/3857/1
Antti Villberg [Fri, 7 Feb 2020 10:33:32 +0000 (12:33 +0200)]
Easier baselines

gitlab #462

Change-Id: Id79b6070fded8224045f2f044e3dc70c6059363e

4 years agoGetting Resource from ISymbolItem 32/3832/2
Marko Luukkainen [Wed, 5 Feb 2020 16:05:30 +0000 (18:05 +0200)]
Getting Resource from ISymbolItem

gitlab #460

Change-Id: Ic2eeaf432b974da2094d72794267387dcf7e9562

4 years agoNon-constant external value configuration via procedural UCs. 31/3831/1
Reino Ruusu [Wed, 5 Feb 2020 13:47:13 +0000 (15:47 +0200)]
Non-constant external value configuration via procedural UCs.

gitlab #461

Change-Id: I764644ea60a421e6c807486c925ccd9e33aa6928

4 years agoSCL bindings for symbol library 30/3830/2
Marko Luukkainen [Wed, 5 Feb 2020 12:25:07 +0000 (14:25 +0200)]
SCL bindings for symbol library

gitlab #460

Change-Id: I09011413b93b66e10782dfc788429d14fcdb3b33

4 years agoMerge changes I3a38eed6,I3f8b3504
Tuukka Lehtonen [Tue, 4 Feb 2020 15:53:13 +0000 (15:53 +0000)]
Merge changes I3a38eed6,I3f8b3504

* changes:
  Wrong graph was used when performing async query from session
  DB request scheduling scheme fails with district diagrams

4 years agoWrong graph was used when performing async query from session 29/3829/1
Antti Villberg [Tue, 4 Feb 2020 15:24:39 +0000 (17:24 +0200)]
Wrong graph was used when performing async query from session

gitlab #457

Change-Id: I3a38eed6b63eb2559893c831b05a9d512bf34745

4 years agoExpose Batik SVG/Path handling APIs 26/3826/2
Marko Luukkainen [Mon, 3 Feb 2020 12:05:10 +0000 (14:05 +0200)]
Expose Batik SVG/Path handling APIs

gitlab #458

Change-Id: I2ad25ef0aa4cb62d676ab9cfcff42ec0989b9cef

4 years agoSupport for random shaped terminals 24/3824/4
Marko Luukkainen [Fri, 31 Jan 2020 13:35:50 +0000 (15:35 +0200)]
Support for random shaped terminals

This commit includes changes to support awt Path2D based terminals
(currently external implementation).

gitlab #456

Change-Id: Id266bba00fc8dd84e62157280143a0f18c0921e0

4 years agoDB request scheduling scheme fails with district diagrams 25/3825/1
Antti Villberg [Sun, 2 Feb 2020 17:46:02 +0000 (19:46 +0200)]
DB request scheduling scheme fails with district diagrams

gitlab #457

Change-Id: I3f8b3504cd4b26f670fd45c79ab4e192fb0091d8

4 years agoMerge "Multiple readers in db client"
Tuukka Lehtonen [Thu, 30 Jan 2020 10:31:27 +0000 (10:31 +0000)]
Merge "Multiple readers in db client"

4 years agoMultiple readers in db client 11/3811/4
Antti Villberg [Thu, 23 Jan 2020 12:17:13 +0000 (14:17 +0200)]
Multiple readers in db client

gitlab #5

Change-Id: I5a44b7d19f6529f1ceceab1875e227db326e1c24

4 years agoOrdering of connections was not stable 20/3820/2
Antti Villberg [Thu, 30 Jan 2020 07:58:25 +0000 (09:58 +0200)]
Ordering of connections was not stable

gitlab #452

Change-Id: I05041db794780e153ab19a01187cd8ca392fdb77

4 years agoMerge "Support for creating shared ontology dump to git"
Tuukka Lehtonen [Mon, 27 Jan 2020 15:17:21 +0000 (15:17 +0000)]
Merge "Support for creating shared ontology dump to git"

4 years agoGrant access to diagram APIs to enable web based diagram editing 18/3818/2
Jussi Koskela [Mon, 27 Jan 2020 12:43:30 +0000 (14:43 +0200)]
Grant access to diagram APIs to enable web based diagram editing

gitlab #455

Change-Id: Iacbfc3eece3c49712cdfa240395d8b2df58c51b4

4 years agoSupport for creating shared ontology dump to git 10/3810/4
Antti Villberg [Wed, 22 Jan 2020 23:47:21 +0000 (01:47 +0200)]
Support for creating shared ontology dump to git

File name escaping from FileUtils

gitlab #452

Change-Id: I1e2d55f04f916a0fd0938fc27cb72ca56fa30000

4 years agoMerge "Optimise performance of job scheduling in QueryListening"
Tuukka Lehtonen [Fri, 24 Jan 2020 21:41:56 +0000 (21:41 +0000)]
Merge "Optimise performance of job scheduling in QueryListening"

4 years agoOptimise performance of job scheduling in QueryListening 06/3806/5
Antti Villberg [Tue, 21 Jan 2020 23:01:04 +0000 (01:01 +0200)]
Optimise performance of job scheduling in QueryListening

Reino was correct - this synchronization was indeed broken.

gitlab #450

Change-Id: I65280947385963d52073df78f604d98741beb12f

4 years agoAllow PickSorter access to the PickRequest used for pick operation 13/3813/1
Tuukka Lehtonen [Fri, 24 Jan 2020 12:39:05 +0000 (14:39 +0200)]
Allow PickSorter access to the PickRequest used for pick operation

New default-method on the PickSorter interface keeps the API/ABI
backwards compatible.

gitlab #454

Change-Id: Icef2d4b5349bbbbfb275d9c1e6a2ecaac8d610b7

4 years agoMerge "compile method in CompileProceduralComponentTypeRequest"
Tuukka Lehtonen [Wed, 22 Jan 2020 09:05:42 +0000 (09:05 +0000)]
Merge "compile method in CompileProceduralComponentTypeRequest"

4 years agocompile method in CompileProceduralComponentTypeRequest 07/3807/1
Antti Villberg [Tue, 21 Jan 2020 23:09:30 +0000 (01:09 +0200)]
compile method in CompileProceduralComponentTypeRequest

gitlab #451

Change-Id: Ied7ad06acb2cc68c3f325d3dbb8614d3023d0e90

4 years agoBumped master version to 1.43.0
Tuukka Lehtonen [Tue, 21 Jan 2020 21:11:58 +0000 (23:11 +0200)]
Bumped master version to 1.43.0

4 years agoStop using SWT.MOZILLA 04/3804/2
Tuukka Lehtonen [Tue, 21 Jan 2020 11:25:54 +0000 (13:25 +0200)]
Stop using SWT.MOZILLA

Fixed also logger-related deprecation warnings from VariableDebugger.

gitlab #449

Change-Id: I44eaf65389a14b4ac4f7d3efde288d5d67b4c725

4 years agoFixed string externalizations for AssignSymbolGroupDialog 03/3803/1
Tuukka Lehtonen [Tue, 21 Jan 2020 11:15:44 +0000 (13:15 +0200)]
Fixed string externalizations for AssignSymbolGroupDialog

gitlab #330

Change-Id: Ia0f39351dfd8bbc68510965cd364e9843e7bfb6b

4 years agoTrace level logging for compilation status in SCLOsgi.compileAllModules 02/3802/1
Tuukka Lehtonen [Tue, 21 Jan 2020 11:10:36 +0000 (13:10 +0200)]
Trace level logging for compilation status in SCLOsgi.compileAllModules

gitlab #448

Change-Id: Ie23faa3474f42e8361e64ed0f84ad24c2ce18aee

4 years agoImproved environment resolution for document SCL expressions 01/3801/1
Antti Villberg [Mon, 20 Jan 2020 13:36:39 +0000 (15:36 +0200)]
Improved environment resolution for document SCL expressions

gitlab #447

Change-Id: I4d84204eb6c2371b60c648b04e81b0cd36765f4e

4 years agoAdded feature for batik for easier target debbugging with the IDE
Tuukka Lehtonen [Mon, 20 Jan 2020 09:36:28 +0000 (11:36 +0200)]
Added feature for batik for easier target debbugging with the IDE

gitlab #198

Change-Id: Ia8d101e7d06a686350e939b29097e63b7570db57

4 years agoBumped target sequence number after e20a07f4
Tuukka Lehtonen [Mon, 20 Jan 2020 08:54:33 +0000 (10:54 +0200)]
Bumped target sequence number after e20a07f4

gitlab #198

Change-Id: Ic0e8faf9d9af160b9d7785f71644e34779a55a90

4 years agoUpdated Batik from 1.8.0 to 1.12.0 98/3798/1
Tuukka Lehtonen [Mon, 20 Jan 2020 08:41:11 +0000 (10:41 +0200)]
Updated Batik from 1.8.0 to 1.12.0

gitlab #198

Change-Id: I6e822c407a387fc3762366d8f2d3fdc9aa00037a

4 years agoSwitch to aries spifly 1.2.3
Tuukka Lehtonen [Sat, 18 Jan 2020 21:44:30 +0000 (23:44 +0200)]
Switch to aries spifly 1.2.3

gitlab #405

Change-Id: I51289aa93a2705364fd654df1bd35b6d6d4242ae

4 years agoSwitch to aries spyfly 1.2.3 from 1.0.14
Tuukka Lehtonen [Sat, 18 Jan 2020 21:21:56 +0000 (23:21 +0200)]
Switch to aries spyfly 1.2.3 from 1.0.14

gitlab #405

Change-Id: I444675c407ce69a8005cd57e613a1f76aa79cc89

4 years agoUpgraded eclipsec.exe launcher to Eclipse 4.14 version 96/3796/1
Tuukka Lehtonen [Fri, 17 Jan 2020 22:40:14 +0000 (00:40 +0200)]
Upgraded eclipsec.exe launcher to Eclipse 4.14 version

gitlab #405

Change-Id: I2bee36439d3ead76adb49b4233858f36fd86e9dc

4 years agoFixing platform to build on the Eclipse 4.14 target 93/3793/3
Tuukka Lehtonen [Fri, 17 Jan 2020 13:08:49 +0000 (15:08 +0200)]
Fixing platform to build on the Eclipse 4.14 target

* Added org.eclipse.jetty.server 9.4.5
* 32-bit Eclipse is no more, so removed all 32-bit bundles and
  related definitions

gitlab #405

Change-Id: I580375d93b105edd01097d326567948918b7bdc9

4 years agoMoving to Eclipse 4.14 based target platform 91/3791/5
Tuukka Lehtonen [Fri, 17 Jan 2020 12:23:15 +0000 (14:23 +0200)]
Moving to Eclipse 4.14 based target platform

gitlab #405

Change-Id: I4049beafdaa118b94928fdcbaeccb60a9f5c672c

4 years agoChanges for Eclipse 2019-12 RCP platform compatibility. 92/3792/2
Tuukka Lehtonen [Fri, 17 Jan 2020 11:03:05 +0000 (13:03 +0200)]
Changes for Eclipse 2019-12 RCP platform compatibility.

* org.eclipse.equinox.util seems to have been removed, removed
  unnecessary dependencies to it
* Expand org.objectweb.asm* required version range to [5,8) from [5,6)
* Removed dependency on org.objectweb.asm.xml which no longer exists as
  a separate bundle.

gitlab #405

Change-Id: Idcb6fee939da8cda9d44f230fb6e6118bc9e5e6e

4 years agoRemoved org.simantics.db.procore.ui as it is not used anymore 90/3790/1
Tuukka Lehtonen [Thu, 16 Jan 2020 11:35:09 +0000 (13:35 +0200)]
Removed org.simantics.db.procore.ui as it is not used anymore

org.simantics.db.procore.ui essentially contained ProCoreUserAgent which
is no longer invoked in any case because procore is no longer an
alternative.

This is also related to #405 because the UI class contained
MessageDialog use that was no longer allowed in Eclipse 4.13 and
onwards.

gitlab #446
gitlab #405

Change-Id: I8e61394d1410f4396424e006c4b09dbd8f413cf1

4 years agoSwitched from Eclipse 4.13 (2019-09) to 4.14 (2019-12). 88/3788/2
Tuukka Lehtonen [Thu, 16 Jan 2020 10:51:06 +0000 (12:51 +0200)]
Switched from Eclipse 4.13 (2019-09) to 4.14 (2019-12).

gitlab #405

Change-Id: If09c23c206d8591fd07bfae5bdab5ab536b26f30

4 years agoAdd javax.inject dependency for 4.13 support 71/3371/2
Tuukka Lehtonen [Thu, 16 Jan 2020 10:49:18 +0000 (12:49 +0200)]
Add javax.inject dependency for 4.13 support

After eclipse 4.13 org.eclipse.core.runtime no longer re-exports
javax.inject, which means annotations like javax.inject.Inject and
javax.inject.Named must be imported by importing the javax.inject
package explicitly in bundles that use it.

This change also works with the old 4.7 Eclipse.

gitlab #405

Change-Id: I752e97570ea4917633dd655e1c6b59d98751db87

4 years agoFixed argument passing in async/sync read/write SCL functions 87/3787/2
Tuukka Lehtonen [Thu, 16 Jan 2020 10:44:10 +0000 (12:44 +0200)]
Fixed argument passing in async/sync read/write SCL functions

These arguments haven't really been used in SCL code invoking syncRead,
syncWrite, asyncRead or asyncWrite which is why these have gone
unnoticed for quite long.

gitlab #321

Change-Id: Ia879115e3a9c73059691f53b5bdbac64afb9d4ab

4 years agoSCLFunctions.syncWrite does not check if graph is WriteGraph 44/3744/1
jsimomaa [Mon, 25 Nov 2019 07:14:04 +0000 (09:14 +0200)]
SCLFunctions.syncWrite does not check if graph is WriteGraph

gitlab #425

Change-Id: Icb771e425c170e00385b943a6a6dde2cf62e2d9b
(cherry picked from commit 579f8512543a88945e94ce619a4a20c307e67f4f)

4 years agoMerge "Sort symbol item contributions alphanumerically, not lexicographically"
Tuukka Lehtonen [Thu, 16 Jan 2020 08:31:25 +0000 (08:31 +0000)]
Merge "Sort symbol item contributions alphanumerically, not lexicographically"

4 years agoSort symbol item contributions alphanumerically, not lexicographically 86/3786/1
Tuukka Lehtonen [Thu, 16 Jan 2020 08:15:27 +0000 (10:15 +0200)]
Sort symbol item contributions alphanumerically, not lexicographically

gitlab #445

Change-Id: I5efebb587654644a1f7cac85bdc03aea209dff2f

4 years agoSupport ontology install option trueWhenDeployed also during development 81/3781/2
Antti Villberg [Tue, 14 Jan 2020 13:38:06 +0000 (15:38 +0200)]
Support ontology install option trueWhenDeployed also during development

gitlab #444

Change-Id: I038de840b1b76b3638338542d23baae2ba2a903f

4 years agoMerge "Implement equals/hashCode for PropertyInfo"
Tuukka Lehtonen [Mon, 13 Jan 2020 20:09:19 +0000 (20:09 +0000)]
Merge "Implement equals/hashCode for PropertyInfo"

4 years agoExpose TransferableGraphImportProcess Resources table. 41/3741/1
Marko Luukkainen [Wed, 18 Dec 2019 10:34:09 +0000 (12:34 +0200)]
Expose TransferableGraphImportProcess Resources table.

This allows us to process the Resources with ImportAdvisor.beforeWrite()

gitlab #433

Change-Id: I4537549167e4816bb888b5891aea7e98d84b9184
(cherry picked from commit 680b5fe108fc6929d40785c76ec7444bbb092f51)

4 years agoMerge "TransferableGraph import to VG with different name"
Marko Luukkainen [Mon, 13 Jan 2020 13:57:22 +0000 (13:57 +0000)]
Merge "TransferableGraph import to VG with different name"

4 years agoTransferableGraph import to VG with different name 40/3740/1
Marko Luukkainen [Tue, 17 Dec 2019 12:23:30 +0000 (14:23 +0200)]
TransferableGraph import to VG with different name

* Root are processed first during tg import, which allows Import Advisor
to replace the current name.

gitlab #432

Change-Id: Ia297b4df4c0ad1895a985f592064a178a6c4fb10
(cherry picked from commit c85fa803ee6833f46532097250ba0c3ac5ace86c)

4 years agoUpgrade to Nattable release 1.6.0 from 1.5.0 76/3776/1
Tuukka Lehtonen [Mon, 13 Jan 2020 13:17:05 +0000 (15:17 +0200)]
Upgrade to Nattable release 1.6.0 from 1.5.0

gitlab #443

Change-Id: I840a9e60e35a668631feb48aae2e8f30b5b73326

4 years agoImplement equals/hashCode for PropertyInfo 71/3771/2
Antti Villberg [Sat, 11 Jan 2020 11:09:28 +0000 (13:09 +0200)]
Implement equals/hashCode for PropertyInfo

Take immutability into account.

gitlab #442

Change-Id: I0c2fe55c691537e91af6449ec544a4eec824092f

4 years agoImplement equals/hashCode for PropertyInfo 69/3769/1
Antti Villberg [Thu, 9 Jan 2020 13:27:17 +0000 (15:27 +0200)]
Implement equals/hashCode for PropertyInfo

gitlab #442

Change-Id: I6f6d2fc1f7266dbdd7bacf24751d9ab6b9dd94ac

4 years agoMake StandardVariableBuilder singleton 68/3768/1
Antti Villberg [Thu, 9 Jan 2020 12:54:45 +0000 (14:54 +0200)]
Make StandardVariableBuilder singleton

gitlab #441

Change-Id: I28bb5ccb8f5164e3bbe4f0e0c68d4b221cb35d24

4 years agoMainProgram polls nanoTime too often 65/3765/1
Antti Villberg [Thu, 9 Jan 2020 11:59:08 +0000 (13:59 +0200)]
MainProgram polls nanoTime too often

gitlab #440

Change-Id: I9d6b1514907682b990ae21588ced70b35f5ed6f5

4 years agoBrowseContext creation fails when including invalid contributions 63/3763/1
Antti Villberg [Thu, 9 Jan 2020 09:44:36 +0000 (11:44 +0200)]
BrowseContext creation fails when including invalid contributions

gitlab #439

Change-Id: Ie985db8ac57c43c081a77df390c48e7b32c1042f

4 years agoAdded new field TypeId to dependency index for exact type searching 58/3758/1
Tuukka Lehtonen [Fri, 3 Jan 2020 11:51:33 +0000 (13:51 +0200)]
Added new field TypeId to dependency index for exact type searching

The new field is String-valued and contains a concatenation of the
resource ids of a resource's type hierarchy, separated by a whitespace,
for example `41233 12423 1233`. This field uses the WhitespaceAnalyzer,
i.e. its contents are tokenized by whitespace and thus searches like
`TypeId:41233` will return exactly those resources that are instances of
the type resource `41233`.

This commit also simplifies and fixes some of the existing index
searching code to use this new field instead of the old `Types` field
for type-based searching.

If existing product-code uses the indexing facilities directly and not
through `QueryIndexUtils` or `Instances`, such code will also require
changes to take this new field into use.

See `IndexQueries` to form queries related to this field.

gitlab #438

Change-Id: I9992ad32a9e6da41c88641e60fed6e1793253738

4 years agoFixed Simantics Console activation and formatted message output 54/3754/1
Tuukka Lehtonen [Mon, 30 Dec 2019 13:54:22 +0000 (15:54 +0200)]
Fixed Simantics Console activation and formatted message output

Also fixed an NPE from org.simantics.platform.ui.internal.Activator.stop

gitlab #437

Change-Id: I83e5d08d49ee0f97ac6c81987054ffa01b916516

4 years agoLimit SCL Console buffer size to 5M characters by default 31/3731/1
Tuukka Lehtonen [Fri, 20 Dec 2019 11:15:56 +0000 (13:15 +0200)]
Limit SCL Console buffer size to 5M characters by default

Low watermark limit for the buffer size can be configured from the new
SCL / Console preference page. High watermark is always set to 100 80
character rows larger than the low watermark.

Buffer size limiting can also be disabled/enabled entirely from the same
preference page.

gitlab #104

Change-Id: I8be203e60ae49fce53c39a4d251d2575a64b2543

4 years agoFixed SCLConsoleView.setCurrentImports to be performed in a Job 29/3729/1
Tuukka Lehtonen [Thu, 19 Dec 2019 12:27:14 +0000 (14:27 +0200)]
Fixed SCLConsoleView.setCurrentImports to be performed in a Job

The job is marked as a user job so if it starts taking time or gets
blocked due to DB, it should get shown to the user as an ongoing job.

gitlab #164

Change-Id: If2dc1389ceb4b3f868f27b17c59b0e59233b9734

4 years agoMerge "Catch Throwable instead of Exception in SCL AsyncUtils"
Tuukka Lehtonen [Thu, 19 Dec 2019 11:28:07 +0000 (11:28 +0000)]
Merge "Catch Throwable instead of Exception in SCL AsyncUtils"

4 years agoPrevent NPE in JsonUtils.readPossibleVariableUri 27/3727/1
Tuukka Lehtonen [Thu, 19 Dec 2019 11:08:53 +0000 (13:08 +0200)]
Prevent NPE in JsonUtils.readPossibleVariableUri

Previously NPE could come if the input JSON contained e.g. array values.

gitlab #331

Change-Id: I0b4c5134de12685414716ff9cef479d48cabd8ba

4 years agoFixed previous i18n work from 47269fe0 26/3726/1
Tuukka Lehtonen [Thu, 19 Dec 2019 11:04:58 +0000 (13:04 +0200)]
Fixed previous i18n work from 47269fe0

gilab #330

Change-Id: I8e31cbb9e123699558c3da386d49f48a5b55c6f1

4 years agoAdded GECacheKey.toString() to allow debugging hashcode/equals problems 25/3725/2
Tuukka Lehtonen [Thu, 19 Dec 2019 10:35:40 +0000 (12:35 +0200)]
Added GECacheKey.toString() to allow debugging hashcode/equals problems

gitlab #312

Change-Id: I1a719581210c4587336df4e371f6dacb38c949c8

4 years agoCatch Throwable instead of Exception in SCL AsyncUtils 34/3734/1
jsimomaa [Thu, 19 Dec 2019 08:47:46 +0000 (10:47 +0200)]
Catch Throwable instead of Exception in SCL AsyncUtils

gitlab #435

Change-Id: Ibcd892ec9d3e9b41f4c9bea70f3a2470dfdef132

4 years agoBackwards-compatibility fixes for Validation property tab 21/3721/1
Tuukka Lehtonen [Wed, 18 Dec 2019 11:44:38 +0000 (13:44 +0200)]
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

4 years agoAdded new UC SCL script phase: cleanup 98/3698/2
Tuukka Lehtonen [Wed, 11 Dec 2019 12:29:36 +0000 (14:29 +0200)]
Added new UC SCL script phase: cleanup

This is intended to support defining scripts that are ran just before
the UC is removed from the solver.

gitlab #431

Change-Id: I20c6024aa0ec61fbf79453df2fb81a3d79e4b83e

4 years agoAdded new user component SCL script simulation stage: post-preparation 90/3690/1
Tuukka Lehtonen [Tue, 10 Dec 2019 09:37:36 +0000 (11:37 +0200)]
Added new user component SCL script simulation stage: post-preparation

Post-preparation scripts are executed after the possible native solver
preparations have been executed.

The old preparation scripts are executed before native solver
preparation as before.

gitlab #430

Change-Id: I0d8e0d0710cbe35407b2453f9e49ead085d486cf

4 years agoBump splash screen version number to 1.42.0
Tuukka Lehtonen [Thu, 5 Dec 2019 14:14:45 +0000 (16:14 +0200)]
Bump splash screen version number to 1.42.0

4 years agoBumped master version to 1.42.0
Tuukka Lehtonen [Thu, 5 Dec 2019 13:51:36 +0000 (15:51 +0200)]
Bumped master version to 1.42.0

4 years agoSCL API for direct access to SpreadsheetBooks 71/3671/1
Antti Villberg [Wed, 4 Dec 2019 15:47:12 +0000 (17:47 +0200)]
SCL API for direct access to SpreadsheetBooks

gitlab #429

Change-Id: Icb5090d9110034a4c9103cc2413084b222aed20c

4 years agoMerge "Fix graph.tg hardcoded in CompilePGraphs code"
Tuukka Lehtonen [Fri, 29 Nov 2019 20:10:12 +0000 (20:10 +0000)]
Merge "Fix graph.tg hardcoded in CompilePGraphs code"

4 years agoFix graph.tg hardcoded in CompilePGraphs code 02/3602/2
Miro Richard Eklund [Fri, 22 Nov 2019 11:03:07 +0000 (13:03 +0200)]
Fix graph.tg hardcoded in CompilePGraphs code

Ontology cannot be compiled if it depends on a tg that has another name
than graph.tg. Fixed this by searching for all .tg files instead of
those called graph.tg.

gitlab #422

Change-Id: I52fb91f31b0ae052097fdedd36efa56e314adec5

4 years agoMerge "Maintain info about changed resources in virtual graph"
Tuukka Lehtonen [Fri, 29 Nov 2019 10:59:23 +0000 (10:59 +0000)]
Merge "Maintain info about changed resources in virtual graph"

4 years agoMaintain info about changed resources in virtual graph 41/3641/2
Antti Villberg [Fri, 29 Nov 2019 07:57:07 +0000 (09:57 +0200)]
Maintain info about changed resources in virtual graph

gitlab #428

Change-Id: Ia697012400c7a0a4bd07462eafbf08ffa082890d

4 years agoAdopt spreadsheet changes made in Balas development 33/3633/1
Antti Villberg [Thu, 28 Nov 2019 10:55:52 +0000 (12:55 +0200)]
Adopt spreadsheet changes made in Balas development

gitlab #427

Change-Id: Idfcc4da578dcfa03e9e88f88a2e5012f17fc1f1d

4 years agoIntroduce new DiagramViewer.getRuntimeFromManager() 44/3544/2
jsimomaa [Sat, 16 Nov 2019 07:45:43 +0000 (09:45 +0200)]
Introduce new DiagramViewer.getRuntimeFromManager()

* The original DiagramViewer.getRuntime() returns cached version of the
runtime diagram resource

gitlab #416

Change-Id: Id2723f5deb94cdba15e815229d9a1931482ace16

4 years agoAdd LICENSE file for EPL v1.0 91/3591/1
Tuukka Lehtonen [Wed, 20 Nov 2019 18:41:57 +0000 (20:41 +0200)]
Add LICENSE file for EPL v1.0

Change-Id: Iad0ec1d3501b53805e77079649a53aea9b5d693c

4 years agoLog throwables in DiagramViewerLoadJob instead of swallowing them 90/3590/1
Tuukka Lehtonen [Wed, 20 Nov 2019 18:34:59 +0000 (20:34 +0200)]
Log throwables in DiagramViewerLoadJob instead of swallowing them

gitlab #420

Change-Id: I493d7eeb0a6a13a188578fe218d68de8e195080e

4 years agoG2DParentNode handles "undefined" child bounds separately 84/3584/1
Tuukka Lehtonen [Wed, 20 Nov 2019 14:33:29 +0000 (16:33 +0200)]
G2DParentNode handles "undefined" child bounds separately

Previously nodes could only return null to say "I have no bounds".
Now it is possible to return GeometryUtils.undefinedBounds() to say
"ignore my bounds" to G2DParentNode.

Also allow customization of the node class used by ElementPainter to
mark selections under "element nodes" through a new configuration class
ElementPainterConfiguration.

This allows e.g. district to use its own node for this purpose to
optimize the scene graph and customize the bounds it returns.

gitlab #419

Change-Id: I210fd26be5d269847277616b9d5c52ef4f930dd7
(cherry picked from commit ad29e24f50e336add4c28df14312b3134ab93427)

4 years agoAdd check for headless installations in DPIUtil 72/3572/2
jsimomaa [Wed, 20 Nov 2019 08:54:42 +0000 (10:54 +0200)]
Add check for headless installations in DPIUtil

gitlab #418

Change-Id: I5d7b637ad7833f7cfa60969c81be818d3d8fefc1

4 years agoFix SimanticsConsole activation invalid thread access problem 63/3563/1
Tuukka Lehtonen [Tue, 19 Nov 2019 08:11:44 +0000 (10:11 +0200)]
Fix SimanticsConsole activation invalid thread access problem

gitlab #400

Change-Id: I80a054fc44da6030ad9da9c566b0ce072cb08d8c

4 years agoSet strokeWidth for new chart items already upon creation 25/3525/1
Tuukka Lehtonen [Fri, 15 Nov 2019 07:22:14 +0000 (09:22 +0200)]
Set strokeWidth for new chart items already upon creation

gitlab #415

Change-Id: Ibc478abadc3c80006eee09b7daf568a9f43dd8b0

4 years agoMerge "Automatically import also SCLMain modules of dependent index roots" cef-swt-grpc-tech-demo
Tuukka Lehtonen [Mon, 11 Nov 2019 19:26:43 +0000 (19:26 +0000)]
Merge "Automatically import also SCLMain modules of dependent index roots"

4 years agoAutomatically import also SCLMain modules of dependent index roots 85/3485/1
Antti Villberg [Sat, 9 Nov 2019 19:56:15 +0000 (21:56 +0200)]
Automatically import also SCLMain modules of dependent index roots

gitlab #413

Change-Id: I0f2e345bc59aa1e74f90cd2a3d138de1d0befd36

4 years agoRemoved trailing newline from clipboard text 46/3446/1
Tuukka Lehtonen [Mon, 4 Nov 2019 14:12:08 +0000 (16:12 +0200)]
Removed trailing newline from clipboard text

When copying text to clipboard from GraphExplorer-based UI controls
(Model Browser, Selection view) using StandardCopyHandler, the produced
text no longer contains a trailing newline.

gitlab #411

Change-Id: If4141b00ed9ffc1d1dcaed53114405e8b0d20042
(cherry picked from commit 17046fccd0b4bdcd479aadf4b204c1a06a2c896c)

4 years agoMerge "Fixed two problems in connecting picking"
Tuukka Lehtonen [Fri, 1 Nov 2019 07:23:51 +0000 (07:23 +0000)]
Merge "Fixed two problems in connecting picking"

4 years agoMerge "Revert "Avoid duplicate evaluation of procedural component type requests""
Tuukka Lehtonen [Fri, 1 Nov 2019 07:22:28 +0000 (07:22 +0000)]
Merge "Revert "Avoid duplicate evaluation of procedural component type requests""

4 years agoRevert "Avoid duplicate evaluation of procedural component type requests" 37/3437/2
Tuukka Lehtonen [Fri, 1 Nov 2019 07:21:56 +0000 (07:21 +0000)]
Revert "Avoid duplicate evaluation of procedural component type requests"

This reverts commit 45ddae414b7f632d52546c3c46b0f6d2b4ab37af.

The change seems to have broken existing products for unknown reasons.
Let's revert immediately and see what went wrong afterwards.

gitlab #408

Change-Id: I7deabcb0fd6982963d809e0549a1e4a66165e9bb

4 years agoFixed two problems in connecting picking 35/3435/1
Jussi Koskela [Thu, 31 Oct 2019 13:52:35 +0000 (15:52 +0200)]
Fixed two problems in connecting picking

Tolerance was incorrectly subtracted instead of added in RouteLine
picking. RouteGraphConnectionClass did not take selection stroke width
into account when doing coarse picking based on bounding box.

gitlab #396

Change-Id: I6dabe7297eb553f0894c4299c393bb5369b45866

4 years agoFix adding components to configurationBySolverName map in MappingBase 33/3433/2
jsimomaa [Thu, 31 Oct 2019 07:27:35 +0000 (09:27 +0200)]
Fix adding components to configurationBySolverName map in MappingBase

The map is now invalidated (= null) when components are added which
means the map will be recalculated next time when retrieved with
getConfigurationBySolverName.

gitlab #402

Change-Id: I8f9436ddd62d86b7b73f98325cf7b67f0fb97cea

4 years agoSupport reading TG files with shared and non-shared value contexts 16/3416/3
Tuukka Lehtonen [Tue, 29 Oct 2019 14:42:11 +0000 (16:42 +0200)]
Support reading TG files with shared and non-shared value contexts

This is part of the fix for a nasty corner case in
TransferableGraphFileReader.readTG's deserialization of referable value
data types.

This regression was caused by commit
bf495713dbc9dec325f3929889466fa6cd58b541 over 1.5 years ago. The removal
of idContext.clear() was done without proper understanding of the real
issue.

The real issue is that TG's are currently written in two ways by
different codes: with shared and with non-shared value contexts.

Serializing TransferableGraph1 structures using the default Binding will
use shared context for serializing the values Variant array. Thus all TG
files produced by the graph compiler use a shared value context which
eans this class must be used with sharedValueContext set to true. As an
example, <code>true</code> must be used if the corresponding TG file is
written e.g. like this:

    DataContainers.writeFile(location
        new DataContainer(format,
                          version,
                          metadata,
                          new Variant(TransferableGraph1.BINDING, tg)));

On the other hand, any TG files serialized using more optimized methods
like ModelTransferableGraphSource do not use a shared value context when
writing the file. This means those files cannot be read safely using
standard {@link Binding} at all, and when using this class,
sharedValueContext must be set to false to prevent the import from
corrupting datatype values because the referable parts of datatypes may
get bound to the wrong existing types if the data is read using shared
context.

After this change clients should use readTG(File | InputStream, boolean)
methods instead of readTG to always specify the context sharing setting
explicitly according to how the TG's in question were written.

gitlab #409

Change-Id: Ic18fd1442987d4e740f729729b81cd3133f5d269

4 years agoMerge "Avoid duplicate evaluation of procedural component type requests"
Tuukka Lehtonen [Tue, 29 Oct 2019 12:24:08 +0000 (12:24 +0000)]
Merge "Avoid duplicate evaluation of procedural component type requests"

4 years agoTake zoom level into account when picking connections 34/3334/3
Jussi Koskela [Tue, 29 Oct 2019 12:04:28 +0000 (14:04 +0200)]
Take zoom level into account when picking connections

Also fixed RouteGraphConnectTool.pickNearestRouteGraphConnection which
gave flawed results. Visual hints are fixed to match the performed
actions. This versions always picks the closest connection if there are
multiple hits.

gitlab #396

Change-Id: Ib5d8be3b2c7301dae5545166c07e11c03f92a50d

4 years agoMoved RouteGraphConnectionClass to org.simantics.g2d.elementclass 17/3417/2
Tuukka Lehtonen [Tue, 29 Oct 2019 10:55:05 +0000 (12:55 +0200)]
Moved RouteGraphConnectionClass to org.simantics.g2d.elementclass

Previously the class was in bundle org.simantics.diagram, which depends
on database bundles and other things that RouteGraphConnectionClass does
not need or use.

In #396 the RouteGraphConnectionClass.KEY_RG_NODE would be needed in
org.simantics.g2d and therefore it makes sense to move it there.

gitlab #410

Change-Id: I491b8caeffa1a3c455af7815ce9372a9e5df722e

4 years agoAvoid duplicate evaluation of procedural component type requests 11/3411/2
Reino Ruusu [Fri, 25 Oct 2019 09:00:36 +0000 (12:00 +0300)]
Avoid duplicate evaluation of procedural component type requests

gitlab #408

Change-Id: I331016fcae55434cc612c6301b74189a47142e90

4 years agoSimantics Console 51/3351/7
Antti Villberg [Thu, 17 Oct 2019 07:49:30 +0000 (10:49 +0300)]
Simantics Console

gitlab #400

Change-Id: I18d73b4c9a8d3a4e5b3d3fd43455e3fbf44eceba

4 years agoPut back unpack=true for org.simantics.g2d.feature 87/3387/2
jsimomaa [Mon, 21 Oct 2019 11:13:33 +0000 (14:13 +0300)]
Put back unpack=true for org.simantics.g2d.feature

gitlab #404

Change-Id: I8c52debbf41e5f9f6595b4c743288e5d94a4c74e

4 years agoAdd missing eclipse-collections bundles to org.simantics.g2d.feature 85/3385/2
jsimomaa [Mon, 21 Oct 2019 10:35:08 +0000 (13:35 +0300)]
Add missing eclipse-collections bundles to org.simantics.g2d.feature

gitlab #404

Change-Id: I947e06bbd4e256132338066a8b18b45b23db6d2e