]> gerrit.simantics Code Review - simantics/platform.git/log
simantics/platform.git
5 years agoMade spatial picking optimization optional for now 14/2714/1
Tuukka Lehtonen [Wed, 26 Sep 2018 05:24:14 +0000 (08:24 +0300)]
Made spatial picking optimization optional for now

R-tree -based element picking doesn't work for DnD monitors at the
moment, needs more work.

gitlab #66

Change-Id: Ia30243aa48fdd75d238e71422ec0aec358e46af9
(cherry picked from commit 659b89ec3b47e57753db44217990499ebf0b2486)

5 years agoPerformance and resource consumption optimization for G2D picking 88/2688/2
jsimomaa [Fri, 27 Jul 2018 07:14:49 +0000 (10:14 +0300)]
Performance and resource consumption optimization for G2D picking

* Scene graph R-tree based spatial optimization of picked
  IElement-material resolution
* Parallel processing for both resolving the elements to pick and
  picking the elements
* Added INode -> IElement map management to ElementPainter to have the
  fastest possible means available in picking for getting from scene
  graph nodes to their corresponding IElement instances.

gitlab #66

Change-Id: I524da0c2695cdda2eb4f0a1fa318f48ff8fcff24
(cherry picked from commit 48135dcd03588783f9c1b688aaa53cdaacba6ef2)

5 years agoFix errors with procedural user components for computational values 02/2702/2
jsimomaa [Wed, 21 Nov 2018 08:31:37 +0000 (10:31 +0200)]
Fix errors with procedural user components for computational values

gitlab #169

Merged cherry pick from master.

Change-Id: I1d95429ea1c49ca2f8bd20d447500513a3e6f87a

5 years agoFix Layer0 definitions that cause unnecessary warnings in SCLTypeUtils 03/2703/4
Tuukka Lehtonen [Fri, 14 Sep 2018 07:28:36 +0000 (10:28 +0300)]
Fix Layer0 definitions that cause unnecessary warnings in SCLTypeUtils

gitlab #120

Change-Id: I752331250a46f0e01f48ad128458460d3e9061cc

5 years agoAdd lookupJsonField to Data/Json SCL module 07/2707/4
jsimomaa [Thu, 14 Feb 2019 11:24:34 +0000 (13:24 +0200)]
Add lookupJsonField to Data/Json SCL module

gitlab #256

Needed for district.

Change-Id: If3be1a2f355f4542ffb60e0984ceec2b8771ed0f

5 years agoMerge changes I2adf7640,I209d9d58 into release/1.35.1
Tuukka Lehtonen [Mon, 25 Feb 2019 17:37:51 +0000 (17:37 +0000)]
Merge changes I2adf7640,I209d9d58 into release/1.35.1

* changes:
  Added proper equals() implementations for validation compilation request
  Initial version of validating derived properties formulas

5 years agoAdded proper equals() implementations for validation compilation request 11/2711/1
Reino Ruusu [Mon, 25 Feb 2019 15:51:59 +0000 (17:51 +0200)]
Added proper equals() implementations for validation compilation request

Fix to use of old value from cache while validating derived properties.

gitlab #252

Change-Id: I2adf76401dac90ddecc0bf2b3c222da6e242c2d2

5 years agoInitial version of validating derived properties formulas 06/2706/2
jsimomaa [Fri, 1 Feb 2019 07:39:08 +0000 (09:39 +0200)]
Initial version of validating derived properties formulas

Note: untested the procedural use case and still the solution can be a
bit hackish with e.g. constructing Variables and passing them along

However, at least this does something instead of just silently failing

gitlab #252

Conflicts:
bundles/org.simantics.structural.synchronization.client/src/org/simantics/structural/synchronization/client/Synchronizer.java

Change-Id: I209d9d585379b7b987861355589427ee90375738

5 years agoRename linked list functions that are overlapping or are too generic 10/2710/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
(cherry picked from commit 0f1223c3cce41690160216eb1ec7be38f7bf4571)

5 years agoMerge "Fixed database request threading issue in FlagUtil.join" into release/1.35.1
Marko Luukkainen [Mon, 25 Feb 2019 15:37:49 +0000 (15:37 +0000)]
Merge "Fixed database request threading issue in FlagUtil.join" into release/1.35.1

5 years agoFixed database request threading issue in FlagUtil.join 09/2709/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
(cherry picked from commit e478bb19f9329b3e7cd1c920ea8f5bdc63330f0e)

5 years agoSpeeding up platform startup time 08/2708/1
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
(cherry picked from commit 6667a65141692bc359087d8f1c9c8561636f1c59)
(cherry picked from commit da1d266392c3fe2f1ad1541c0f401763c3802f01)

5 years agoMerge "Initial support for concurrency in databoard, bindings and serializers" into...
Marko Luukkainen [Mon, 25 Feb 2019 14:36:03 +0000 (14:36 +0000)]
Merge "Initial support for concurrency in databoard, bindings and serializers" into release/1.35.1

5 years agoInitial support for concurrency in databoard, bindings and serializers 05/2705/1
jsimomaa [Tue, 6 Nov 2018 13:15:35 +0000 (15:15 +0200)]
Initial support for concurrency in databoard, bindings and serializers

* This fixes the parallellization problem in PlatformUtil.getAllGraphs
where parallel streams can now be used.
* VariableBinding is removed because it hasn't ever been used and it is
deadlock prone and not very useful
* Removed SerialisationSupport field from ResourceBinding as it has been
commented out for ages now. If we need this at some point, let's add it
back.

gitlab #180

Change-Id: Ic4240921b5e60ea8d642feb85e9608f936272190
(cherry picked from commit 48bb50bb6640506d1f150ca8e4fa5a6e878464be)

5 years agoAdd DatabaseJob.inProgress() checking to certain UI-handlers 04/2704/1
jsimomaa [Thu, 8 Nov 2018 07:03:03 +0000 (09:03 +0200)]
Add DatabaseJob.inProgress() checking to certain UI-handlers

gitlab #186

Change-Id: Ib8d547a54ffefde6ebf887e162d3adc8479c6de4
(cherry picked from commit d924aa9e2691606e0bc8044cce01aff4abcc7bc9)

5 years agoMerge "UI locking fixes for GraphExplorer implementations" into release/1.35.1
Marko Luukkainen [Mon, 25 Feb 2019 13:53:52 +0000 (13:53 +0000)]
Merge "UI locking fixes for GraphExplorer implementations" into release/1.35.1

5 years agoMerge "Fixed Acorn MainProgram and GraphClientImpl2 to use Logger" into release/1...
Marko Luukkainen [Mon, 25 Feb 2019 13:50:46 +0000 (13:50 +0000)]
Merge "Fixed Acorn MainProgram and GraphClientImpl2 to use Logger" into release/1.35.1

5 years agoUI locking fixes for GraphExplorer implementations 01/2701/1
Tuukka Lehtonen [Sat, 27 Oct 2018 17:35:14 +0000 (20:35 +0300)]
UI locking fixes for GraphExplorer implementations

GraphExplorer implementations contained ExplorerState restore code that
was ran synchronously in the UI thread. It will possibly require DB read
transactions which locks the UI up. Persisted explorer state loading has
now been moved into a Job from GraphExplorer implementations and
GraphExplorerComposite.

Also contains fixes for doSetColumns of all graph explorer
implementations which was using a Map with the wrong keys.

gitlab #160

Change-Id: I879fe4a099db70d5d8bbba185b4dc9d745c80911
(cherry picked from commit 97e8b055b8ad16f1d799c81898fee075780a5a83)

5 years agoFixed Acorn MainProgram and GraphClientImpl2 to use Logger 00/2700/1
Tuukka Lehtonen [Thu, 4 Oct 2018 05:21:50 +0000 (08:21 +0300)]
Fixed Acorn MainProgram and GraphClientImpl2 to use Logger

Previously the t.printStackTrace() in MainProrgam.run caused an
unexpected error that killed MainProgram to go down the drain.

gitlab #141

Change-Id: If68244b0e0f029ca43bbc45159936d3d89e49262
(cherry picked from commit 7057e920b41f05ea4a98d904abbc708d7f131fa2)

5 years agoPrevent ConcurrentModificationException in StyledRouteGraphRenderer 99/2699/1
Tuukka Lehtonen [Tue, 25 Sep 2018 21:03:39 +0000 (00:03 +0300)]
Prevent ConcurrentModificationException in StyledRouteGraphRenderer

Fixed via ThreadLocal-based caching of reused data structures.

gitlab #132

Change-Id: I42a3d3a160f1f7a9ed30d10cca84e1dc5b6488fa
(cherry picked from commit 32f61540d7bf4d15f1ae5fa1b8cf56789f4ee207)

5 years agoMerge "NPE while recalculating title for CompatibilityPart" into release/1.35.1
Marko Luukkainen [Mon, 25 Feb 2019 12:22:14 +0000 (12:22 +0000)]
Merge "NPE while recalculating title for CompatibilityPart" into release/1.35.1

5 years agoMerge "DelayedWriteGraph denyValue should deny the value statement as well" into...
Marko Luukkainen [Mon, 25 Feb 2019 12:21:42 +0000 (12:21 +0000)]
Merge "DelayedWriteGraph denyValue should deny the value statement as well" into release/1.35.1

5 years agoMerge "Search deeply for generic superclass in ReflectionUtils" into release/1.35.1
Tuukka Lehtonen [Mon, 25 Feb 2019 12:20:49 +0000 (12:20 +0000)]
Merge "Search deeply for generic superclass in ReflectionUtils" into release/1.35.1

5 years agoMerge "Remove unnecessary getComparableKey from HashMapBinding" into release/1.35.1
Tuukka Lehtonen [Mon, 25 Feb 2019 12:19:10 +0000 (12:19 +0000)]
Merge "Remove unnecessary getComparableKey from HashMapBinding" into release/1.35.1

5 years agoRemove unnecessary getComparableKey from HashMapBinding 97/2697/1
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

Needed for district.

Change-Id: I14a4f6d4998c61f88a7d7798947e70ce041a4f1f
(cherry picked from commit e5a79f44f9d6ce5f38fb61c5db0d9af0a1db35a9)

5 years agoDuplicate MouseWheelMovedEvent was not actually fixed 96/2696/1
jsimomaa [Tue, 19 Feb 2019 12:04:45 +0000 (14:04 +0200)]
Duplicate MouseWheelMovedEvent was not actually fixed

gitlab #64

Change-Id: I4989c4f57e0a1f44a3366640c6e756ad2c93c4ad
(cherry picked from commit 162f92e52a7efa9fd0067666be6e9dfd28ec1e51)

5 years agoNPE while recalculating title for CompatibilityPart 92/2692/1
jsimomaa [Thu, 13 Sep 2018 12:27:43 +0000 (15:27 +0300)]
NPE while recalculating title for CompatibilityPart

gitlab #117

Change-Id: Ie293c21c66a273ceb0b2fe3908168b6aebf9f347
(cherry picked from commit 20c2fa2629081d808fe313e387951f69111236b6)

5 years agoDelayedWriteGraph denyValue should deny the value statement as well 91/2691/1
Jani Simomaa [Sat, 8 Sep 2018 05:32:00 +0000 (08:32 +0300)]
DelayedWriteGraph denyValue should deny the value statement as well

gitlab #113

Change-Id: I5913e3d888d10315fadb323dfffb585e22d68444
(cherry picked from commit 5f3260ea85b48717183e28efee5806f706d04c05)
(cherry picked from commit da9040581c9c7e7611de39f10466a36efd2bdd2a)

5 years agoSearch deeply for generic superclass in ReflectionUtils 90/2690/1
jsimomaa [Wed, 5 Dec 2018 09:18:47 +0000 (11:18 +0200)]
Search deeply for generic superclass in ReflectionUtils

gitlab #224

Needed for district.

Change-Id: I3f3decead033c62726c5919b2b3f36b786de5135
(cherry picked from commit 8905e67e82991121305889e6474a124d6ec79bf8)

5 years agoMerge "Fix selectPath returning true for nodes that haven't been loaded." into releas...
Marko Luukkainen [Mon, 25 Feb 2019 11:13:31 +0000 (11:13 +0000)]
Merge "Fix selectPath returning true for nodes that haven't been loaded." into release/1.35.1

5 years agoFix selectPath returning true for nodes that haven't been loaded. 89/2689/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
(cherry picked from commit cd343042b5518b7a45fffb35ccb91cb4d810a6e7)

5 years agoAdded Simantics/Diagram/{withScale,transformElement,transformElements} 87/2687/1
Tuukka Lehtonen [Mon, 5 Nov 2018 23:54:38 +0000 (01:54 +0200)]
Added Simantics/Diagram/{withScale,transformElement,transformElements}

Also added some documentation to the SCL module.

gitlab #179

Change-Id: Ia00785d38036f640c7636d53fdc7fde102c38d65
(cherry picked from commit b8afde7d56558ae67a5821c066e0ea0f69b049da)

5 years agoFixed synchronousness problem in drag event transferable handling 86/2686/1
Tuukka Lehtonen [Fri, 28 Sep 2018 06:19:02 +0000 (09:19 +0300)]
Fixed synchronousness problem in drag event transferable handling

Previously handleEvent would post the event for asynchronous handling
while handling the drag starting via Transferable requires the drag to
be started synchronously within the AWT drag start event handler.

Added syncHandleEvent to AbstractEventHandler to support this.

gitlab #112

Change-Id: I694844fbfc1be74b9f6b620afc8fc441a0ab4d31
(cherry picked from commit 96ae58fda842dcd8266192eeb1399324b092154a)

5 years agoTrigger all drag start events from single place 85/2685/1
Jussi Koskela [Thu, 6 Sep 2018 13:46:17 +0000 (16:46 +0300)]
Trigger all drag start events from single place

gitlab #112

Change-Id: Ifdde60194967fc80fbf0276c754af00e3c2a3ca2
(cherry picked from commit bdb7180f6425b460b8566a3223b319caf9dbc56f)

5 years agoMerge "Added null check after getPossibleType(STR.Component)" into release/1.35.1
Marko Luukkainen [Mon, 25 Feb 2019 10:00:23 +0000 (10:00 +0000)]
Merge "Added null check after getPossibleType(STR.Component)" into release/1.35.1

5 years agoMerge "Added null check for getPossibleObject return value" into release/1.35.1
Marko Luukkainen [Mon, 25 Feb 2019 10:00:03 +0000 (10:00 +0000)]
Merge "Added null check for getPossibleObject return value" into release/1.35.1

5 years agoFixed NPE from ConnectionPointNameStyle.applyStyleForNode 82/2682/1
Tuukka Lehtonen [Thu, 20 Sep 2018 12:45:46 +0000 (15:45 +0300)]
Fixed NPE from ConnectionPointNameStyle.applyStyleForNode

gitlab #129

Change-Id: I7d5f3be3cc695e5a6e8f9cf131fcc24b275a5e85
(cherry picked from commit df479ad3f602a36c39374d95c0e205b27c868f94)
(cherry picked from commit 7bef46ce0a0897830a07b0e3f7a482c2c2f48acb)

5 years agoAdded null check after getPossibleType(STR.Component) 81/2681/1
Tuukka Lehtonen [Fri, 14 Sep 2018 12:38:27 +0000 (15:38 +0300)]
Added null check after getPossibleType(STR.Component)

gitlab #118

Change-Id: I9b2d5f82ca9eb7a769cde44d925ff93437461175
(cherry picked from commit c837c3cf6d782fa6af127cf2f02d74de2b362fd3)

5 years agoAdded null check for getPossibleObject return value 80/2680/1
Tuukka Lehtonen [Fri, 14 Sep 2018 13:15:00 +0000 (16:15 +0300)]
Added null check for getPossibleObject return value

gitlab #124

Change-Id: Ia5deaafddd4f15c25351feed19d32b4634349544
(cherry picked from commit 74083d12acc3169cbeb36f39b3f4837ffdc34233)
(cherry picked from commit ad5b573b5db77a3e00429fc24e2de855bce7f48a)

5 years agoMerge "Disable flickering in ColorSelectionDialog" into release/1.35.1
Marko Luukkainen [Fri, 22 Feb 2019 12:38:29 +0000 (12:38 +0000)]
Merge "Disable flickering in ColorSelectionDialog" into release/1.35.1

5 years agoMerge "Implement ImageDescriptor.getImageData(int zoom)" into release/1.35.1
Marko Luukkainen [Fri, 22 Feb 2019 12:33:39 +0000 (12:33 +0000)]
Merge "Implement ImageDescriptor.getImageData(int zoom)" into release/1.35.1

5 years agoDisable flickering in ColorSelectionDialog 77/2677/1
jsimomaa [Tue, 18 Dec 2018 13:10:14 +0000 (15:10 +0200)]
Disable flickering in ColorSelectionDialog

gitlab #238

Change-Id: Ib21e8b4eb569172f96db1b463297abe12d3d061c
(cherry picked from commit a8891c8747dbfa75a4a3811ced1772c607ab5bdf)

5 years agoImplement ImageDescriptor.getImageData(int zoom) 76/2676/1
Tuukka Lehtonen [Fri, 7 Dec 2018 12:52:57 +0000 (14:52 +0200)]
Implement ImageDescriptor.getImageData(int zoom)

gitlab #228

Change-Id: I0b0294a8a48d6d633c452fee780be502f4d58406
(cherry picked from commit 399abb1d550786b9077895ea1587d3f556fb0ed0)

5 years agoFixed invalid argument problem from RouteGraphUtils.load 75/2675/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
(cherry picked from commit ca2230ef8d0b31fabaa114535c0334ece283cb8a)

5 years agoFixed a typo in Viewpoint ontology 74/2674/1
Hannu Niemistö [Wed, 17 Oct 2018 10:14:46 +0000 (13:14 +0300)]
Fixed a typo in Viewpoint ontology

Change-Id: I0929253a6c8f7a4da0a19a73dd8e96c2a2696770
(cherry picked from commit 0d09c1eadf0d26185bc3d5b1467523beb585f551)

5 years agoHiDPI scaling for diagram ruler and model activity tracker 72/2672/1
Tuukka Lehtonen [Mon, 1 Oct 2018 17:20:30 +0000 (20:20 +0300)]
HiDPI scaling for diagram ruler and model activity tracker

gitlab #137

Change-Id: Icc3cf5cd828aa4580699dde01635b1ea669b0a0c
(cherry picked from commit bc195f999a0a3f4571ff45342327223b4b480750)

5 years agoAdded trailing zero visibility control for FormattingUtil 70/2670/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
(cherry picked from commit fccd5bec4ca9bbd9bdf547b304ae00e43730502c)

5 years agoMerge "HistoryUtil API for exporting subscription history data archive file" into...
Marko Luukkainen [Thu, 21 Feb 2019 17:15:51 +0000 (17:15 +0000)]
Merge "HistoryUtil API for exporting subscription history data archive file" into release/1.35.1

5 years agoMerge "General event listening interface for DB and purge events." into release/1...
Marko Luukkainen [Thu, 21 Feb 2019 17:10:59 +0000 (17:10 +0000)]
Merge "General event listening interface for DB and purge events." into release/1.35.1

5 years agoMerge "Updated target platform files" into release/1.35.1
Marko Luukkainen [Thu, 21 Feb 2019 17:02:56 +0000 (17:02 +0000)]
Merge "Updated target platform files" into release/1.35.1

5 years agoHistoryUtil API for exporting subscription history data archive file 69/2669/1
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
(cherry picked from commit 662ee6d0e68c386fdbc22300bdadb58d61de5b17)

5 years agoGeneral event listening interface for DB and purge events. 68/2668/1
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
(cherry picked from commit b2bb3ff110b5bf929b6d676f0122a15a43358440)

5 years agoUpdated target platform files 67/2667/1
Marko Luukkainen [Thu, 21 Feb 2019 16:50:27 +0000 (18:50 +0200)]
Updated target platform files

gitlab #261

Change-Id: Idcc2b2622f6e3dab45f4615367ad272d1f6c3fc3

5 years agoMerge "ImportPdfReader now implements Closeable" into release/1.35.1
Marko Luukkainen [Thu, 21 Feb 2019 16:48:34 +0000 (16:48 +0000)]
Merge "ImportPdfReader now implements Closeable" into release/1.35.1

5 years agoAdded snakeyaml 1.23 to external components 65/2665/1
Marko Luukkainen [Thu, 21 Feb 2019 13:45:20 +0000 (15:45 +0200)]
Added snakeyaml 1.23 to external components

gitlab #260

Change-Id: I1cdc75c37f07f23fef34c0bcc6260a55e1da4534

5 years agoImportPdfReader now implements Closeable 64/2664/1
Tuukka Lehtonen [Mon, 31 Dec 2018 13:36:49 +0000 (15:36 +0200)]
ImportPdfReader now implements Closeable

gitlab #243

Change-Id: I1d422e6c4103a4836210d15648ad47785fbe3972
(cherry picked from commit 48ea5bf055156f92d497a9a45bc05ac9d85b6f43)

5 years agoConfigured release/1.35.1 branch for SDK builds
Marko Luukkainen [Thu, 21 Feb 2019 13:21:19 +0000 (15:21 +0200)]
Configured release/1.35.1 branch for SDK builds

5 years agoIgnore vaading designer preference files 04/2604/1 release/1.35.0
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
(cherry picked from commit ee0957268648de34008bee0076cd82fa3a7801b2)

5 years agoPassing data between tooltip check and content creation. 92/2492/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

5 years agoFixed context menu popup location for HiDPI displays with display zoom 60/2460/1
Tuukka Lehtonen [Thu, 18 Oct 2018 10:49:37 +0000 (13:49 +0300)]
Fixed context menu popup location for HiDPI displays with display zoom

gitlab #152

Change-Id: If7ca761cf305daa4ecfd837af75c93eae285df1a
(cherry picked from commit 4fc32fefc5bd05dd9f41e879fce4cfe2e601af71)

5 years agoMerge "Fix ErrorLogger e.printStackTrace() calls to utilize Logger" into release...
Tuukka Lehtonen [Wed, 7 Nov 2018 12:53:51 +0000 (12:53 +0000)]
Merge "Fix ErrorLogger e.printStackTrace() calls to utilize Logger" into release/1.35.0

5 years agoFix ErrorLogger e.printStackTrace() calls to utilize Logger 30/2430/1
jsimomaa [Wed, 7 Nov 2018 09:23:34 +0000 (11:23 +0200)]
Fix ErrorLogger e.printStackTrace() calls to utilize Logger

gitlab #182

Change-Id: I5903cd25c70de18b4bf21714d4a1106ccf3dfed7
(cherry picked from commit 62fc65d6dff5acd55e872d7314a617d618c66d04)

5 years agoChange L0.Value => L0.Property to fix variable exceptions 29/2429/1
jsimomaa [Wed, 7 Nov 2018 09:20:20 +0000 (11:20 +0200)]
Change L0.Value => L0.Property to fix variable exceptions

gitlab #181

Change-Id: Ie4896ad911681d6047f05002c2e2e1a96b1f5416
(cherry picked from commit 7fa05b5ad0338cce0fcf0a2572cab60e822d702a)

5 years agoAdded inline filtering support for property name editing in UC editor 16/2416/1
Tuukka Lehtonen [Fri, 2 Nov 2018 13:32:20 +0000 (15:32 +0200)]
Added inline filtering support for property name editing in UC editor

This makes it easier to implement filters like uppercasing and replacing
certain characters as one types.

gitlab #161

Change-Id: Ic7785c78d51660654e2afe26fd524a96179ceafc
(cherry picked from commit bbe9703c72de21f7d8349bc4d51b23282a8cb6cf)

5 years agoFixed ComponentTypeCommands.setUnit to support unit == null 96/2396/1
Tuukka Lehtonen [Tue, 30 Oct 2018 11:14:56 +0000 (13:14 +0200)]
Fixed ComponentTypeCommands.setUnit to support unit == null

If unit is null, also L0X.HasUnit should be removed.

gitlab #161

Change-Id: I0e6ba32917e6281803c7bbe8b94832291e58db9a
(cherry picked from commit 4e402f51b0e34d40c3f9d33a4bec7feffeb8d339)

5 years agoAdded possibility to directly schedule filter setting type URI 82/2382/1
Tuukka Lehtonen [Tue, 30 Oct 2018 07:23:54 +0000 (09:23 +0200)]
Added possibility to directly schedule filter setting type URI

Also changed the typeURI load to directly set the filter text instead of
scheduling it to be set after a quiet time (500ms). This makes way for a
bit cleaner UI experience.

gitlab #140

Change-Id: If999ccf69182e56da2f520e2922ba2a7ed26ffdc
(cherry picked from commit eb81a8ba87fabc50f712525508c938080d98da10)

5 years agoAdded editable unit for derived properties 71/2371/1
Tuukka Lehtonen [Sat, 27 Oct 2018 20:20:29 +0000 (23:20 +0300)]
Added editable unit for derived properties

gitlab #161

Change-Id: I81a7dc60fa0c4d4173dbfa128a509e7e2bfa18e9
(cherry picked from commit 72d52b5910e1ed0141b6768ef700e7321ac05553)

5 years agoUse AlphaNum sorter in Symbol Library 55/2355/2
Marko Luukkainen [Thu, 25 Oct 2018 10:20:07 +0000 (13:20 +0300)]
Use AlphaNum sorter in Symbol Library

gitlab #158

Change-Id: I753ff1f6fcb0acda780f18645f489850147a5c4c

5 years agoConnectionTool fixes for overlapping terminals 54/2354/2
Marko Luukkainen [Thu, 25 Oct 2018 10:11:25 +0000 (13:11 +0300)]
ConnectionTool fixes for overlapping terminals

gitlab #157

Change-Id: If011efcf774e18165e6ae1e62907dffe2c6a21f0

5 years agoFixed history data collection minmax stream updates and plot rendering 40/2340/1
Tuukka Lehtonen [Fri, 19 Oct 2018 12:22:27 +0000 (15:22 +0300)]
Fixed history data collection minmax stream updates and plot rendering

After commit 30ca6dab the chart was rendering all plots as SAMPLING
instead of LINE because the commit changed all stream items' endTime
update logic to actually for all streams instead of just the minmax
stream. The fix was to change the plot rendering to still render
diagonal lines instead of step functions regardless of of the start and
end time of each history stream value band are. The lines vs. sampling
settings is now solely based on the chart rendering preferences.

gitlab #35

Change-Id: I9f8872994870bdedbf0708bb77beceab1c884313
(cherry picked from commit fee871302ad4c53ca2c2307bd13366d99116d930)

5 years agoFaster bounds calculation for zoom to selection and navigate to target 35/2335/1
Tuukka Lehtonen [Thu, 18 Oct 2018 10:45:45 +0000 (13:45 +0300)]
Faster bounds calculation for zoom to selection and navigate to target

gitlab #151

Change-Id: If72f62ea8c5ce4789bc8331eb598668091158ab6
(cherry picked from commit 13edeabfa275ed09f6fa1b76923a96a1172fdc22)

5 years agoFix org.simantics.scl.tutorial classpath and build.properties 20/2320/1
Tuukka Lehtonen [Wed, 17 Oct 2018 09:35:54 +0000 (12:35 +0300)]
Fix org.simantics.scl.tutorial classpath and build.properties

Removed source and bin directories from build path since there is no
source code in this bundle.

gitlab #138

Change-Id: I72cfc2a47d6a8d8b85239b4cec095160c7d9d107
(cherry picked from commit fb1256f2cfbd58b316317ea8777bfe91fd93ccda)

5 years agoImport org.simantics.scl.tutorial from incubator SVN repo
Tuukka Lehtonen [Fri, 28 Sep 2018 12:41:34 +0000 (15:41 +0300)]
Import org.simantics.scl.tutorial from incubator SVN repo

gitlab #138

Change-Id: Ic3590a2992612847294a0db960e485dd3c7bbbf9
(cherry picked from commit e0f2b602b8c67f642b1a88ef588b401f4e64a553)

5 years agoAdding column data to tooltip event could cause NPE 13/2313/2
Marko Luukkainen [Tue, 16 Oct 2018 07:28:07 +0000 (10:28 +0300)]
Adding column data to tooltip event could cause NPE

gitlab #146

Change-Id: I4ce48cc851638fd5cd38bab77763fdfec9c48ed9

5 years agoFixed another source of deadlocks in DynamicExperimentThread. 09/2309/2
Reino Ruusu [Fri, 12 Oct 2018 11:39:29 +0000 (14:39 +0300)]
Fixed another source of deadlocks in DynamicExperimentThread.

gitlab #136

Change-Id: Iabeef360c93d617a38cbc7883533c3cb487ae6f2

5 years agoExpose helpContextId resolving to other implementations 99/2299/3
Marko Luukkainen [Thu, 11 Oct 2018 11:13:14 +0000 (14:13 +0300)]
Expose helpContextId resolving to other implementations

gitlab #147

Change-Id: I34fd73a223a8ca00b89397f59870b6442411d4c6

5 years agoAllow column specific tooltips in the GraphExplorer 98/2298/2
Marko Luukkainen [Thu, 11 Oct 2018 11:12:36 +0000 (14:12 +0300)]
Allow column specific tooltips in the GraphExplorer

gitlab #146

Change-Id: I8c07e3013783ffd31fba95391e0b8ba35b855b84

5 years agoType specific graph explorer filter area 70/2270/1
Marko Luukkainen [Tue, 2 Oct 2018 09:15:16 +0000 (12:15 +0300)]
Type specific graph explorer filter area

gitlab #140

Change-Id: I62c0323cabfcf448f037f7cf3cc4fd3f7d2b65d6
(cherry picked from commit ad09d0837dcd03c6925ca1154d70c930aa622c9c)

5 years agoFixed race condition in DynamicExperimentThread. 48/2248/1
Reino Ruusu [Wed, 26 Sep 2018 10:58:58 +0000 (13:58 +0300)]
Fixed race condition in DynamicExperimentThread.

gitlab #136

Change-Id: I533e274bef62e7ce939c9a67a37d8e86d6f38bce
(cherry picked from commit 1b6efbcb17b7cf648145f83b1a82f6e1c1dce22e)

5 years agoNew parametrisation of OpenDiagramFromConfigurationAdapter.openEditor 18/2218/1
Tuukka Lehtonen [Thu, 20 Sep 2018 12:53:35 +0000 (15:53 +0300)]
New parametrisation of OpenDiagramFromConfigurationAdapter.openEditor

The new method allows giving Resource model and RVI arguments for
ResourceEditorInput2 externally.

gitlab #130

Change-Id: I1c70e2e7548047a376b4a8b0f3797a70564f0dc0
(cherry picked from commit 08f4d03f521f01e2482c9dda8b314571ea8c35c3)

5 years agoFixed diagram mouse wheel zooming for HiDPI monitors with zoom
Tuukka Lehtonen [Tue, 18 Sep 2018 21:45:25 +0000 (00:45 +0300)]
Fixed diagram mouse wheel zooming for HiDPI monitors with zoom

SWTMouseEventAdapter now upscales coordinates which previously were just
passed to G2D as SWT API coordinates, not pixel coordinates.

gitlab #119

Change-Id: Icd3e00d1e515007f8573f7910783762a26916615
(cherry picked from commit a45f69c08e4157a565cddce93bbf17aa64da2e2f)
(cherry picked from commit b2f1da4c219c646ba3fce0498bf757d64c6dca6d)

5 years agoSmall fix for SWTDPIUtil to prevent uninitialized use
Tuukka Lehtonen [Mon, 17 Sep 2018 12:34:42 +0000 (15:34 +0300)]
Small fix for SWTDPIUtil to prevent uninitialized use

gitlab #119

Change-Id: I27779078dca87927b9700a1acc3b26aed7cca308
(cherry picked from commit 1adc3807dea544d29512510dc9546ec65b72e389)

5 years agoSmall but effective HiDPI fixes for platform G2D
Tuukka Lehtonen [Sun, 16 Sep 2018 12:25:59 +0000 (15:25 +0300)]
Small but effective HiDPI fixes for platform G2D

* GalleryViewer now scales accoring to swt.autoScale setting
* SWTPopupMenuParticipant now properly downscales pixel coordinates to
  SWT API coordinates
* Default symbol title font size is now 12 which is more readable by
  default now that the font size is scaled more correctly than before

gitlab #119

Change-Id: I9ced77879e367efd905138798b18c3fb908e5b21
(cherry picked from commit 181013801c831415efe3cfe346546b5ab62c3214)

5 years agoAdded new ExperimentRuns.createRun utility 01/2201/1
Tuukka Lehtonen [Tue, 18 Sep 2018 20:45:22 +0000 (23:45 +0300)]
Added new ExperimentRuns.createRun utility

The new method was added because more control was needed on whether
attachStateListener is invoked or not.

gitlab #126

Change-Id: I7132cb1bd2bd734403382b2d35c169510c8ea433
(cherry picked from commit 7903eb7d1e0e004cfa05a8775fda95e556b5727b)

5 years agoAdded new diagram element transformation function rotateToNeighborSlope
jsimomaa [Sat, 1 Sep 2018 12:12:15 +0000 (15:12 +0300)]
Added new diagram element transformation function rotateToNeighborSlope

gitlab #97

Change-Id: I0a86ea5c8bc3f5c6d3019715580e38cd1483d85b
(cherry picked from commit 3e877b48594c98cff85f4db64964f86fe14c0f03)

5 years agoToggleFocusabilityHandler now updates UI state on active part change
Tuukka Lehtonen [Wed, 29 Aug 2018 17:57:57 +0000 (20:57 +0300)]
ToggleFocusabilityHandler now updates UI state on active part change

gitlab #93

Change-Id: I1e9fd3f5190149529d6b3f9882b238c62745c154
(cherry picked from commit f4b65f5afe961edc8d5e1696f32c8efbb8ea48f6)

5 years agoAvoid unnecessary ElementClass validation work
Tuukka Lehtonen [Mon, 27 Aug 2018 21:21:33 +0000 (00:21 +0300)]
Avoid unnecessary ElementClass validation work

GraphToDiagramSynchronizer.SubstituteElementClassImpl can safely ignore
ElementClass validation checks which speeds loading up a bit for very
large diagrams.

gitlab #90

Change-Id: I2aa561cbad8de034362a4a298272d3faa8242537
(cherry picked from commit bb2be932187c70082a01e12e1f451dd06650a48c)

5 years agoSwitch MapList to use Java HashMap
Tuukka Lehtonen [Mon, 27 Aug 2018 21:17:48 +0000 (00:17 +0300)]
Switch MapList to use Java HashMap

Java HashMap is more efficient than Trove THashMap already in JDK 8.

gitlab #89

Change-Id: I9eb9be8a513ad1cd90b8f6f4a45aca99bba9234b
(cherry picked from commit c4f4133d961fb96ae7a99c86678cb09fb9aff1f5)

5 years agoDebug logging through SLF4J Logger for Expressions
Tuukka Lehtonen [Mon, 27 Aug 2018 14:01:39 +0000 (17:01 +0300)]
Debug logging through SLF4J Logger for Expressions

gitlab #88

Change-Id: I7917e8a207e99bf92feab50291bcb3d85e108cf3
(cherry picked from commit a43df9e895f022132f9b94dfedeae78fb4eed712)

5 years agoRender last known value in time series chart hairline value tip
Tuukka Lehtonen [Tue, 21 Aug 2018 15:54:52 +0000 (18:54 +0300)]
Render last known value in time series chart hairline value tip

Previously if a history item's data stream did not (yet) contain a value
with a timestamp >= than the chart hairline time, the value time on top
of the chart would not paint any value at all for that item. The best
thing the chart can do in such circumstances to prevent unwanted visual
skipping in the UI is to paint the last known sample's value regardless
of its endTime value.

gitlab #85

Change-Id: I362a19b8699c8c4a96240ddfc3fd68a91d6bbd06
(cherry picked from commit e2e0b33c6a7b55c4b0f7a268dd37e545feefc5a2)

5 years agoImproved Bindings.getBinding(Class) caching for Datatype.class
Tuukka Lehtonen [Fri, 17 Aug 2018 08:23:20 +0000 (11:23 +0300)]
Improved Bindings.getBinding(Class) caching for Datatype.class

Previously Datatype.class binding was never cached nor statically
constructed and made available as Bindings.DATATYPE which is only
sensible because Datatype class is a central building block of Databoard
and therefore its binding should also be readily available instead of
all clients having to request for it separately.

A weak hashmap cache was also added for signature strings in
BindingRequest because it was noticed that in conditions where code
makes a lot of requests for uncached binding, the cost of String
construction in BindingRequest.getSignature starts to dominate
cpu/memory costs. Two main problems in there were: constantly creating
new strings and using the very inefficient String.replaceAll instead of
String.replace(char, char).

gitlab #82

Change-Id: I50fbbc2bbe1e5d6b8b5864c3aed4c228022e66dc
(cherry picked from commit a1696e5257fae039410c924155fdeffc1ce1b3e9)

5 years agoRemove duplicate InputChannel inner classes
jsimomaa [Fri, 3 Aug 2018 07:48:11 +0000 (10:48 +0300)]
Remove duplicate InputChannel inner classes

gitlab #73

Change-Id: I5ef3948f8b3437345536bd7e121cb3443d8fe26f
(cherry picked from commit 59cab457bcc89618e8557235fd65eaecbe583592)

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

gitlab #75

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

5 years agoAlways write model activation information in activations VG
Tuukka Lehtonen [Fri, 3 Aug 2018 05:32:00 +0000 (08:32 +0300)]
Always write model activation information in activations VG

gitlab #72

Change-Id: Iae03fee489bfb3b50797dc2cd271e65ec535133a
(cherry picked from commit 0d600d71de7dfab22bdcd0588cd792800bfe3a8c)

5 years agoGeneric <String, Object> property map for tree node structure 69/2069/1
Tuukka Lehtonen [Mon, 27 Aug 2018 14:00:02 +0000 (17:00 +0300)]
Generic <String, Object> property map for tree node structure

Allows requests generating these nodes to mark them with any data to be
used later in UI or elsewhere.

gitlab #87

Change-Id: Ifa0e0d6cd9be342057ff150e721cebe50105197f
(cherry picked from commit 6de980c76c96ea34c5824aca8916ddb61f64f2ff)

5 years agoCheck if root allows paste only for non-null target root to prevent NPE 41/2041/1
Jussi Koskela [Mon, 20 Aug 2018 06:24:34 +0000 (09:24 +0300)]
Check if root allows paste only for non-null target root to prevent NPE

gitlab #84

Change-Id: I7d736e78928bc203bfb05e72af31e16d204bdc32
(cherry picked from commit 3a2595f9c5b8a3c6d98add2e869678b26662fde9)

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

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

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

gitlab #86

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

5 years agoUse given base name when exporting tg file along with shared library 99/1999/1
Jussi Koskela [Thu, 9 Aug 2018 10:22:16 +0000 (13:22 +0300)]
Use given base name when exporting tg file along with shared library

gitlab #79

Change-Id: I7cec6fe1546475a40de09514d8aeb8b219b290fa
(cherry picked from commit cdfd997cc5118a9fb08a73f35c6f7306308abd86)

5 years agoConfigured release/1.35.0 branch for SDK builds
Tuukka Lehtonen [Thu, 2 Aug 2018 20:05:22 +0000 (23:05 +0300)]
Configured release/1.35.0 branch for SDK builds

gitlab #71

5 years agoIConnectionPoint and canBeConnected-checking util to SCL 65/1965/4
jsimomaa [Fri, 27 Jul 2018 07:19:12 +0000 (10:19 +0300)]
IConnectionPoint and canBeConnected-checking util to SCL

gitlab #67

Change-Id: I7bcb4a3c415dd480cc7b4621ed6b18f1a277d83c