simantics/platform.git
7 weeks agoFixed multiple issues causing dangling references to discarded queries 19/4419/4 master
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: Iaa6b12f60d7dfa2bbcbc9614ef837973885586cc

7 weeks agoApply profile style only for added / removed items 56/4456/2
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

7 weeks agoGuard graph SCL module compilation 23/4523/2
Antti Villberg [Tue, 6 Oct 2020 13:51:28 +0000 (16:51 +0300)]
Guard graph SCL module compilation

gitlab #616

Change-Id: I882a5414884f1838710ae02c80e153399dc38b9f

7 weeks agoNodeStructureRequest and NodeValueRequest fire ExternalRead twice 24/4524/2
Antti Villberg [Tue, 6 Oct 2020 14:05:24 +0000 (17:05 +0300)]
NodeStructureRequest and NodeValueRequest fire ExternalRead twice

gitlab #617

Change-Id: Id424c9254e1d80fdd26665fcbbbc9080d0878d71

8 weeks agoAdd isDisposed checking to avoid unexpected NPE
Tuukka Lehtonen [Wed, 30 Sep 2020 05:41:03 +0000 (08:41 +0300)]
Add isDisposed checking to avoid unexpected NPE

In this case ctx.getContentContext() would return null when the canvas
context was already disposed.

gitlab #614

(cherry picked from commit 930da66f9b2d7d1acba3e5dc805a323933abb780)

8 weeks agoFix SymbolLibraryComposite DnD to cope also with GroupProxySymbolItems 81/4481/1
Tuukka Lehtonen [Mon, 28 Sep 2020 12:29:08 +0000 (15:29 +0300)]
Fix SymbolLibraryComposite DnD to cope also with GroupProxySymbolItems

gitlab #613

Change-Id: Ia45674fb6fe99f4dc958096d35688441f363e80e
(cherry picked from commit 1b93154e988c98b4a2be6a1492b6eabc8b0f6471)

2 months agoReplace file extension properly in FixExportedOntology
Tuukka Lehtonen [Thu, 24 Sep 2020 09:11:18 +0000 (12:11 +0300)]
Replace file extension properly in FixExportedOntology

gitlab #609

2 months agoRemove apparent LOGGER.info used for transient debugging
Tuukka Lehtonen [Thu, 24 Sep 2020 07:35:51 +0000 (10:35 +0300)]
Remove apparent LOGGER.info used for transient debugging

gitlab #608

2 months agoFix CopyAdvisorUtil.copy2 to copy IsRelatedTo-statements left out before 59/4459/1
Tuukka Lehtonen [Thu, 17 Sep 2020 11:45:47 +0000 (14:45 +0300)]
Fix CopyAdvisorUtil.copy2 to copy IsRelatedTo-statements left out before

This implementation works so that it copies any IsRelatedTo statements
where both the subject and object have been copied during the normal
(old) copy process. The statements are marked as pending during the copy
and post-processed after everything else has been copied.

gitlab #607

Change-Id: I9170a448c127e0c7de6eae4260db5799ad7644bb

2 months agoAdded org.apache.commons.csv to target definition 68/4368/3
Reino Ruusu [Thu, 10 Sep 2020 14:18:34 +0000 (17:18 +0300)]
Added org.apache.commons.csv to target definition

gitlab #602

Change-Id: Ib4de0682ad5996d5ebe2dde0998951ff25644cab

2 months agoUpdate license.html to better match current 3rd party components
Tuukka Lehtonen [Mon, 7 Sep 2020 13:34:21 +0000 (16:34 +0300)]
Update license.html to better match current 3rd party components

gitlab #598

2 months agoIntroduce DebuggerCanvasProxy to avoid compile time AWT toolkit init 67/4367/1
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
(cherry picked from commit c8112ea7b21b56ef632d80765a7f4d113a7d3468)

3 months agoMerge "Add utility class org.simantics.modeling.help.HelpContexts"
Tuukka Lehtonen [Wed, 26 Aug 2020 07:09:23 +0000 (07:09 +0000)]
Merge "Add utility class org.simantics.modeling.help.HelpContexts"

3 months agoAdd utility class org.simantics.modeling.help.HelpContexts 05/4405/1
Tuukka Lehtonen [Wed, 26 Aug 2020 06:59:48 +0000 (09:59 +0300)]
Add utility class org.simantics.modeling.help.HelpContexts

The new class gathers headless code related to reading help context ids
from the database that was previously crammed into a very illogical
package org.simantics.modeling.ui.modelBrowser.handlers.

gitlab #588

Change-Id: I4cbc00919d2dfef50a779ccee7f31eeb6d61eee5

3 months agoFixed route graph splitting and diagram mapping race condition problem 64/4364/1
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
(cherry picked from commit cc78488e2230fea07726acb86db3c7dd245b39ce)

3 months agoFix NPE from flagTransform 63/4363/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
(cherry picked from commit 2526602db10c29f0c30c4a3cffaf33012d9c4a0e)

3 months agoListen to changes in page settings in DiagramSceneGraphProvider 80/4380/1
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

3 months agoRemoved unnecessary dependencies on org.apache.log4j 79/4379/1
Tuukka Lehtonen [Fri, 14 Aug 2020 08:22:48 +0000 (11:22 +0300)]
Removed unnecessary dependencies on org.apache.log4j

gitlab #579

Change-Id: If0496edc82f46b3d49c30240bf0ba978324714de

3 months agoGet new subscription item unit value from previously stored defaults 73/4373/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

3 months agoInherit HandleEventRequest from UnaryRequest to support request caching 52/4352/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

4 months agoDB query swapping to file system 60/4360/1
Antti Villberg [Mon, 6 Jul 2020 16:33:19 +0000 (19:33 +0300)]
DB query swapping to file system

gitlab #572

Change-Id: I3609ab9207fd01710aeb7c00debae259d1dc08c3
(cherry picked from commit 51cf547b475df8309ca0207c35f97fda0d26abd0)

4 months agoMerge "ShapeNode with separate stroke and fill paints"
Tuukka Lehtonen [Sat, 11 Jul 2020 13:19:12 +0000 (13:19 +0000)]
Merge "ShapeNode with separate stroke and fill paints"

4 months agoAdd missing ValueType for G2D.Color 55/4355/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
(cherry picked from commit aae726bded7290935c256796fc87921f63787083)

4 months agoShapeNode with separate stroke and fill paints 54/4354/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
(cherry picked from commit f1e832f8b1172fd6370ae37f34461823f03adaa8)

4 months agoMethod for manually recompling a SCL Module 53/4353/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
(cherry picked from commit 64a47f48bceb4683c6e0d96924e1404ae5ddff9b)

4 months agoSimple implementation for Issues property tab 92/4292/1
Marko Luukkainen [Tue, 30 Jun 2020 08:38:34 +0000 (11:38 +0300)]
Simple implementation for Issues property tab

gitlab #567

Change-Id: If675e438e23229347c9fe5e47748ffcb7bb8fc05
(cherry picked from commit f64c5fbbb51c58e122a67299c67494af573c1104)

5 months 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

5 months agoAllow Issues and Profiles to be used on non standard diagram viewers 89/4289/1
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
(cherry picked from commit e08dd487037529baf1d6f873c09564133d53f51c)

5 months agoImprove IDE setup instructions based on problems encountered
Tuukka Lehtonen [Thu, 25 Jun 2020 07:54:43 +0000 (10:54 +0300)]
Improve IDE setup instructions based on problems encountered

The Java compiler compliance setting is completely separate
from the Installed JRE's setting and must be set as well to
have the platform working.

Change-Id: I1af2185293cc86c8a8960e56c1d7189ecc0fec2f

5 months agoFix non-compiling ReadGraphImpl.hasStatement implementation
Tuukka Lehtonen [Wed, 17 Jun 2020 22:17:11 +0000 (01:17 +0300)]
Fix non-compiling ReadGraphImpl.hasStatement implementation

The commit picked from release/1.35.3-sulca wasn't directly intended for
master branch.

Amendment to 638ce7e010a6292fedc677de18173676db305881

5 months agoAdded transient caching for BrowseContext construction
Tuukka Lehtonen [Wed, 10 Jun 2020 18:36:36 +0000 (21:36 +0300)]
Added transient caching for BrowseContext construction

This helps avoid some cost of repetitive recomputation of BrowseContext
ChildContribution and VisualsContribution structures.

gitlab #557

Change-Id: I1281c89a7f1b9563e3bf36cc4b51650a7ee9af84
(cherry picked from commit 7ff29c2c126d7f7cd4ca45f216acca7290d9409a)

5 months agoMerge "NatTable based Graph Explorer styling fixes"
Tuukka Lehtonen [Wed, 17 Jun 2020 21:01:10 +0000 (21:01 +0000)]
Merge "NatTable based Graph Explorer styling fixes"

5 months agoMerge "Optimize ReadGraph.hasStatements(s,p) to not use getObjects(s,p)" into master
Tuukka Lehtonen [Wed, 17 Jun 2020 20:57:03 +0000 (23:57 +0300)]
Merge "Optimize ReadGraph.hasStatements(s,p) to not use getObjects(s,p)" into master

Change-Id: I9ae1118fc2473af570d6ec4bd37610a321d28496

5 months agoOptimize ReadGraph.hasStatements(s,p) to not use getObjects(s,p)
Tuukka Lehtonen [Wed, 10 Jun 2020 18:41:27 +0000 (21:41 +0300)]
Optimize ReadGraph.hasStatements(s,p) to not use getObjects(s,p)

Depending on the predicate asked for, hasStatements(s,p) can be
optimized to not realize the entire [object] result list created by
getObjects(s,p).

gitlab #558

Change-Id: I7be1d2000396ce6c1e4595cabaafef5db4224de9
(cherry picked from commit ac990d10ff2d1d1042a68f0594489aed23a27453)

5 months agoStart of AdapterRegistry2 internal query caching.
Tuukka Lehtonen [Wed, 10 Jun 2020 18:16:51 +0000 (21:16 +0300)]
Start of AdapterRegistry2 internal query caching.

Doesn't do anything yet, more for safekeeping.

gitlab #555

Change-Id: I9d72ee72ac6ecf32353f367b235461e79fa70d14
(cherry picked from commit 67c59e5e66ba411e770545a6137b13fe3de60aab)

5 months agoMerge "Fixed bug in cluster collection logic that caused it to not operate"
Tuukka Lehtonen [Wed, 17 Jun 2020 13:07:40 +0000 (13:07 +0000)]
Merge "Fixed bug in cluster collection logic that caused it to not operate"

5 months agoSynchronization can now read children for multi-instantiated composites 23/4323/1
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

5 months agoFixed bug in cluster collection logic that caused it to not operate 86/4286/1
Tuukka Lehtonen [Wed, 10 Jun 2020 18:43:29 +0000 (21:43 +0300)]
Fixed bug in cluster collection logic that caused it to not operate

In case the first encountered resident cluster happened to be large
enough to cover the requested cluster collection size, the code would
collect no clusters at all.

Also contains improvements to dynamic cluster collection.

gitlab #556

Change-Id: I75773c688a4fec75d303493ca861c9a73071deac

5 months agoOption to copy diagram selection to clipboard as SVG graphics 04/4304/1
Jussi Koskela [Wed, 10 Jun 2020 11:03:12 +0000 (14:03 +0300)]
Option to copy diagram selection to clipboard as SVG graphics

The feature can be enabled on UI e.g. by adding a menu contribution to
context menu with commandId "copyAsSVG".

gitlab #554

Change-Id: Ide7022b684232639bea1a32553b01933fe6f4002

5 months agoPropagate ignoreNulls parameter recursively in bounds calculation 03/4303/1
Jussi Koskela [Wed, 10 Jun 2020 10:51:55 +0000 (13:51 +0300)]
Propagate ignoreNulls parameter recursively in bounds calculation

Change-Id: Iea4cc6b2da17967944d0f67fc8da362c579d70a6

5 months agoignoreSTSTestAction has wrong signature 02/4302/1
Antti Villberg [Tue, 9 Jun 2020 10:33:15 +0000 (13:33 +0300)]
ignoreSTSTestAction has wrong signature

gitlab #552

Change-Id: I0463972dc0089f833e615f12991c4c28c6dee463

5 months agoFix stupid NPE from DiagramViewerLoadJob 85/4285/1
Tuukka Lehtonen [Mon, 8 Jun 2020 17:25:20 +0000 (20:25 +0300)]
Fix stupid NPE from DiagramViewerLoadJob

gitlab #550

Change-Id: I62acd0448f5ae8519d24f060ce0475e295b8a64a
(cherry picked from commit 291073d664e133feb7befd845f08f35502d92292)

5 months agoFixed HistoryUtil.importHistoryArchive to open file in read-only mode 84/4284/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
(cherry picked from commit 06d9d4c83f447b3b7c4712a4a441871ced1af3ac)

5 months agoAvoid useless reallocation of empty TreeMaps and map iterators 94/4294/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

5 months agoNatTable based Graph Explorer styling fixes 79/4279/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
(cherry picked from commit d162802f90f0d913d53c0244505a023b6c0f08cd)

5 months agoChanged SCLTypeUtils to not log warnings for non-property relations 68/4268/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

5 months agoContextual adapters must throw instead of returning null 62/4262/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

5 months agoAdded identity-providing constructor for IconButtonStyleBase 61/4261/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

6 months agoSet initial priority for GroupStyleProfileEntry 50/4250/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
(cherry picked from commit 24bc1bb36da76bf82768b33c2aa07fe2a0324461)

6 months agoAdded system property for controlling writing of MOD.changed tags 59/4259/2
Tuukka Lehtonen [Thu, 28 May 2020 19:15:22 +0000 (22:15 +0300)]
Added system property for controlling writing of MOD.changed tags

You can set -Dorg.simantics.modeling.writeChangedTags=false to disable
writing of MOD.changed tags. The property can be set dynamically at
runtime also.

gitlab #428

Change-Id: I4867c1742b62d2a4a449d5f98a115e4ce36e0257

6 months agoWorkaround for query cache returning Exceptions instead of throwing them 48/4248/1
Marko Luukkainen [Thu, 28 May 2020 07:30:11 +0000 (10:30 +0300)]
Workaround for query cache returning Exceptions instead of throwing them

gitlab #540

Change-Id: Ia43c3827b4ed16f02f038f4782894852b5c266d9
(cherry picked from commit 549142b0107e4a73d557fc4fc777e6ab77469625)

6 months agoMerge "Counting of pending nodes does not work if null text is saved as """
Tuukka Lehtonen [Tue, 26 May 2020 10:33:48 +0000 (10:33 +0000)]
Merge "Counting of pending nodes does not work if null text is saved as """

6 months agoUse element transform when doing pick check 45/4245/1
Marko Luukkainen [Wed, 20 May 2020 13:47:51 +0000 (16:47 +0300)]
Use element transform when doing pick check

gitlab #537

Change-Id: I5fc0d21ce99daca3aa0db210f86382db74fba155
(cherry picked from commit 995f91f4eb4feac37fbee766fb2b16f8d919c5e3)

6 months agoCounting of pending nodes does not work if null text is saved as "" 53/4253/1
Jussi Koskela [Wed, 20 May 2020 05:15:42 +0000 (08:15 +0300)]
Counting of pending nodes does not work if null text is saved as ""

gitlab #535

Change-Id: Ia4e8a0389659ce115d9cfb8febc23be0061fe3be

6 months agoFix change comparison expressions in mapping rules 44/4244/1
Reino Ruusu [Tue, 19 May 2020 11:01:21 +0000 (14:01 +0300)]
Fix change comparison expressions in mapping rules

gitlab #534

Change-Id: Ib82f78be739e172b77c0499f034b8180ecc9e779
(cherry picked from commit ef0aeadaa15a3655c7f2a3b4377ad62b26e186e3)

6 months agoHandle all AttributeRelation properties 22/4222/1
Antti Villberg [Sun, 10 May 2020 07:26:37 +0000 (10:26 +0300)]
Handle all AttributeRelation properties

gitlab #128

Change-Id: I62926e825fdef2e6ccced6805cac1e13012c0d3b

6 months agoFix GetComponentLocation to work with procedural UC instances 20/4220/1
Tuukka Lehtonen [Thu, 7 May 2020 20:32:43 +0000 (23:32 +0300)]
Fix GetComponentLocation to work with procedural UC instances

Previously it would return ComponentLocation.isInsideStructure = false
for Variables representing the insides of a procedural UC instance.

gitlab #532

Change-Id: I26ae30c8e4217e7c4cde03b884604ee59aa7e85b

6 months agoReplace scheduleAtFixedRate with scheduleWithFixedDelay 19/4219/1
Tuukka Lehtonen [Thu, 7 May 2020 20:29:12 +0000 (23:29 +0300)]
Replace scheduleAtFixedRate with scheduleWithFixedDelay

ScheduledExecutorService.scheduleAtFixedRate tends to run enormous
amounts of runnables that would have been scheduled during a machine is
in sleep, after the machines wakes up from sleep, retroactively.

This is not good and can be avoided by using scheduleWithFixedDelay
which is usually good enough regarding the delay between executions.

gitlab #531

Change-Id: I4ac3b11f1f9236d411debb352fce610c33410659

6 months agoInclude org.simantics.graphfile.ui{,.ontology} in org.simantics.platform.ui feature
Tuukka Lehtonen [Tue, 5 May 2020 12:49:49 +0000 (15:49 +0300)]
Include org.simantics.graphfile.ui{,.ontology} in org.simantics.platform.ui feature

gitlab #516

Change-Id: I8860d684ee67c86159cb7e5fa33c6a061e0efc7a

7 months agoFixed CSVFormatter mind floating point inaccuracy when resampling
Tuukka Lehtonen [Wed, 29 Apr 2020 21:55:09 +0000 (00:55 +0300)]
Fixed CSVFormatter mind floating point inaccuracy when resampling

These changes prevent the resampling export mode from dropping samples
that have timestamps closer than 1e-13 sec to the last exported sample
time stamp.

gitlab #529

7 months agoDocument recommended Eclipse IDE setup in root README.md
Tuukka Lehtonen [Wed, 29 Apr 2020 20:48:51 +0000 (23:48 +0300)]
Document recommended Eclipse IDE setup in root README.md

gitlab #524

Change-Id: I27a3596169117f5a32c522089de5bc394b0ea557

7 months agoFixed subscription item data file searching to use groupItemId as well 95/4195/1
Tuukka Lehtonen [Tue, 28 Apr 2020 08:49:44 +0000 (11:49 +0300)]
Fixed subscription item data file searching to use groupItemId as well

This fixes problems where subscription item data CSV export used the
wrong data files to read the data related to the subscription item
because it wasn't matching the data file based on both groupItemId
(subscription item GUID name) and variable ID, which can be overlapping
if a new subscription item is created for a variable that has had a
previous subscription.

gitlab #528

Change-Id: If1ddef78e4b152cf6721f82afc21b37ec5fbb074

7 months agoMerge "Use RuntimeEnvironmentRequest2 where applicable"
Tuukka Lehtonen [Tue, 28 Apr 2020 07:28:15 +0000 (07:28 +0000)]
Merge "Use RuntimeEnvironmentRequest2 where applicable"

7 months agoRemoved settings.xml as unnecessary.
Tuukka Lehtonen [Mon, 27 Apr 2020 17:13:22 +0000 (20:13 +0300)]
Removed settings.xml as unnecessary.

Change-Id: I7192aa6186a0f6cc5e304a25d9450db6e99bd65f

7 months agoUse RuntimeEnvironmentRequest2 where applicable 94/4194/2
Tuukka Lehtonen [Sun, 26 Apr 2020 20:21:09 +0000 (23:21 +0300)]
Use RuntimeEnvironmentRequest2 where applicable

This allows e.g. procedural user component substructure expressions to
use SCL functionality included by the user component's local SCL modules
instead of only having to rely on functionality included by the SCLMain
at the containing index root.

gitlab #527

Change-Id: I7bcb22910737851771f2be54aafecd7480d1c81b

7 months agoUC SCL script/procedural code editors respect L0.readOnly
Tuukka Lehtonen [Fri, 24 Apr 2020 17:34:14 +0000 (20:34 +0300)]
UC SCL script/procedural code editors respect L0.readOnly

Marking the input resource with L0.readOnly now makes the editors
consider the input immutable in the document provider.

gitlab #526

7 months agoStructuralUtils.isImmutable now takes L0.readOnly of input into account
Tuukka Lehtonen [Fri, 24 Apr 2020 17:09:02 +0000 (20:09 +0300)]
StructuralUtils.isImmutable now takes L0.readOnly of input into account

Introduced new utility method Layer0Utils.isMarkedReadOnly for easy
checking L0.readOnly value of a Resource.

gitlab #525

7 months agoMove platform to only work with JDK's >= 11 52/4152/8
Tuukka Lehtonen [Mon, 20 Apr 2020 10:27:48 +0000 (13:27 +0300)]
Move platform to only work with JDK's >= 11

* Several javax-prefixed packages are being removed from JDK (such as
javax.xml.bind) and one has to provide javax.packages via new
jakarta-bundles. See: http://openjdk.java.net/jeps/320#Java-EE-modules

Java 11 is LTS and we don't want to require anything beyond that at this
point. Next LTS will be 17 which will be the next target.

Classes are also now compiled for Java 11.

gitlab #486
gitlab #524

Change-Id: Ib2edf9401ada203412569fadef4f092344b1c553

7 months agoAdd missing influxdb-client-core to target platform 62/4162/2
jsimomaa [Mon, 20 Apr 2020 07:11:10 +0000 (10:11 +0300)]
Add missing influxdb-client-core to target platform

gitlab #523

Change-Id: Ic8135cd8deb353baad8eae64971033bb11e9577b

7 months agoRemoved ALT+SHIFT+Q S shortcut for opening SCL Console 24/4124/1
Tuukka Lehtonen [Fri, 17 Apr 2020 22:05:13 +0000 (01:05 +0300)]
Removed ALT+SHIFT+Q S shortcut for opening SCL Console

It collides with a built-in shortcut that opens the Search view.

gitlab #521

Change-Id: Ic9aa1b2043ba013e44cade62d3fd5306a3a5f9d8
(cherry picked from commit 9d26073293397701d9de90ccd81f766314e06769)

7 months agoJersey package imports are optional, update target platform 57/4157/2
jsimomaa [Fri, 17 Apr 2020 08:04:07 +0000 (11:04 +0300)]
Jersey package imports are optional, update target platform

gitlab #486

Change-Id: I936f507570644457fd8ac7092bdacd0b0077693c

7 months agoDo not require bundles in jersey but make package imports optional 56/4156/2
jsimomaa [Thu, 16 Apr 2020 23:04:28 +0000 (02:04 +0300)]
Do not require bundles in jersey but make package imports optional

gitlab #486

Change-Id: I2ed718fe7fdd94152677db2aae688a1cb46d9247

7 months agojakarta.activation-api imports package `com.sun.activation` 55/4155/2
jsimomaa [Thu, 16 Apr 2020 22:02:15 +0000 (01:02 +0300)]
jakarta.activation-api imports package `com.sun.activation`

* This import shall be made optional as jakarta has taken over EE

gitlab #486

Change-Id: I4114e83cfab287196a4422feb124b5a8f6e85f91

7 months agoJersey bundles require jakarta.activation-api to work 54/4154/2
jsimomaa [Thu, 16 Apr 2020 21:09:22 +0000 (00:09 +0300)]
Jersey bundles require jakarta.activation-api to work

(Forgot to increment bundle version)

gitlab #486

Change-Id: I058ddf6f1139ebcff2a6660c920830c416921046

7 months agoJersey bundles require jakarta.activation-api to work 53/4153/2
jsimomaa [Thu, 16 Apr 2020 20:47:46 +0000 (23:47 +0300)]
Jersey bundles require jakarta.activation-api to work

gitlab #486

Change-Id: I889cce9c365f9f3b158fdc230aa66a213b6e39a4

7 months agoAdd jersey-hk2 bundle to target platforms 51/4151/1
jsimomaa [Thu, 16 Apr 2020 13:51:41 +0000 (16:51 +0300)]
Add jersey-hk2 bundle to target platforms

* Also using relative paths for `.tpd` inclusions for more convenient
target platform updates

gitlab #486

Change-Id: I186d4dade09e6e29a9fda5da4152e31ec8557e1a

7 months agoMerge "Improvements to styling of connection lines"
Tuukka Lehtonen [Thu, 16 Apr 2020 13:46:58 +0000 (13:46 +0000)]
Merge "Improvements to styling of connection lines"

7 months agoAdd missing jersey-hk2 bundle for InjectionManagerFactory implementation 50/4150/1
jsimomaa [Thu, 16 Apr 2020 13:37:53 +0000 (16:37 +0300)]
Add missing jersey-hk2 bundle for InjectionManagerFactory implementation

gitlab #486

Change-Id: Ice1a459bda550f19fec2e8b37d065baa9d1165d4

7 months agoMerge "SimanticsExcel interface refresh"
Tuukka Lehtonen [Thu, 16 Apr 2020 13:24:04 +0000 (13:24 +0000)]
Merge "SimanticsExcel interface refresh"

7 months agoSimanticsExcel interface refresh 49/4149/1
Antti Villberg [Mon, 6 Apr 2020 13:53:28 +0000 (16:53 +0300)]
SimanticsExcel interface refresh

gitlab #514

Change-Id: I9c205730f0cbfb8d75f88c69483155dd8cafd4b2

7 months agoAPIs for skipping state restoration for non-undo synchronization events 48/4148/2
Reino Ruusu [Thu, 16 Apr 2020 10:11:53 +0000 (13:11 +0300)]
APIs for skipping state restoration for non-undo synchronization events

gitlab #520

Change-Id: I50491d4b514db05b8854bcbefff58e7bb9c3b13e

7 months agoUpdate simantics target definitions with updated jersey bundles 46/4146/1
jsimomaa [Thu, 16 Apr 2020 09:24:40 +0000 (12:24 +0300)]
Update simantics target definitions with updated jersey bundles

gitlab #486

Change-Id: I029957cc0c6041be5afa63d192b0a638e0bf3175

7 months agoMerge "Add missing javax.servlet-api bundle requirement for jersey bundles"
Jani Simomaa [Thu, 16 Apr 2020 08:55:47 +0000 (08:55 +0000)]
Merge "Add missing javax.servlet-api bundle requirement for jersey bundles"

7 months agoAdd missing javax.servlet-api bundle requirement for jersey bundles 44/4144/1
jsimomaa [Thu, 16 Apr 2020 08:47:55 +0000 (11:47 +0300)]
Add missing javax.servlet-api bundle requirement for jersey bundles

gitlab #486

Change-Id: I0f1bffdfd5c404477d92ea895766f7d2e3a57fd7

7 months agoImprovements to styling of connection lines 38/4138/1
Jussi Koskela [Tue, 14 Apr 2020 09:41:45 +0000 (12:41 +0300)]
Improvements to styling of connection lines

gitlab #519

Change-Id: Ic08546e5aab985d6e4c365dc9877a692829b0ab2

7 months agoTake rounding field into account in equals and in hashCode 37/4137/1
Jussi Koskela [Tue, 14 Apr 2020 07:46:57 +0000 (10:46 +0300)]
Take rounding field into account in equals and in hashCode

gitlab #518

Change-Id: If96bc1da15494a6041473ee919a074bf997e2455

7 months agoRound corners between non-axis-aligned connection lines properly 36/4136/1
Jussi Koskela [Tue, 14 Apr 2020 07:37:42 +0000 (10:37 +0300)]
Round corners between non-axis-aligned connection lines properly

gitlab #517

Change-Id: I8eb1fba0ecf419834f9a830bbe2aa0fb0e8d21fd

7 months agoMove some GraphFile UI from Simupedia to platform 12/4112/3
Antti Villberg [Sat, 11 Apr 2020 17:08:19 +0000 (20:08 +0300)]
Move some GraphFile UI from Simupedia to platform

gitlab #516

Change-Id: I01793863c377c7a44ca4cf5938e850f7d91e154c

7 months agoMerge "Configurable connection crossing styles"
Tuukka Lehtonen [Fri, 10 Apr 2020 18:07:37 +0000 (18:07 +0000)]
Merge "Configurable connection crossing styles"

7 months agoExport did not manage case differences (mode vs. Mode) 11/4111/1
Antti Villberg [Fri, 10 Apr 2020 17:18:53 +0000 (20:18 +0300)]
Export did not manage case differences (mode vs. Mode)

gitlab #452

Change-Id: I8d4d8908c2dc14ac50c0d7544f7886317689098e

7 months agoConfigurable connection crossing styles 06/4106/2
Jussi Koskela [Tue, 7 Apr 2020 09:26:23 +0000 (12:26 +0300)]
Configurable connection crossing styles

gitlab #515

Change-Id: I859ce915743c13c37be9ca13cdb0c71a2f077d87

7 months agoMerge "Revert "Prime SCL BindingRegistry to shave ~0.5s from startup""
Tuukka Lehtonen [Tue, 7 Apr 2020 09:00:26 +0000 (09:00 +0000)]
Merge "Revert "Prime SCL BindingRegistry to shave ~0.5s from startup""

7 months agoRevert "Prime SCL BindingRegistry to shave ~0.5s from startup" 14/4114/2
Tuukka Lehtonen [Tue, 7 Apr 2020 08:47:50 +0000 (08:47 +0000)]
Revert "Prime SCL BindingRegistry to shave ~0.5s from startup"

This reverts commit 8f99af83cee60676d80cf2334177ab94f82b7959.

Reason for revert: Breaks selection view and other aspects about systems using Variables

gitlab #491

Change-Id: I15003096cd13d738870278dd0c922bd9d0ed4ef5

7 months agoMerge "All tgs do not reference L0.ConsistsOf and L0.HasName"
Tuukka Lehtonen [Mon, 6 Apr 2020 19:56:13 +0000 (19:56 +0000)]
Merge "All tgs do not reference L0.ConsistsOf and L0.HasName"

7 months agoHandle SelectionOutline interface implementation in SCLScenegraph 72/4072/1
Marko Luukkainen [Mon, 6 Apr 2020 13:40:26 +0000 (16:40 +0300)]
Handle SelectionOutline interface implementation in SCLScenegraph

Created custom SelectionShapeNode class for outline highlights, so that
SCLScenegraph can process outline as selection.

Change-Id: Ieeaa47618a8c94f07d9b482c9a3d77044852f2ba
(cherry picked from commit 37c78d83578e57c8bb858d51591446994405b617)

7 months agoAll tgs do not reference L0.ConsistsOf and L0.HasName 03/4103/1
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

7 months agoMerge "QueryListening sync is slow"
Tuukka Lehtonen [Mon, 6 Apr 2020 10:24:32 +0000 (10:24 +0000)]
Merge "QueryListening sync is slow"

7 months agoQueryListening sync is slow 36/4036/5
Antti Villberg [Sat, 21 Mar 2020 18:56:50 +0000 (20:56 +0200)]
QueryListening sync is slow

gitlab #503

Change-Id: Ied3aaf386094c3d52b3840d000fb9de01c9ebd03

7 months agoMerge "Support pending values in NodeManager"
Tuukka Lehtonen [Mon, 6 Apr 2020 09:12:09 +0000 (09:12 +0000)]
Merge "Support pending values in NodeManager"

7 months agoSupport pending values in NodeManager 94/4094/2
Antti Villberg [Sun, 5 Apr 2020 13:43:55 +0000 (16:43 +0300)]
Support pending values in NodeManager

gitlab #511

Change-Id: I75b309dffe494d552c442c65e672cc62c3c334ad