simantics/platform.git
6 months agoFix selectPath returning true for nodes that haven't been loaded. 37/2637/1
Marko Luukkainen [Fri, 1 Feb 2019 13:01:16 +0000 (15:01 +0200)]
Fix selectPath returning true for nodes that haven't been loaded.

gitlab #253

Change-Id: Ifdc5853e34f2c213acc6dcbffb4da3085936d60d

6 months agoRename linked list functions that are overlapping or are too generic 25/2625/1
Marko Luukkainen [Tue, 29 Jan 2019 11:06:53 +0000 (13:06 +0200)]
Rename linked list functions that are overlapping or are too generic

gitlab  #250

Change-Id: Iae2e7ffc420970cb52c85c391361f02da3be3f28

6 months agoFix document update / even better optimization of document requests 22/2622/1
Antti Villberg [Fri, 25 Jan 2019 10:26:23 +0000 (12:26 +0200)]
Fix document update / even better optimization of document requests

gitlab #249

Change-Id: I3b76b4ec8e767e974de83f4e52deba7c940b7174

6 months agoBumped master version to 1.38.0
Marko Luukkainen [Tue, 22 Jan 2019 16:13:37 +0000 (18:13 +0200)]
Bumped master version to 1.38.0

gitlab #248

6 months agoMerge "Added hashcode/equals methods to generic profile Group implementations"
Marko Luukkainen [Mon, 21 Jan 2019 10:21:04 +0000 (10:21 +0000)]
Merge "Added hashcode/equals methods to generic profile Group implementations"

6 months agoAdded hashcode/equals methods to generic profile Group implementations 09/2609/1
Marko Luukkainen [Mon, 21 Jan 2019 09:30:47 +0000 (11:30 +0200)]
Added hashcode/equals methods to generic profile Group implementations

gitlab #247

Change-Id: I16603a738c7a43847a38e6007cd72cfcc268afd1

7 months agoIgnore vaading designer preference files 97/2597/1
Miro Richard Eklund [Fri, 18 Jan 2019 10:20:06 +0000 (12:20 +0200)]
Ignore vaading designer preference files

Added to .gitignore com.vaadin.designer.prefs

gitlab #246

Change-Id: I20d6ddcc9f3abdf628beb0a709cd5ed389e57cb6

7 months agoMerge "General event listening interface for DB and purge events."
Marko Luukkainen [Thu, 17 Jan 2019 15:03:28 +0000 (15:03 +0000)]
Merge "General event listening interface for DB and purge events."

7 months agoGeneral event listening interface for DB and purge events. 95/2595/2
Marko Luukkainen [Thu, 17 Jan 2019 14:27:55 +0000 (16:27 +0200)]
General event listening interface for DB and purge events.

gitlab #245

Change-Id: Icdceaba3f8848751a24ee5aa9e1888b2540f0c73

7 months agoMerge "Fixed escaping in semiautomatic linking of shared libraries dialog"
Tuukka Lehtonen [Mon, 14 Jan 2019 11:32:35 +0000 (11:32 +0000)]
Merge "Fixed escaping in semiautomatic linking of shared libraries dialog"

7 months agoMerge "Remove unnecessary getComparableKey from HashMapBinding"
Marko Luukkainen [Mon, 7 Jan 2019 07:40:42 +0000 (07:40 +0000)]
Merge "Remove unnecessary getComparableKey from HashMapBinding"

7 months agoAdded addFirst/After/Before + remove SCL functions for Ordered Sets 92/2592/1
Marko Luukkainen [Fri, 4 Jan 2019 15:06:34 +0000 (17:06 +0200)]
Added addFirst/After/Before + remove SCL functions for Ordered Sets

gitlab #244

Change-Id: I40f921dc2f8cacf34692a0733ef6080e2d048eb7

7 months agoFixed escaping in semiautomatic linking of shared libraries dialog 91/2591/1
Jussi Koskela [Thu, 3 Jan 2019 10:50:38 +0000 (12:50 +0200)]
Fixed escaping in semiautomatic linking of shared libraries dialog

gitlab #215

Change-Id: Iaa135ff44179edb1177d8e8c6b0a89c7aa4b5c8a

7 months agoQueryCaching broke DiagramViewer 90/2590/1
Marko Luukkainen [Wed, 2 Jan 2019 15:29:22 +0000 (17:29 +0200)]
QueryCaching broke DiagramViewer

gitlab #5

Change-Id: I510bdb56e57d6ff5dd17e72683f21265a5d91f22

7 months agoImportPdfReader now implements Closeable 89/2589/1
Tuukka Lehtonen [Mon, 31 Dec 2018 13:36:49 +0000 (15:36 +0200)]
ImportPdfReader now implements Closeable

gitlab #243

Change-Id: I1d422e6c4103a4836210d15648ad47785fbe3972

7 months agoCache PropertyInfoRequests in getStandardChildDomainPropertyVariables 84/2584/2
jsimomaa [Mon, 24 Dec 2018 21:03:31 +0000 (23:03 +0200)]
Cache PropertyInfoRequests in getStandardChildDomainPropertyVariables

gitlab #5

Change-Id: Ia893c931bcab5adfb30d60d0caf109046f36e68a

7 months agoUse query caching previous to multi-query-thread to retain performance 81/2581/2
jsimomaa [Fri, 21 Dec 2018 13:33:19 +0000 (15:33 +0200)]
Use query caching previous to multi-query-thread to retain performance

gitlab #5

Change-Id: I5ea3de8d088ad97d465ae67521fe107a60c8258a

8 months agoDon't run branch in branch-release if branch is not given
Tuukka Lehtonen [Wed, 19 Dec 2018 09:13:51 +0000 (11:13 +0200)]
Don't run branch in branch-release if branch is not given

Change-Id: I033d3bbf3d75330b40f4c3185fa6e1eb968c5936

8 months agoAdd missing relation field when computing hashCode/equals 68/2568/2
jsimomaa [Wed, 19 Dec 2018 06:39:11 +0000 (08:39 +0200)]
Add missing relation field when computing hashCode/equals

gitlab #239

Change-Id: Ie263a1183a2141a9257972698f4d849e181ff723

8 months agoRemove unnecessary getComparableKey from HashMapBinding 65/2565/2
jsimomaa [Tue, 18 Dec 2018 13:52:49 +0000 (15:52 +0200)]
Remove unnecessary getComparableKey from HashMapBinding

This speeds up loading e.g. 60MB mapping file from 32s to 2s

gitlab #241

Change-Id: I14a4f6d4998c61f88a7d7798947e70ce041a4f1f

8 months agoFixed database request threading issue in FlagUtil.join 67/2567/1
Tuukka Lehtonen [Tue, 18 Dec 2018 14:55:23 +0000 (16:55 +0200)]
Fixed database request threading issue in FlagUtil.join

gitlab #234

Change-Id: Ic97e56de1af19938e622143bf9acbe2f6154f74a

8 months agoOptimized Layer0Utils.getPossibleDefaultBinding 66/2566/1
Tuukka Lehtonen [Tue, 18 Dec 2018 14:37:39 +0000 (16:37 +0200)]
Optimized Layer0Utils.getPossibleDefaultBinding

Removed badly named datatype_binging public static field from
Layer0Utils in favor of Bindings.DATATYPE. If you were using the
previous Layer0Utils constant in some place, just replace it.

The problem in the optimized code was that it was constantly converting
SCL types like "Double", "Boolean" etc. to databoard datatypes using the
databoard type parser even though those basic primitive types should
have been already premapped somewhere to prevent the need for any kind
of parsing.

gitlab #242

Change-Id: I336d5ebb6b5dbe080372d5b7304d5608f0472297

8 months agoDo not compute replaceable type for non ReplaceableDefinedComponentTypes 64/2564/2
jsimomaa [Tue, 18 Dec 2018 13:26:44 +0000 (15:26 +0200)]
Do not compute replaceable type for non ReplaceableDefinedComponentTypes

gitlab #240

Change-Id: Ia982e16172698e855eac2845be0304363c9987f7

8 months agoAdd hashCode and equals to AbstractExpressionCompilationRequest 63/2563/2
jsimomaa [Tue, 18 Dec 2018 13:12:44 +0000 (15:12 +0200)]
Add hashCode and equals to AbstractExpressionCompilationRequest

gitlab #239

Change-Id: I33940420ee95a52d14042bd6857be4950d878dbb

8 months agoDisable flickering in ColorSelectionDialog 62/2562/2
jsimomaa [Tue, 18 Dec 2018 13:10:14 +0000 (15:10 +0200)]
Disable flickering in ColorSelectionDialog

gitlab #238

Change-Id: Ib21e8b4eb569172f96db1b463297abe12d3d061c

8 months agoResolving a variable for name that has no Resource representation fails. 58/2558/1
Marko Luukkainen [Mon, 17 Dec 2018 17:32:41 +0000 (19:32 +0200)]
Resolving a variable for name that has no Resource representation fails.

gitlab #235

Change-Id: I673f6fec7f66ae0f16179c299a0f747c4f595cec

8 months agoMerge "Implement ImageDescriptor.getImageData(int zoom)"
Tuukka Lehtonen [Fri, 14 Dec 2018 21:04:54 +0000 (21:04 +0000)]
Merge "Implement ImageDescriptor.getImageData(int zoom)"

8 months agoAdded L0.typeResource SCL type to SCLTypeUtils to prevent warning prints 51/2551/1
Tuukka Lehtonen [Fri, 14 Dec 2018 13:32:44 +0000 (15:32 +0200)]
Added L0.typeResource SCL type to SCLTypeUtils to prevent warning prints

gitlab #83

Change-Id: I811959a6ef16fa57710b67aea2f454cef1cf2206

8 months agoMerge "Truncate size of the binary file"
Tuukka Lehtonen [Thu, 13 Dec 2018 14:43:14 +0000 (14:43 +0000)]
Merge "Truncate size of the binary file"

8 months agoRevert "Usability fixes for GraphExplorerImpl -related WB selection propagation"
Tuukka Lehtonen [Thu, 13 Dec 2018 11:43:37 +0000 (13:43 +0200)]
Revert "Usability fixes for GraphExplorerImpl -related WB selection propagation"

This reverts commit 270834ce3962a4bca3945d06e642a99d21688c16.

8 months agoRevert "Fixed GraphExplorerImpl to set selection upon keyboard-based selection"
Tuukka Lehtonen [Thu, 13 Dec 2018 11:43:37 +0000 (13:43 +0200)]
Revert "Fixed GraphExplorerImpl to set selection upon keyboard-based selection"

This reverts commit 75dc26dacf421e7027e959643963af1efdf10986.

8 months agoRevert "Fire selection change events on every selection change"
Tuukka Lehtonen [Thu, 13 Dec 2018 11:43:36 +0000 (13:43 +0200)]
Revert "Fire selection change events on every selection change"

This reverts commit a8ee105b0825fcefc76b9aa967b275f418308df7.

8 months agoRevert "Fixed PropertyPageView to publish its selection to the workbench"
Tuukka Lehtonen [Thu, 13 Dec 2018 11:43:35 +0000 (13:43 +0200)]
Revert "Fixed PropertyPageView to publish its selection to the workbench"

This reverts commit 5675f72f9664c8ff275614d1ebe8a5a5d3014a98.

8 months agoTruncate size of the binary file 49/2549/2
Jussi Koskela [Thu, 13 Dec 2018 11:03:00 +0000 (13:03 +0200)]
Truncate size of the binary file

gitlab #233

Change-Id: I563e413ce2b3ecf3e1b3455221c3a3690bc31674

8 months agoTruncate big value cluster file if its size decreases 48/2548/2
Antti Villberg [Thu, 13 Dec 2018 10:34:03 +0000 (12:34 +0200)]
Truncate big value cluster file if its size decreases

gitlab #232

Change-Id: I62617e6857a150cb27d0d81a53da604577173bfe

8 months agoFixed target platform problem with missing net.jcip.annotations
Tuukka Lehtonen [Wed, 12 Dec 2018 21:03:41 +0000 (23:03 +0200)]
Fixed target platform problem with missing net.jcip.annotations

It seems that updating eclipse.collections caused
net.jcip.annotations dependency to be removed which meant
the bundle is no longer in the external dependencies P2 site.

This change adds it back in there.

gitlab #231

Change-Id: I8dcfd805351f44830d964b64a773a42fb5b41c32

8 months agoUpdate eclipse-collections to version 9.2.0 & add caffeine 45/2545/6
jsimomaa [Wed, 12 Dec 2018 14:07:40 +0000 (16:07 +0200)]
Update eclipse-collections to version 9.2.0 & add caffeine

gitlab #231

Change-Id: I7d9f767f16702d3ae40820557dff0c9d574cc9aa

8 months agoExternalize strings 26/2526/3
Tuukka Lehtonen [Thu, 6 Dec 2018 21:38:15 +0000 (23:38 +0200)]
Externalize strings

* org.simantics.fileimport.ui
* org.simantics.graphviz.ui
* org.simantics.help.ui
* org.simantics.image.ui
* org.simantics.issues.ui
* org.simantics.logging.ui
* org.simantics.message.ui
* org.simantics.migration.ui
* org.simantics.modeling.ui (unfinished, contains around 1500 strings)

gitlab #210

Change-Id: Ib408f94694481876dfbedcf81b86e607bce3f32d

8 months agoExternalize strings in org.simantics.export.ui 11/2511/2
Tuukka Lehtonen [Fri, 30 Nov 2018 15:14:46 +0000 (17:14 +0200)]
Externalize strings in org.simantics.export.ui

gitlab #210

Change-Id: I4eb50d5c00043eebac377b26a98409c9770f2e34

8 months agoExternalize strings in org.simantics.document.ui 10/2510/2
Tuukka Lehtonen [Fri, 30 Nov 2018 14:34:35 +0000 (16:34 +0200)]
Externalize strings in org.simantics.document.ui

gitlab #210

Change-Id: Ibf869b4b7a0c8efcc6705f887cfb0ed1f3fac260

8 months agoExternalize org.simantics.document.linking.ui 05/2505/4
Tuukka Lehtonen [Thu, 29 Nov 2018 14:01:59 +0000 (16:01 +0200)]
Externalize org.simantics.document.linking.ui

gitlab #210

Change-Id: I5518a1c41c87a606ce68b69c9462750a49add088

8 months agoExternalize strings in org.simantics.desktop.ui 04/2504/3
Tuukka Lehtonen [Wed, 28 Nov 2018 15:12:28 +0000 (17:12 +0200)]
Externalize strings in org.simantics.desktop.ui

gitlab #210

Change-Id: Id1ac35d76c9cd9b6541b9c6eed1b21322d30fbb7

8 months agoExternalize strings in org.simantics.debug.ui 03/2503/3
Tuukka Lehtonen [Wed, 28 Nov 2018 14:55:17 +0000 (16:55 +0200)]
Externalize strings in org.simantics.debug.ui

gitlab #210

Change-Id: Ie9366b4ce9f0530df946bed292a918fc7f6ac7f3

8 months agoExternalize strings in org.simantics.db.procore.ui 02/2502/3
Tuukka Lehtonen [Wed, 28 Nov 2018 13:15:54 +0000 (15:15 +0200)]
Externalize strings in org.simantics.db.procore.ui

gitlab #210

Change-Id: Id68728d5e8202fdadeef86d1d91e4f397ab6a4a7

8 months agoImplement ImageDescriptor.getImageData(int zoom) 33/2533/1
Tuukka Lehtonen [Fri, 7 Dec 2018 12:52:57 +0000 (14:52 +0200)]
Implement ImageDescriptor.getImageData(int zoom)

gitlab #228

Change-Id: I0b0294a8a48d6d633c452fee780be502f4d58406

8 months agoHistoryUtil API for exporting subscription history data archive file 32/2532/2
Tuukka Lehtonen [Fri, 7 Dec 2018 12:18:49 +0000 (14:18 +0200)]
HistoryUtil API for exporting subscription history data archive file

Previously exporting was supported only directly into the database.

gitlab #227

Change-Id: I672cc3f5ca20b3b26e9b35d0c3eaf5415d1a3e5f

8 months agoFixed StandardCutHandler IllegalThreadAccess problem 30/2530/2
Tuukka Lehtonen [Fri, 7 Dec 2018 09:53:05 +0000 (11:53 +0200)]
Fixed StandardCutHandler IllegalThreadAccess problem

Also changed old deprecated logger to SLF4J logging to the related
classes.

gitlab #74
gitlab #133

Change-Id: I0dbb14d4025a5fc2c58519d933e3dfdf03de1878

8 months agoUse Logger in DependencyChanges & related mechanisms 29/2529/3
jsimomaa [Fri, 7 Dec 2018 06:55:51 +0000 (08:55 +0200)]
Use Logger in DependencyChanges & related mechanisms

gitlab #226

Change-Id: If6a85641c64853154a65e77e43e053b3d7f35bb5

8 months agoUpdate SCL-editor annotations asynchronously 28/2528/2
jsimomaa [Fri, 7 Dec 2018 06:53:37 +0000 (08:53 +0200)]
Update SCL-editor annotations asynchronously

gitlab #225

Change-Id: Iec9fce3432b701b540526b1bd95ada331252951a

8 months agoSearch deeply for generic superclass in ReflectionUtils 22/2522/2
jsimomaa [Wed, 5 Dec 2018 09:18:47 +0000 (11:18 +0200)]
Search deeply for generic superclass in ReflectionUtils

gitlab #224

Change-Id: I3f3decead033c62726c5919b2b3f36b786de5135

8 months agoReplace e.printStackTrace() with Logger in DependencyChanges 15/2515/2
jsimomaa [Tue, 4 Dec 2018 09:22:07 +0000 (11:22 +0200)]
Replace e.printStackTrace() with Logger in DependencyChanges

gitlab #223

Change-Id: Ia0f585e0f78a225959e4a882760b1b3f4c73753f

8 months agoFixed invalid argument problem from RouteGraphUtils.load 13/2513/1
Tuukka Lehtonen [Fri, 30 Nov 2018 23:16:34 +0000 (01:16 +0200)]
Fixed invalid argument problem from RouteGraphUtils.load

Wrong IElement passed to TerminalLayout.getTerminalPosition.

gitlab #220

Change-Id: I46b82ccd8937107a771c1f157cd4581066736abc

8 months agoDocument performance optimizations 00/2500/4
Antti Villberg [Wed, 28 Nov 2018 06:42:22 +0000 (08:42 +0200)]
Document performance optimizations

gitlab #217

Change-Id: Ia61baca7ab92f73d10ddc87456aca1575795e80e

8 months agoMerge "Fixed PropertyPageView to publish its selection to the workbench"
Tuukka Lehtonen [Fri, 30 Nov 2018 20:26:50 +0000 (20:26 +0000)]
Merge "Fixed PropertyPageView to publish its selection to the workbench"

8 months agoFixed PropertyPageView to publish its selection to the workbench 12/2512/1
Tuukka Lehtonen [Fri, 30 Nov 2018 20:08:02 +0000 (22:08 +0200)]
Fixed PropertyPageView to publish its selection to the workbench

Removing the property page view site selection provider caused the
workbench to naturally never receive any selections from the view thus
breaking any handlers whose activity/functionality relies on the current
workbench selection being accurate also with property tabs.

gitlab #185

Change-Id: I0d7067a0880486b93d135631baccd14ca613be90

8 months agoSpeeding up platform startup time 07/2507/3
jsimomaa [Fri, 30 Nov 2018 12:04:34 +0000 (14:04 +0200)]
Speeding up platform startup time

Shaved ~1.5seconds off by starting SCL compiler priming at the beginning
of platform startup on the background before the LifeCycleProcesses
project feature needs the compiler.

Also removed seemingly unused VirtualGraphInitializer that installed
virtualgraphs/*.tg files into random memory-persistent virtual graphs
during platform startup. It simply piles on some startup overhead and
does nothing.

gitlab #221

Change-Id: I1ebbc4e292957755cd88f2941cd02730ae8605c8

8 months agoMove shutdown of worker pools to SimanticsPlatform.shutdown() 98/2498/3
jsimomaa [Mon, 26 Nov 2018 20:15:33 +0000 (22:15 +0200)]
Move shutdown of worker pools to SimanticsPlatform.shutdown()

Closing of public worker pools should be done before we are closing our
db-connection. The platform-shutdown routine has already started and
therefore it should not be meaningful to execute any more work for a
closing platform

gitlab #212

Change-Id: I9fb8fb0970d649f7b53282be0627bf5387c9dde9

8 months agoAsk to link library to model when dropping symbol from unlinked library 99/2499/4
Tuukka Lehtonen [Tue, 27 Nov 2018 12:28:48 +0000 (14:28 +0200)]
Ask to link library to model when dropping symbol from unlinked library

This simplifies workflow for users that want to add symbols from a user
library but have not yet linked the library to the model.

gitlab #215

Change-Id: I1eb4c0680a14dc21fca8dc8961baf1f059ecccd9

8 months agoRemove unnecessary logback logger definition 97/2497/1
jsimomaa [Mon, 26 Nov 2018 20:11:19 +0000 (22:11 +0200)]
Remove unnecessary logback logger definition

org.simantics logger is basically identical with the root logger what
comes to configuration. This specific logger can be removed to keep the
configuration clear and simple.

Also, this makes it more complicated to programmatically modify loggers
as both the root logger and org.simantics logger has to be
programmatically configured

gitlab #216

Change-Id: I8e27ea03ad3c5b6f2654edf0a7d863319e06bfa7

8 months agoPassing data between tooltip check and content creation. 94/2494/1
Marko Luukkainen [Mon, 26 Nov 2018 11:18:34 +0000 (13:18 +0200)]
Passing data between tooltip check and content creation.

gitlab #146

Change-Id: I415f79b182cacbeca9999aacc50ac920c31a344b
(cherry picked from commit 2309629a2b9cb57e86c3b34bf8d94f2bdfd5a1ef)

8 months agoMerge "Added trailing zero visibility control for FormattingUtil"
Tuukka Lehtonen [Fri, 23 Nov 2018 09:11:00 +0000 (09:11 +0000)]
Merge "Added trailing zero visibility control for FormattingUtil"

8 months agoAdded trailing zero visibility control for FormattingUtil 90/2490/1
Tuukka Lehtonen [Fri, 23 Nov 2018 08:55:50 +0000 (10:55 +0200)]
Added trailing zero visibility control for FormattingUtil

Also fixed some bugs in constructing the formatters with designated
smaller amount of significant digits.

High-value formatter selection was made a bit more complex by the
trailing zeroes option.

gitlab #213

Change-Id: I9e1b159940d4058a21d6cad5080892b6e1ed2d6c

8 months agoFix errors with procedural user components for computational values 81/2481/7
jsimomaa [Wed, 21 Nov 2018 08:31:37 +0000 (10:31 +0200)]
Fix errors with procedural user components for computational values

gitlab #169

Change-Id: I1d95429ea1c49ca2f8bd20d447500513a3e6f87a

8 months agoExternalize strings in org.simantics.scl.ui 84/2484/12
Tuukka Lehtonen [Wed, 21 Nov 2018 12:43:02 +0000 (14:43 +0200)]
Externalize strings in org.simantics.scl.ui

Also touched SCL console import dialog related code in
org.simantics.modeling.ui to keep the UI uniform within this commit.

gitlab #210

Change-Id: I7eb67633ecb32227fa2aceaf3cdf21ed3026495b

8 months agoPrevent some NPEs in Graphviz plugin 82/2482/1
Hannu Niemistö [Wed, 21 Nov 2018 11:22:52 +0000 (13:22 +0200)]
Prevent some NPEs in Graphviz plugin

gitlab #209

Change-Id: Id29a4e20470ca63c07e3b0be41b6b12bf2e1281a

9 months agoMerge "Update structure and value cache when refreshing variable"
Tuukka Lehtonen [Tue, 20 Nov 2018 09:11:35 +0000 (09:11 +0000)]
Merge "Update structure and value cache when refreshing variable"

9 months agoUpdate structure and value cache when refreshing variable 04/2404/4
Jussi Koskela [Wed, 31 Oct 2018 14:03:38 +0000 (16:03 +0200)]
Update structure and value cache when refreshing variable

Previous implementation only updated value cache contents after the
previous cached results expired, which could cause unacceptable delays
in new NodeManager query results. Also, if there were no listeners for
the NodeManager query results, results wouldn't get updated anymore.

gitlab #173

Change-Id: I162fbddea7a5b312c7dceb1448d6ef1cc1f07b73

9 months agoMerge "Fire selection change events on every selection change"
Tuukka Lehtonen [Tue, 20 Nov 2018 09:02:32 +0000 (09:02 +0000)]
Merge "Fire selection change events on every selection change"

9 months agoChange opacity to 0.0001 in SCLScenegraph 74/2474/1
jsimomaa [Tue, 20 Nov 2018 08:35:53 +0000 (10:35 +0200)]
Change opacity to 0.0001 in SCLScenegraph

gitlab #208

Change-Id: I5e53cdff7849d67cf20827611c8e11e6812913a4

9 months agoAsyncUtils.pmap() to use Collectors.toList() 73/2473/1
jsimomaa [Tue, 20 Nov 2018 08:34:56 +0000 (10:34 +0200)]
AsyncUtils.pmap() to use Collectors.toList()

gitlab #207

Change-Id: I17ceafa27e6d27c7159c1698910d14b341476e1e

9 months agoSeparate DB and non-DB code to different structural sync bundles 66/2466/5
Antti Villberg [Fri, 16 Nov 2018 13:11:00 +0000 (15:11 +0200)]
Separate DB and non-DB code to different structural sync bundles

Previously, code in org.simantics.structural.synchronization.client was
in packages that were dangerously named
org.simantics.structural.synchronization, which could easily escalate
into split packages between bundles with more of such sloppy naming.

This moves the whole org.simantics.structural.synchronization.base
package from .structural.synchronization.client to
.structural.synchronization which changes nothing from the bundle user's
point of view. Code that stays in .structural.synchronization.client is
moved into the org.simantics.structural.synchronization.client package
to keep things cleaners.

gitlab #206

Change-Id: I2366b6e7395750cc9b6649abd3e77ef1661d2d1f

9 months agoFire selection change events on every selection change 71/2471/2
Tuukka Lehtonen [Mon, 19 Nov 2018 10:23:10 +0000 (12:23 +0200)]
Fire selection change events on every selection change

Also added trace-level logging for selection firing for debugging
purposes.

gitlab #184

Change-Id: Ic499e83b87cc0939c45976ca1f7bda03d428ebd6

9 months agoMerge "Utility function for claiming literals"
Hannu Niemistö [Sat, 17 Nov 2018 06:59:34 +0000 (06:59 +0000)]
Merge "Utility function for claiming literals"

9 months agoMinor refactoring in Simulator Toolkit 65/2465/1
Antti Villberg [Fri, 16 Nov 2018 13:10:40 +0000 (15:10 +0200)]
Minor refactoring in Simulator Toolkit

gitlab #205

Change-Id: Id0f513093b83eb2cdcf4a087daca1edbc57b0363

9 months agoUtility function for claiming literals 64/2464/1
Antti Villberg [Fri, 16 Nov 2018 13:10:03 +0000 (15:10 +0200)]
Utility function for claiming literals

gitlab #204

Change-Id: Ie1738b7400d26aa05bd889e2853362145cc87adc

9 months agoMore precise instructions for bumping master revision
Tuukka Lehtonen [Fri, 16 Nov 2018 06:24:01 +0000 (08:24 +0200)]
More precise instructions for bumping master revision

Just to avoid similar future mistakes.

gitlab #201

9 months agoBumped master version to 1.37.0
Tuukka Lehtonen [Fri, 16 Nov 2018 06:14:03 +0000 (08:14 +0200)]
Bumped master version to 1.37.0

gitlab simantics/platform#201

9 months agoMove state changes away from render method to refresh method
Jussi Koskela [Wed, 24 Oct 2018 11:52:35 +0000 (14:52 +0300)]
Move state changes away from render method to refresh method

Backwards compatibility is preserved by calling refresh for each node at
the beginning of rendering. This is performed automatically in
G2DSceneGraph.render contrary to original requirement. This change is
required to support external diagram renderers.

Change-Id: I5d91ee97b0c9527f6d4ba562089ffaebdbc01ce0
(cherry picked from commit 512d469c3e490cdfc9a10fbbd6efe92ae6c0358a)

9 months agoPreliminary implementation to update only changed profile entries
Jussi Koskela [Wed, 24 Oct 2018 12:23:23 +0000 (15:23 +0300)]
Preliminary implementation to update only changed profile entries

Marks related elements dirty.

Change-Id: Id93d9126393f6840cb028c11cac095b1078f229e
(cherry picked from commit ecfd4cc9881712d59ddfc2023db382ad4f3a9be9)

9 months agoDeclare cached MonitorTextGridResult as a transient field
Jussi Koskela [Wed, 24 Oct 2018 12:11:43 +0000 (15:11 +0300)]
Declare cached MonitorTextGridResult as a transient field

We don't want to serialize this field.

Change-Id: I5f9e1094dec20bb29dabbb9a3fd3dc77d1639e7e
(cherry picked from commit afee96f637a9563364343ec9688b1d4b3aa98a10)

9 months agoOption to edit TextNode's text externally
Jussi Koskela [Wed, 24 Oct 2018 12:29:05 +0000 (15:29 +0300)]
Option to edit TextNode's text externally

Change-Id: I6e454e667b52192e3b3d1e2ffe244d5eec799b03
(cherry picked from commit 44b3ebb55aec76ee0b583fef45f7215f2ee5d26a)

9 months agoRefactor DeleteHandler to be independent from UI
Jussi Koskela [Mon, 5 Nov 2018 09:06:12 +0000 (11:06 +0200)]
Refactor DeleteHandler to be independent from UI

Change-Id: I0000000000000000000000000000000000000000
(cherry picked from commit cff3197e30752cf687fa8a7c037160a798b3b999)

9 months agoDon't assume that Element provides TerminalTopology
Jussi Koskela [Wed, 7 Nov 2018 13:52:57 +0000 (15:52 +0200)]
Don't assume that Element provides TerminalTopology

(cherry picked from commit c0940268d6e3551f5c700d677073bf754ce8eaad)

9 months agoVariable optimizations for documents (Simupedia) 58/2458/5
Antti Villberg [Tue, 13 Nov 2018 10:42:49 +0000 (12:42 +0200)]
Variable optimizations for documents (Simupedia)

* Documentation changes based on previous new features

gitlab #169

Change-Id: Ief514661ccc3dd16eb10c17ed660dd1976504b3d

9 months agoMerge "Variable optimizations for documents (Simupedia)"
Tuukka Lehtonen [Tue, 13 Nov 2018 09:18:10 +0000 (09:18 +0000)]
Merge "Variable optimizations for documents (Simupedia)"

9 months agoVariable optimizations for documents (Simupedia) 55/2455/3
Antti Villberg [Tue, 13 Nov 2018 05:59:50 +0000 (07:59 +0200)]
Variable optimizations for documents (Simupedia)

* Added ProxyVariableSupport - a mechanism to re-parent a Variable

gitlab #169

Change-Id: I2852ef1895003a7b1735e1fa2505ac20d6a8ba46

9 months agoVariable optimizations for documents (Simupedia) 56/2456/3
Antti Villberg [Tue, 13 Nov 2018 06:02:59 +0000 (08:02 +0200)]
Variable optimizations for documents (Simupedia)

* A request for obtaining defined structural children

gitlab #169

Change-Id: I1977b3df10998fc3b52ada098105ad3e66663018

9 months agoFixed Bundle-SymbolicName to org.apache.commons.compress
Tuukka Lehtonen [Tue, 13 Nov 2018 07:55:40 +0000 (09:55 +0200)]
Fixed Bundle-SymbolicName to org.apache.commons.compress

gitlab #196

Change-Id: I840a069cf3ee426e2589b1a62670a129f6fd42c7

9 months agoSorted lines alphabetically
Tuukka Lehtonen [Tue, 13 Nov 2018 07:28:55 +0000 (09:28 +0200)]
Sorted lines alphabetically

gitlab #196

Change-Id: I20d4fa4bcf234b338d0834939bfa0a8323bfdfa0

9 months agoAdded org.yaml.snakeyaml 1.23 to external components 57/2457/1
Tuukka Lehtonen [Tue, 13 Nov 2018 07:14:54 +0000 (09:14 +0200)]
Added org.yaml.snakeyaml 1.23 to external components

Also upgraded following external components:
* org.apache.commons.compress 1.12 -> 1.18
* org.jsoup 1.8.3 -> 1.11.3

gitlab #196

Change-Id: Iaf365bc8953d8d9ab4c411ad6dbbc6debb984a9d

9 months agoMerge "Utilize SVGNode's transformation when generating SVG image"
Marko Luukkainen [Mon, 12 Nov 2018 17:03:35 +0000 (17:03 +0000)]
Merge "Utilize SVGNode's transformation when generating SVG image"

9 months agoUtilize SVGNode's transformation when generating SVG image 54/2454/1
Marko Luukkainen [Mon, 12 Nov 2018 16:18:53 +0000 (18:18 +0200)]
Utilize SVGNode's transformation when generating SVG image

gitlab #195

Change-Id: Ibc3199eff5a342f24dba66eb483cacaf6f0a9e59

9 months agoWake DynamicExperimentThread task runner up when state changes 53/2453/2
Tuukka Lehtonen [Mon, 12 Nov 2018 12:35:16 +0000 (14:35 +0200)]
Wake DynamicExperimentThread task runner up when state changes

Prevents the thread from getting stuck when it is shut down from stopped
state.

gitlab #194

Change-Id: Iaf5ad6238aae8925c42d029078ea5f2a2ffa3e8c

9 months agoMerge "Variable optimizations for documents (Simupedia)"
Tuukka Lehtonen [Mon, 12 Nov 2018 12:28:35 +0000 (12:28 +0000)]
Merge "Variable optimizations for documents (Simupedia)"

9 months agoVariable optimizations for documents (Simupedia) 02/2402/3
Antti Villberg [Wed, 31 Oct 2018 05:00:00 +0000 (07:00 +0200)]
Variable optimizations for documents (Simupedia)

* More control over computational values served by ReadGraph.
* More cacheable Connections (Connection2)

gitlab #169

Change-Id: I304de13f97c25661fed2905e33887e315144591e

9 months agoAdded -f SCL/Module/function argument for BaselineCreatorApplication 51/2451/1
Tuukka Lehtonen [Mon, 12 Nov 2018 11:38:41 +0000 (13:38 +0200)]
Added -f SCL/Module/function argument for BaselineCreatorApplication

This allows the baseline creator to run a custom SCL initialization
function that is included in the currently running platform after the
platform has been started up and before the platform shut down.

gitlab #193

Change-Id: I68565cf638365aaf816845282e3c7a24eb45dd31

9 months agoMerge "Add customisation possibilities for SelectionNode"
Tuukka Lehtonen [Mon, 12 Nov 2018 07:57:03 +0000 (07:57 +0000)]
Merge "Add customisation possibilities for SelectionNode"

9 months agoObey Indexing.isDependenciesIndexingDisabled 48/2448/1
Antti Villberg [Mon, 12 Nov 2018 07:22:27 +0000 (09:22 +0200)]
Obey Indexing.isDependenciesIndexingDisabled

gitlab #192

Change-Id: If02e02fd4fc7f5ee65d3b80cb70fde3e0a5224cb

9 months agoAdd customisation possibilities for SelectionNode 47/2447/1
Antti Villberg [Mon, 12 Nov 2018 07:19:58 +0000 (09:19 +0200)]
Add customisation possibilities for SelectionNode

gitlab #191

Change-Id: I400ef4099128845792498377e058103e8fbff065

9 months agoFixed GraphExplorerImpl to set selection upon keyboard-based selection 45/2445/3
Tuukka Lehtonen [Sat, 10 Nov 2018 10:43:08 +0000 (12:43 +0200)]
Fixed GraphExplorerImpl to set selection upon keyboard-based selection

Previously scrolling the selection using the keyboard and then pressing
Enter to open the selected resource would result in the wrong resource
being opened because the selection hadn't yet propagated through the
postSelection event.

gitlab #184

Change-Id: Ib1f837b3cb8eb70b32508e4abee36cfa995886ed