]> gerrit.simantics Code Review - simantics/platform.git/log
simantics/platform.git
15 months agoMerge "Re-export Simantics/DB/findFreshName from Rename" into release/1.43.1 release/1.43.1
Marko Luukkainen [Wed, 25 Jan 2023 09:58:11 +0000 (09:58 +0000)]
Merge "Re-export Simantics/DB/findFreshName from Rename" into release/1.43.1

15 months agoRe-export Simantics/DB/findFreshName from Rename 35/4935/1
Marko Luukkainen [Wed, 25 Jan 2023 09:47:36 +0000 (11:47 +0200)]
Re-export Simantics/DB/findFreshName from Rename

Removed the duplicate findFreshName function imported from java
in Simantics/Rename.

gitlab #904

Change-Id: I3f7232788a28012a0beb033af15263c7e9dcdd16

16 months agoMerge "Improved line gaps" into release/1.43.1
Marko Luukkainen [Thu, 15 Dec 2022 12:18:26 +0000 (12:18 +0000)]
Merge "Improved line gaps" into release/1.43.1

16 months agoImproved line gaps 29/4929/1
Marko Luukkainen [Thu, 15 Dec 2022 12:11:27 +0000 (14:11 +0200)]
Improved line gaps

Fixed multi-gap handling (stored relative coordinate for the next gap,
when absolute coordinate was expected).

gitlab #888

Change-Id: I8949a389890fcf0423b29c692c580a07fc600928

16 months agoMerge "Improved line gaps" into release/1.43.1
Marko Luukkainen [Thu, 15 Dec 2022 11:43:03 +0000 (11:43 +0000)]
Merge "Improved line gaps" into release/1.43.1

16 months agoImproved line gaps 28/4928/1
Marko Luukkainen [Thu, 15 Dec 2022 11:36:08 +0000 (13:36 +0200)]
Improved line gaps

gitlab #888

Change-Id: I72fe0768500bc9830109e9a8e0501a967beff003

17 months agoMerge "Adapters to convert various literals to Strings" into release/1.43.1
Marko Luukkainen [Wed, 16 Nov 2022 15:52:59 +0000 (15:52 +0000)]
Merge "Adapters to convert various literals to Strings" into release/1.43.1

17 months agoAdapters to convert various literals to Strings 27/4927/1
Marko Luukkainen [Wed, 16 Nov 2022 08:43:47 +0000 (10:43 +0200)]
Adapters to convert various literals to Strings

Boolean, Double, and Integer conversions.

gitlab #881

Change-Id: Idaa4885470e580a0b0b4e5994c6a1e2a88bfd020

17 months agoMerge "A QuadTree with better element remove implementation." into release/1.43.1
Marko Luukkainen [Wed, 16 Nov 2022 08:26:02 +0000 (08:26 +0000)]
Merge "A QuadTree with better element remove implementation." into release/1.43.1

17 months agoA QuadTree with better element remove implementation. 26/4926/1
Marko Luukkainen [Wed, 16 Nov 2022 08:18:15 +0000 (10:18 +0200)]
A QuadTree with better element remove implementation.

gitlab #880

Change-Id: I979b31232c81b0524c7733bbbf6bf6f4e1d831c5

20 months agoMerge "Exporting TG files creates temporary files without removing them." into releas...
Marko Luukkainen [Thu, 18 Aug 2022 06:17:43 +0000 (06:17 +0000)]
Merge "Exporting TG files creates temporary files without removing them." into release/1.43.1

20 months agoExporting TG files creates temporary files without removing them. 18/4918/1
Marko Luukkainen [Wed, 17 Aug 2022 15:42:07 +0000 (18:42 +0300)]
Exporting TG files creates temporary files without removing them.

gitlab #858

Change-Id: Ie0da930769e275f72577363fef98bdc65ea69ff4

20 months agoFix signing to work with PKCS#12 keystore
Tuukka Lehtonen [Wed, 17 Aug 2022 11:15:46 +0000 (14:15 +0300)]
Fix signing to work with PKCS#12 keystore

PKCS#12 keystores only have one store password,
no separate key password. The -keypass argument must
not be given to jarsigner when it is not used.

Change-Id: I95f0681c6a841113da3f3b341aa42e73f075d4b4

20 months agoImporting TG files creates copies of files without deleting them. 17/4917/1
Marko Luukkainen [Tue, 16 Aug 2022 12:45:33 +0000 (15:45 +0300)]
Importing TG files creates copies of files without deleting them.

Set TransferableGraphFileReader to delete temporary tg files.
Check that MigrationState is disposed where used.

gitlab #857

Change-Id: Ic31cf437c26b4a36f45f16455c6a3376fb8fc361

2 years agoSCLScenegraph breaks UTF8 strings 05/4905/1
Marko Luukkainen [Mon, 14 Mar 2022 07:52:53 +0000 (09:52 +0200)]
SCLScenegraph breaks UTF8 strings

gitlab #816

Change-Id: I88de9da87fb0ffb415082631176a55b39cc4d003

2 years agoAdd locking for IndexUtils.flushIndexCaches 01/4901/1
Marko Luukkainen [Mon, 28 Feb 2022 08:00:55 +0000 (10:00 +0200)]
Add locking for IndexUtils.flushIndexCaches

To gain access to index locks, the flush implementation needed to be
moved from MemoryIndexing into IndexedRelationsImpl.
IndexedRelations.flush was added to the interface as well.

Merged master/85ee3813 to release/1.43.1

gitlab #807

Change-Id: I66b149dfda378b33ff7574036cabbe86f96beb78

2 years agoDisable SCL Issue provider by default 93/4893/1
Marko Luukkainen [Thu, 17 Feb 2022 07:09:29 +0000 (09:09 +0200)]
Disable SCL Issue provider by default

Use org.simantics.scl.issues=true system property to get it back.

gitlab #806

Change-Id: I93170cad18959e1c51d2832d725c9794190bb246

2 years agoResolve "A tag with an associated listener causes issues in DelayedWrite 87/4887/1
Marko Luukkainen [Mon, 7 Feb 2022 14:56:25 +0000 (16:56 +0200)]
Resolve "A tag with an associated listener causes issues in DelayedWrite
transactions"

Merged master/2cfb8969 to 1.43.1 manually.

gitlab #761

Change-Id: I65961a7bf3a295bfd14bf0677ed9791c5c7aabc1

2 years agoMessage of an Exception may be null. 72/4772/1
Marko Luukkainen [Tue, 14 Sep 2021 11:48:37 +0000 (14:48 +0300)]
Message of an Exception may be null.

Changed messageOfException function to return empty String when message
is null.

Added possibleMessageOfException to return Maybe String

gitlab #749

Change-Id: Ia67cbef6bbc67c7c0c6fc15a69bd11d46f76e431

2 years agoConverting ISymbolItems to SVG without selection elements 71/4771/2
Marko Luukkainen [Tue, 14 Sep 2021 11:05:33 +0000 (14:05 +0300)]
Converting ISymbolItems to SVG without selection elements

gitlab #748

Change-Id: I6d1c9b8081831e79169ab6368fb5ed426b2b2a6a

2 years agoSVG conversion SCL API improvements. 70/4770/2
Marko Luukkainen [Tue, 14 Sep 2021 10:48:55 +0000 (13:48 +0300)]
SVG conversion SCL API improvements.

* Function to dispose canvas context
* Alignment setting for SVG conversion

gitlab #747

Change-Id: I174604c9130f830df84468829e152444f326b6a6

2 years agoAbility to get StatePropertyNode from StateNodeManager 60/4760/1
Marko Luukkainen [Wed, 7 Jul 2021 08:04:02 +0000 (11:04 +0300)]
Ability to get StatePropertyNode from StateNodeManager

gitlab simupedia#163

Change-Id: Ie33d50386e5509e2c1e2a857dfa56f481ca54d0c

2 years agoReturn SCLConsole from SCLScriptConsoleView 44/4744/1
Marko Luukkainen [Mon, 7 Jun 2021 15:27:45 +0000 (18:27 +0300)]
Return SCLConsole from SCLScriptConsoleView

gitlab #722

Change-Id: Iaaaf8c2084bfb5a1c7eb7339535a6b4a09010a32

3 years agoFix poor syntax in search result HMTL generation. 78/4678/1
Marko Luukkainen [Fri, 12 Mar 2021 16:11:08 +0000 (18:11 +0200)]
Fix poor syntax in search result HMTL generation.

`)`was in wrong place.

gitlab #680

Change-Id: If62e3a4e146b05f26b912db0b245a1bb3cc77193

3 years agoFix CollectionUtils.unique (removed unique items) 77/4677/1
Marko Luukkainen [Fri, 12 Mar 2021 14:44:44 +0000 (16:44 +0200)]
Fix CollectionUtils.unique (removed unique items)

gitlab #679

Change-Id: I4c297a9a3ed258e16b2cd3663b63115748c6ae61

3 years agoMerge "Use paddings when calculating Text bounds." into release/1.43.1
Marko Luukkainen [Fri, 5 Mar 2021 13:19:44 +0000 (13:19 +0000)]
Merge "Use paddings when calculating Text bounds." into release/1.43.1

3 years agoUse paddings when calculating Text bounds. 66/4666/1
Marko Luukkainen [Fri, 5 Mar 2021 13:12:24 +0000 (15:12 +0200)]
Use paddings when calculating Text bounds.

Allow external implementations to use bounds calculation without
re-using cached data.

gitlab #676

Change-Id: I9277f45189c45c5e5845a194633e2becd0f2abdb

3 years agoMerge "Improved clearing of CanvasContext" into release/1.43.1
Marko Luukkainen [Fri, 5 Feb 2021 15:12:37 +0000 (15:12 +0000)]
Merge "Improved clearing of CanvasContext" into release/1.43.1

3 years agoImproved clearing of CanvasContext 45/4645/1
Marko Luukkainen [Fri, 5 Feb 2021 15:05:35 +0000 (17:05 +0200)]
Improved clearing of CanvasContext

gitlab #674

Change-Id: Ib2e6d13346576f6852f30fa31c08adc0b638db13

3 years agoMerge "Clear Context/CanvasContext on dispose()" into release/1.43.1
Marko Luukkainen [Fri, 5 Feb 2021 12:02:48 +0000 (12:02 +0000)]
Merge "Clear Context/CanvasContext on dispose()" into release/1.43.1

3 years agoClear Context/CanvasContext on dispose() 44/4644/1
Marko Luukkainen [Fri, 5 Feb 2021 11:57:45 +0000 (13:57 +0200)]
Clear Context/CanvasContext on dispose()

Changed PageDesc DB listening to static class to clear references to
main object after dispose.

gitlab #674

Change-Id: Ib5659dee7495ba4310cbf3ac459231160c328c2f

3 years agoMerge "Export Connection's children as child SVG elements." into release/1.43.1
Marko Luukkainen [Tue, 2 Feb 2021 11:11:08 +0000 (11:11 +0000)]
Merge "Export Connection's children as child SVG elements." into release/1.43.1

3 years agoExport Connection's children as child SVG elements. 42/4642/1
Marko Luukkainen [Tue, 2 Feb 2021 11:02:03 +0000 (13:02 +0200)]
Export Connection's children as child SVG elements.

Fix for previous change, connection graphics were exported twice.

gitlab #673

Change-Id: I601bca0029725fdef36f221580ced099366880cf

3 years agoMerge "Export Connection's children as child SVG elements." into release/1.43.1
Marko Luukkainen [Mon, 1 Feb 2021 16:22:41 +0000 (16:22 +0000)]
Merge "Export Connection's children as child SVG elements." into release/1.43.1

3 years agoExport Connection's children as child SVG elements. 41/4641/1
Marko Luukkainen [Mon, 1 Feb 2021 16:15:29 +0000 (18:15 +0200)]
Export Connection's children as child SVG elements.

gitlab #673

Change-Id: Ic0e4deaa9ffb982ef21674c6d6016d0c47c15255

3 years agoMerge "Contains method for QuadTree" into release/1.43.1
Marko Luukkainen [Thu, 10 Dec 2020 11:26:10 +0000 (11:26 +0000)]
Merge "Contains method for QuadTree" into release/1.43.1

3 years agoContains method for QuadTree 25/4625/1
Marko Luukkainen [Thu, 10 Dec 2020 11:21:41 +0000 (13:21 +0200)]
Contains method for QuadTree

gitlab #658

Change-Id: I37f8855694d803368fd433250e7c7adb053c21e1

3 years agoMerge "Using non default charset for uncompressing zip files." into release/1.43.1
Marko Luukkainen [Tue, 8 Dec 2020 10:15:22 +0000 (10:15 +0000)]
Merge "Using non default charset for uncompressing zip files." into release/1.43.1

3 years agoUsing non default charset for uncompressing zip files. 23/4623/1
Marko Luukkainen [Tue, 8 Dec 2020 10:08:15 +0000 (12:08 +0200)]
Using non default charset for uncompressing zip files.

gitlab #656

Change-Id: I945522e99824f81e1755dae392d74c6b4b0e379e

3 years agoMerge "Getting ConnectionCrossings from ConnectionCrossingsParticipant" into release...
Marko Luukkainen [Thu, 26 Nov 2020 10:32:03 +0000 (10:32 +0000)]
Merge "Getting ConnectionCrossings from ConnectionCrossingsParticipant" into release/1.43.1

3 years agoMerge "Temporary solution to concurrent modification exception." into release/1.43.1
Marko Luukkainen [Thu, 26 Nov 2020 10:31:52 +0000 (10:31 +0000)]
Merge "Temporary solution to concurrent modification exception." into release/1.43.1

3 years agoGetting ConnectionCrossings from ConnectionCrossingsParticipant 20/4620/1
Marko Luukkainen [Thu, 26 Nov 2020 10:25:58 +0000 (12:25 +0200)]
Getting ConnectionCrossings from ConnectionCrossingsParticipant

gitlab #646

Change-Id: Ibaaf584afaa664c69d75496edb72975bc9e82b65

3 years agoTemporary solution to concurrent modification exception. 19/4619/1
Marko Luukkainen [Tue, 24 Nov 2020 16:47:09 +0000 (18:47 +0200)]
Temporary solution to concurrent modification exception.

gitlab #645

Change-Id: Ia67129d5dad5ad7fe571157bbf9be99513832e72

3 years agoMerge "Allow changing failOnMissing behaviour for migrated TG import." into release...
Marko Luukkainen [Mon, 23 Nov 2020 10:27:07 +0000 (10:27 +0000)]
Merge "Allow changing failOnMissing behaviour for migrated TG import." into release/1.43.1

3 years agoAllow changing failOnMissing behaviour for migrated TG import. 17/4617/1
Marko Luukkainen [Fri, 20 Nov 2020 16:05:25 +0000 (18:05 +0200)]
Allow changing failOnMissing behaviour for migrated TG import.

MigrationStateKeys.FAIL_ON_MISSING parameter now overrides system wide
"failOnMissingEntities" property.

gitlab #643

Change-Id: Ia5977d806ab590e64834b82c128e474e6c7a51a6

3 years agoMerge "Fix NPE in Export Core" into release/1.43.1
Marko Luukkainen [Thu, 19 Nov 2020 08:43:50 +0000 (08:43 +0000)]
Merge "Fix NPE in Export Core" into release/1.43.1

3 years agoFix NPE in Export Core 14/4614/1
Marko Luukkainen [Thu, 19 Nov 2020 08:33:25 +0000 (10:33 +0200)]
Fix NPE in Export Core

gitlab #642

Change-Id: Iee0d7bc9f03a99339e00223d9b61a60abd40a3f4

3 years agoMerge "SCLScenegraph: Use diagram resource as a prefix for generated IDs." into relea...
Marko Luukkainen [Wed, 11 Nov 2020 08:27:50 +0000 (08:27 +0000)]
Merge "SCLScenegraph: Use diagram resource as a prefix for generated IDs." into release/1.43.1

3 years agoSCLScenegraph: Use diagram resource as a prefix for generated IDs. 10/4610/1
Marko Luukkainen [Tue, 10 Nov 2020 15:58:24 +0000 (17:58 +0200)]
SCLScenegraph: Use diagram resource as a prefix for generated IDs.

gitlab #641

Change-Id: I07c0aa70f3023a34fdbacb6a1ca6e70bd37d23c0

3 years agoMerge "Support VirtualGraph in GraphToDiagramSynchronizer and DiagramSGProvider"...
Marko Luukkainen [Mon, 9 Nov 2020 17:04:00 +0000 (17:04 +0000)]
Merge "Support VirtualGraph in GraphToDiagramSynchronizer and DiagramSGProvider" into release/1.43.1

3 years agoSupport VirtualGraph in GraphToDiagramSynchronizer and DiagramSGProvider 09/4609/1
Marko Luukkainen [Mon, 9 Nov 2020 16:59:18 +0000 (18:59 +0200)]
Support VirtualGraph in GraphToDiagramSynchronizer and DiagramSGProvider

gitlab #640

Change-Id: I6763bb7d27a1dc430d1823fff97dba56b7ef1c91

3 years agoCheck for property tab contribution change. 60/4560/1
Marko Luukkainen [Wed, 28 Oct 2020 10:10:36 +0000 (12:10 +0200)]
Check for property tab contribution change.

gitlab #631

Change-Id: I08d2a156728298410639d236f5833c05d0ba0d9e
(cherry picked from commit d613530ca19459bcc8a75015ec28533968b92c2d)

3 years agoscl.development.ui requires visibility to scl.ui plugin. 73/4573/1
Marko Luukkainen [Wed, 21 Oct 2020 15:06:56 +0000 (18:06 +0300)]
scl.development.ui requires visibility to scl.ui plugin.

gitlab #627

Change-Id: I970e8d4e2bd780fe6d62ddc892d9608a81301a06

3 years agoMerge "Split scl.ui plugin." into release/1.43.1
Marko Luukkainen [Wed, 21 Oct 2020 12:32:37 +0000 (12:32 +0000)]
Merge "Split scl.ui plugin." into release/1.43.1

3 years agoSplit scl.ui plugin. 52/4552/1
Marko Luukkainen [Wed, 21 Oct 2020 12:27:11 +0000 (15:27 +0300)]
Split scl.ui plugin.

Moved SCL Issues, Module Browser and SCL Development perspective to a
separate scl.ui.development plugin. Added new scl.ui.development.
feature.

gitlab #627
Change-Id: I60c937aedca10522ceeb886091a82d403fafe6a8

3 years agoMerge "Modified OpenWith for further customization." into release/1.43.1
Marko Luukkainen [Tue, 20 Oct 2020 13:39:13 +0000 (13:39 +0000)]
Merge "Modified OpenWith for further customization." into release/1.43.1

3 years agoModified OpenWith for further customization. 48/4548/1
Marko Luukkainen [Tue, 20 Oct 2020 13:30:50 +0000 (16:30 +0300)]
Modified OpenWith for further customization.

gitlab #624

Change-Id: I186c49de0590f4832e7f6337505001db81c057bf

3 years agoMerge "Allow OpenWithMenuContribution to filter out currently active editor." into...
Marko Luukkainen [Fri, 16 Oct 2020 13:30:34 +0000 (13:30 +0000)]
Merge "Allow OpenWithMenuContribution to filter out currently active editor." into release/1.43.1

3 years agoAllow OpenWithMenuContribution to filter out currently active editor. 45/4545/1
Marko Luukkainen [Fri, 16 Oct 2020 13:22:10 +0000 (16:22 +0300)]
Allow OpenWithMenuContribution to filter out currently active editor.

Using o.s.ui.contribution.OpenWithMenuContribution:activeEditorId in
dynamic menuContrubution class reference activates active editor
filtering. Existing OpenWith menu contributions are not affected.

Several editor adapters now return null as editorId, thus they cannot be
filtered. This should dot be a problem, since the editors most likely do
not use OpenWith menu.

gitlab #624

Change-Id: I3adc13163ac74c5e1841842ef6b958084288202f

3 years agoFixed multiple issues causing dangling references to discarded queries 88/4488/1
Jussi Koskela [Wed, 2 Sep 2020 09:17:31 +0000 (12:17 +0300)]
Fixed multiple issues causing dangling references to discarded queries

gitlab #594

Change-Id: Ia32190681ff551edfe6b56151c4fcb03349454ba
(cherry picked from commit beffc2723bcc9b4219fc0b915f27542b0c159af9)

3 years agoGuard graph SCL module compilation 82/4482/1
Antti Villberg [Tue, 6 Oct 2020 13:51:28 +0000 (16:51 +0300)]
Guard graph SCL module compilation

gitlab #616

Change-Id: I882a5414884f1838710ae02c80e153399dc38b9f

3 years agoAllow ExternalReadEntry.compute to continue graph handling 22/4522/1
jsimomaa [Mon, 5 Oct 2020 20:11:39 +0000 (23:11 +0300)]
Allow ExternalReadEntry.compute to continue graph handling

This is a bit hazard as ExternalReads should not fiddle with ThreadLocal
graphs (e.g. SCLContext.getCurrent().get("graph")

gitlab #5

Change-Id: I833113eda418fab9ae5ff4b247a7fa09469ad921

3 years agoMerge "Set RouteLine.setLocation() as public method" into release/1.43.1
Marko Luukkainen [Mon, 5 Oct 2020 13:10:54 +0000 (13:10 +0000)]
Merge "Set RouteLine.setLocation() as public method" into release/1.43.1

3 years agoSet RouteLine.setLocation() as public method 19/4519/1
Marko Luukkainen [Mon, 5 Oct 2020 13:03:46 +0000 (16:03 +0300)]
Set RouteLine.setLocation() as public method

gitlab #615

Change-Id: Ieccb5725c22fbf7cabd5cd4a518d782e74ab1f6f

3 years agoMerge "Add more debug for AsyncBarrierImpl" into release/1.43.1
Jani Simomaa [Fri, 2 Oct 2020 09:53:20 +0000 (09:53 +0000)]
Merge "Add more debug for AsyncBarrierImpl" into release/1.43.1

3 years agoAdd more debug for AsyncBarrierImpl 16/4516/1
jsimomaa [Fri, 2 Oct 2020 09:46:07 +0000 (12:46 +0300)]
Add more debug for AsyncBarrierImpl

gitlab #5

Change-Id: I18300d27f6da7782335392a12f099eff1616001e

3 years agoDon't create degenerated transient RouteLines to RouteGraph 80/4480/1
Jussi Koskela [Wed, 11 Mar 2020 13:35:51 +0000 (15:35 +0200)]
Don't create degenerated transient RouteLines to RouteGraph

This change addresses the trivial cases. If multiple bends are required
we still get degenerated lines if the terminal is at the corner of the
bounds.

gitlab #495

Change-Id: Iac5d139ba805955c38d4b4e4906eda4795871a66
(cherry picked from commit 1aedad590d55facc132e458a578064300bac833c)

3 years agoApply profile style only for added / removed items 79/4479/1
Jussi Koskela [Tue, 15 Sep 2020 12:30:31 +0000 (15:30 +0300)]
Apply profile style only for added / removed items

gitlab #605

Change-Id: Ic94aed406c05afef5fc1caf92d1efd39571fcd57

3 years agoUse TextNode implementation for TextElementHandler bounds calculation 13/4513/1
Marko Luukkainen [Fri, 25 Sep 2020 13:44:48 +0000 (16:44 +0300)]
Use TextNode implementation for TextElementHandler bounds calculation

gitlab #612

Change-Id: I9ff4ea60513fb984e8988681a59f38959e4c4164

3 years agoConfigurable connection crossing styles 74/4474/1
Jussi Koskela [Tue, 7 Apr 2020 09:26:23 +0000 (12:26 +0300)]
Configurable connection crossing styles

gitlab #515

Change-Id: I859ce915743c13c37be9ca13cdb0c71a2f077d87
(cherry picked from commit 8ded56d0a440f78cbf649b1e59b8a464e8650fdc)

3 years agoChange G2D.Color specification to RGBA (was BGRA) 58/4458/2
Marko Luukkainen [Wed, 16 Sep 2020 15:44:10 +0000 (18:44 +0300)]
Change G2D.Color specification to RGBA (was BGRA)

Pretty much all the implementation assumes RGBA.

Connection colors defined in ontologies must be fixed.

gitlab #606

Change-Id: I62fa43c62421db66e6e18b34202be0ced0be6a24

3 years agoAdd possibility to bookkeep barrier tracing with env var 39/4439/1
jsimomaa [Thu, 10 Sep 2020 14:03:02 +0000 (17:03 +0300)]
Add possibility to bookkeep barrier tracing with env var

gitlab #5

Change-Id: Id063d21abd0a7ed58e2b2144a10ad9e8a48bb14e

3 years agoAn attempt to escape generated SVG content. 22/4422/1
Marko Luukkainen [Thu, 3 Sep 2020 10:09:27 +0000 (13:09 +0300)]
An attempt to escape generated SVG content.

gitlab #596

Change-Id: I11cf5d5836de9b7eb80311c93bd1bfa9ee9705a9

3 years agoOpening external editor for GraphFile did not take account data updates. 21/4421/1
Marko Luukkainen [Thu, 3 Sep 2020 06:41:37 +0000 (09:41 +0300)]
Opening external editor for GraphFile did not take account data updates.

gitlab #595

Change-Id: I700a33abfa2528e60edee479da4d2ae8e398f990

3 years agoIntroduce DebuggerCanvasProxy to avoid compile time AWT toolkit init 11/4411/2
Tuukka Lehtonen [Mon, 31 Aug 2020 11:06:16 +0000 (14:06 +0300)]
Introduce DebuggerCanvasProxy to avoid compile time AWT toolkit init

gitlab #593

Change-Id: Ie625f8bc7becbce47f7d035ba6f73eec0ba5566c

3 years agoDisable command based synchronization from RouteGraph Connections 06/4406/1
Marko Luukkainen [Thu, 27 Aug 2020 10:04:48 +0000 (13:04 +0300)]
Disable command based synchronization from RouteGraph Connections

In cases, where command based synchronization is required, use
DIA.CommandBasedSynchronization tag in connection type or instance.

gitlab #591

Change-Id: I52450c64a68bd669e4ea9eed0baf5734098a8768

3 years agoConfigured release/1.43.1 branch for SDK builds
Marko Luukkainen [Wed, 26 Aug 2020 10:21:55 +0000 (13:21 +0300)]
Configured release/1.43.1 branch for SDK builds

gitlab #589

3 years agoFixed route graph splitting and diagram mapping race condition problem 99/4399/2 v1.43.0
Tuukka Lehtonen [Fri, 21 Aug 2020 13:06:50 +0000 (16:06 +0300)]
Fixed route graph splitting and diagram mapping race condition problem

RouteGraphConnectionSplitter.doSplit now always splits the connection so
that part #1 is always the part that stays with the existing diagram
connection and part #2 contains the entities that are moved to the newly
created route graph connection resource. Part #1 is the part where the
"output terminal" attached to the connection lies. This simplifies and
clarifies the implementation of doSplit and does not require moving
diagram mapping statements around.

Also, more importantly RouteGraphConnectionSplitter and FlagUtil changes
ensure that diagram mapping is *not* executed in FlagUtil.join, which
was the main cause of the previous corruption. Diagram mapping is only
activated once for the affected diagram(s) after everything else is
done.

gitlab #549
gitlab #586

Change-Id: Icf7479e8e111bf663f637d6909419267cfa4eec4

3 years agoFix NPE from flagTransform 98/4398/1
Tuukka Lehtonen [Fri, 21 Aug 2020 12:29:39 +0000 (15:29 +0300)]
Fix NPE from flagTransform

The bug affected loading of route graph connections about to be split in
half when attached to diagram flags at either or both ends.

The NPE caused the flag terminal position to receive identity transform
as value which is plain wrong. This in turn resulted in the splitting
position being completely wrong compared to what the user requested and
the result looking very strange.

This fixes the immediate problem but still doesn't work properly if the
flag is actually attached to a diagram template flag table. In this case
the terminal's position will be incorrectly calculated since
runtimeDiagram is null. This needs another issue.

gitlab #586

Change-Id: If09524c71c701f2c1190d0f915aafbb972c51da4

3 years agoListen to changes in page settings in DiagramSceneGraphProvider
Tuukka Lehtonen [Fri, 14 Aug 2020 08:37:58 +0000 (11:37 +0300)]
Listen to changes in page settings in DiagramSceneGraphProvider

This is needed for use cases where diagrams are transformed to SVG and
viewed through browsers.

These changes also fix PDF printing to force page border rendering off
when not fitting PDF pages to diagram content, but to diagram page size.
This avoids printing ugly black half-visible borders around diagrams
where page borders are enabled.

gitlab #563

Change-Id: I7f666dec34c650489264f3d23cbd72d5102b2f14
(cherry picked from commit 2ccc058ac6c303b64a70ad0f0c48ca501bf4aa6a)

3 years agoGet new subscription item unit value from previously stored defaults 62/4362/1
Tuukka Lehtonen [Sun, 9 Aug 2020 22:41:46 +0000 (01:41 +0300)]
Get new subscription item unit value from previously stored defaults

See ChartAndSubscriptionItemDialog:345 for why this change works.

gitlab #578

Change-Id: I737627e37551222c255b18af0e228e4134352ce2
(cherry picked from commit 25e3207c8a1aad3cbe72202750f67f0483ccb1a2)

3 years agoInherit HandleEventRequest from UnaryRequest to support request caching 61/4361/1
Tuukka Lehtonen [Mon, 3 Aug 2020 11:13:44 +0000 (14:13 +0300)]
Inherit HandleEventRequest from UnaryRequest to support request caching

gitlab #577

Change-Id: I352fff5f444c74006deb774eee8ddd762d90385c
(cherry picked from commit d96e94b9ad3de7da56fda39883aa8f0c84e38a50)

3 years agoAdd missing ValueType for G2D.Color 42/4342/1
Marko Luukkainen [Thu, 9 Jul 2020 16:36:53 +0000 (19:36 +0300)]
Add missing ValueType for G2D.Color

gitlab #575

Change-Id: I32c0311d375365f7c42c20197c7f2f919329168e

3 years agoShapeNode with separate stroke and fill paints 41/4341/1
Marko Luukkainen [Wed, 8 Jul 2020 09:42:56 +0000 (12:42 +0300)]
ShapeNode with separate stroke and fill paints

gitlab #574

Change-Id: I49c640f925a2933b9c5f36255fad38ac54e1ad67

3 years agoMethod for manually recompling a SCL Module 37/4337/1
Marko Luukkainen [Fri, 3 Jul 2020 11:05:09 +0000 (14:05 +0300)]
Method for manually recompling a SCL Module

gitlab #571

Change-Id: I4f09857cfbce03a869551e9e52430bb61792a7ad

3 years agoSimple implementation for Issues property tab 31/4331/2
Marko Luukkainen [Tue, 30 Jun 2020 08:38:34 +0000 (11:38 +0300)]
Simple implementation for Issues property tab

gitlab #567

Change-Id: If675e438e23229347c9fe5e47748ffcb7bb8fc05

3 years agoInclude component type SCL scripts in textual ontology dump
Tuukka Lehtonen [Fri, 26 Jun 2020 20:51:11 +0000 (23:51 +0300)]
Include component type SCL scripts in textual ontology dump

Also procedural component type substructure code is now dumped into the
same __contents__ file.

refs #561

(cherry picked from commit 1987d5091a213380354e22b863c6a48119faa5ad)

3 years agoAll tgs do not reference L0.ConsistsOf and L0.HasName
Antti Villberg [Mon, 6 Apr 2020 13:49:44 +0000 (16:49 +0300)]
All tgs do not reference L0.ConsistsOf and L0.HasName

gitlab #422

Change-Id: Ie4a5bae2d1f05b6787a38e376cb827610ed975cd
(cherry picked from commit 6bd970eba63ff08a122fdf819e428adaf80cfcef)

3 years agoAllow Issues and Profiles to be used on non standard diagram viewers 27/4327/2
Marko Luukkainen [Fri, 26 Jun 2020 07:49:20 +0000 (10:49 +0300)]
Allow Issues and Profiles to be used on non standard diagram viewers

As in diagram viewers that are not based on Diagramming/Modelling
ontologies.

gitlab #564

Change-Id: Ia6f4c94f76b085e0741e62a1312b2e1fd457fe86

3 years agoListen to changes in page settings 24/4324/2
Jussi Koskela [Wed, 17 Jun 2020 12:56:45 +0000 (15:56 +0300)]
Listen to changes in page settings

Also enabled the setting of KEY_DISPLAY_PAGE hint which was for some
reason disabled.

Change-Id: I8f7136adf96e806bde5aa7c99dff8ce438ba1c80

3 years agoSynchronization can now read children for multi-instantiated composites
Tuukka Lehtonen [Wed, 17 Jun 2020 09:22:52 +0000 (12:22 +0300)]
Synchronization can now read children for multi-instantiated composites

org.simantics.structural2.Functions.structuralChildDomainChildren
getVariables implementation still relied on getPossibleType(ReadGraph),
which returns null for multi-instances. The previous similar flaw was
fixed in #259.

gitlab #562

Change-Id: I55421a32310c7a55c089637faeb3186dd43a0e4b
(cherry picked from commit e89ad0dd828fd8c628288d416590b1f8ec0194ef)

3 years agoFix stupid NPE from DiagramViewerLoadJob 01/4301/1
Tuukka Lehtonen [Mon, 8 Jun 2020 17:25:20 +0000 (20:25 +0300)]
Fix stupid NPE from DiagramViewerLoadJob

gitlab #550

Change-Id: I62acd0448f5ae8519d24f060ce0475e295b8a64a

3 years agoFixed HistoryUtil.importHistoryArchive to open file in read-only mode 00/4300/1
Tuukka Lehtonen [Mon, 8 Jun 2020 17:24:14 +0000 (20:24 +0300)]
Fixed HistoryUtil.importHistoryArchive to open file in read-only mode

gitlab #551

Change-Id: Ifc915ecc9d78db492a8cd14b37f31e6c08c9a9ba

3 years agoAvoid useless reallocation of empty TreeMaps and map iterators 80/4280/1
Tuukka Lehtonen [Thu, 4 Jun 2020 22:33:16 +0000 (01:33 +0300)]
Avoid useless reallocation of empty TreeMaps and map iterators

The problem was that when the database is doing work, MainProgram.run
runs in pretty much busy loop mode and previously it was always
allocating a new TreeMap on each round and also calling Map.entrySet()
to get construct iterators for empty TreeMaps which eventually
accumulates up to somewhat signinificant amount of memory allocated.

Possibly an even more efficient way would be to have the Map be a closed
hashing hashmap instead and then sorting the data for iteration
separately.

gitlab #548

Change-Id: Ib2208dc35b270c9d682362d45f24f1fe01bb8969
(cherry picked from commit d3f7c0196ecf58b78574d8b80e1844ecb4e223d6)

3 years agoNatTable based Graph Explorer styling fixes 93/4293/1
Marko Luukkainen [Thu, 4 Jun 2020 13:11:11 +0000 (16:11 +0300)]
NatTable based Graph Explorer styling fixes

* Do not use trim for cell content.
* Use custom font for selected and hover cells.

gitlab #547

Change-Id: I6d358f829e75a9bb0fd43efdbab9f1961e079f99

3 years agoChanged SCLTypeUtils to not log warnings for non-property relations 75/4275/1
Tuukka Lehtonen [Wed, 3 Jun 2020 09:40:35 +0000 (12:40 +0300)]
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
(cherry picked from commit b055bfb36cca301ceed0591028d245e152c8c32d)

3 years agoContextual adapters must throw instead of returning null 52/4252/1
Tuukka Lehtonen [Mon, 1 Jun 2020 15:11:13 +0000 (18:11 +0300)]
Contextual adapters must throw instead of returning null

gitlab #540

Change-Id: I98cb667afcc6e54d41afc6c0a25051c5ee7b49b3
(cherry picked from commit 4e8f62e4f5a8da113ee576a856b18274ca2a472f)

3 years agoAdded identity-providing constructor for IconButtonStyleBase 51/4251/1
Tuukka Lehtonen [Mon, 1 Jun 2020 05:47:33 +0000 (08:47 +0300)]
Added identity-providing constructor for IconButtonStyleBase

This is needed to support proper implementation of styles inheriting
IconButtonStyleBase. Otherwise query identities of the mentioned class
fall back to getClass which does not work in general.

gitlab #544

Change-Id: I7bfea53b1ce23e644da03ada3cb027fd34a4780a
(cherry picked from commit 9588536ba156584e804329920ae85563e6ef0984)

3 years agoMerge "Set initial priority for GroupStyleProfileEntry" into release/1.43.0
Tuukka Lehtonen [Fri, 29 May 2020 13:19:54 +0000 (13:19 +0000)]
Merge "Set initial priority for GroupStyleProfileEntry" into release/1.43.0

3 years agoSet initial priority for GroupStyleProfileEntry 60/4260/1
Tuukka Lehtonen [Fri, 29 May 2020 11:39:05 +0000 (14:39 +0300)]
Set initial priority for GroupStyleProfileEntry

This ensures correct ordering of profile monitor text stacks

gitlab #543

Change-Id: Iaabc59674f6fb51bd1cb0fd77e224b8da6f9454d