simantics/platform.git
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)

9 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"

9 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

9 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

9 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

9 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

9 months agoStill fixes history collection value band endTime setting and rendering 44/2444/2
Tuukka Lehtonen [Fri, 9 Nov 2018 12:04:08 +0000 (14:04 +0200)]
Still fixes history collection value band endTime setting and rendering

Previous changes set value band end time to be the same as the next
value band's start time. However this caused the problem that there is
no way of telling during rendering where exactly within the previous
value band did the band's value go out of dead band and since t_end does
not tell us this. This means that line-rendering (not stepped sample
rendering) will get drawn invalidly if t_end > t_begin within a value
band.

The fix was to set t_end to the last timestamp where the value was still
within deadband, i.e:
```
|t0    t0_end  |               VALUE BAND #0 t0 < t0_end
|      |       |t1      |      VALUE BAND #1 t1 = t1_end
|      |       |t1_end  |
|      |       |        |t2... VALUE BAND #2
ts0----ts1---- ts2------ts3---
v=0    v=0     v=1      v=2
```

gitlab #35

Change-Id: I073d1aed0d3ce0ffe30081937fdd7ff1c22dc107

9 months agoUsability fixes for GraphExplorerImpl -related WB selection propagation 33/2433/5
Tuukka Lehtonen [Thu, 8 Nov 2018 09:51:17 +0000 (11:51 +0200)]
Usability fixes for GraphExplorerImpl -related WB selection propagation

GraphExplorerImpl now uses JFace's OpenStrategy to implement the post
selection provider mechanism which should work just like in JFace
Viewers.

SWTExplorer no longer listens to both selection and postSelection
changes, which caused large amounts of unnecessary selection propagation
to happen. It listens to postSelection if IPostSelectionProvider is
available and selection if not.

ModelledView did not implement IPostSelectionProvider at all and
provided just an ISelectionProvider to the workbench. This partially
caused other parts, like the property view to always react to model
browser selection changes via immediate selection events instad of post
selection events.

The important lesson here is to just listen to either postSelection or
selection, not both.

gitlab #184
gitlab #185

Change-Id: I57fd7b6663bfa06f05105f6fa01e8d9a710c0ce0

9 months agoMerge "Function printingToLogging redirecting print commands to logging"
Tuukka Lehtonen [Thu, 8 Nov 2018 12:25:21 +0000 (12:25 +0000)]
Merge "Function printingToLogging redirecting print commands to logging"

9 months agoAdded empty .keep file to org.simantics.jdbc.ontology/src 37/2437/1
Hannu Niemistö [Thu, 8 Nov 2018 11:24:07 +0000 (13:24 +0200)]
Added empty .keep file to org.simantics.jdbc.ontology/src

Change-Id: I671d1ac2789661e15fba0f5766b270e654f0e433

9 months agoFunction printingToLogging redirecting print commands to logging 36/2436/1
Hannu Niemistö [Thu, 8 Nov 2018 11:01:11 +0000 (13:01 +0200)]
Function printingToLogging redirecting print commands to logging

gitlab #178

Change-Id: I4ec4f47c463c3a641eb3de513f91d7212125b931

9 months agoAdd DatabaseJob.inProgress() checking to certain UI-handlers 31/2431/2
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

9 months agoInitial support for concurrency in databoard, bindings and serializers 22/2422/4
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

9 months agoAdd org.eclipse.ui.monitoring to org.simantics.rcp feature 28/2428/2
Tuukka Lehtonen [Wed, 7 Nov 2018 12:18:53 +0000 (14:18 +0200)]
Add org.eclipse.ui.monitoring to org.simantics.rcp feature

This allows users to enable UI freeze analysis in products making it
easier for developers to analyze freezing problems without building
debug versions.

gitlab #183

Change-Id: I6eeac7371914cd60a1d58ddbc3c708678a0f7f2f

9 months agoFix ErrorLogger e.printStackTrace() calls to utilize Logger 25/2425/2
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

9 months agoChange L0.Value => L0.Property to fix variable exceptions 24/2424/2
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

9 months agoAdded Simantics/Diagram/{withScale,transformElement,transformElements} 20/2420/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

9 months agoAdded support for creating markers and changing MDC in SCL logging 17/2417/1
Hannu Niemistö [Fri, 2 Nov 2018 14:13:48 +0000 (16:13 +0200)]
Added support for creating markers and changing MDC in SCL logging

gitlab #178

Change-Id: Id2996c969d3812a6ff9c20fca88307d629be7354

9 months agoMerge "Added inline filtering support for property name editing in UC editor"
Tuukka Lehtonen [Fri, 2 Nov 2018 13:59:52 +0000 (13:59 +0000)]
Merge "Added inline filtering support for property name editing in UC editor"

9 months agoAdded inline filtering support for property name editing in UC editor 13/2413/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

9 months agoAdded first and last functions to MList module 12/2412/2
Tuukka Lehtonen [Fri, 2 Nov 2018 13:26:39 +0000 (15:26 +0200)]
Added first and last functions to MList module

gitlab #177

Change-Id: I6cdcbbbe91f5074747eba64a9439e4f3ed123d60

9 months agoAdd zeroturnaround to p2 site build's pom.xml 10/2410/3
Miro Richard Eklund [Fri, 2 Nov 2018 12:46:24 +0000 (14:46 +0200)]
Add zeroturnaround to p2 site build's pom.xml

Simantics p2 site now includes org.zeroturnaround:zt-exec
Added .target and .tpd definitions

gitlab #176
closes #176

Change-Id: I254712ce6cbed2d258cb6eb19f1d1b9882a87ad5

9 months agoMerge "Fixed invalid comparisons which were identified by Eclipse IDE 2018-09"
Tuukka Lehtonen [Tue, 30 Oct 2018 11:55:18 +0000 (11:55 +0000)]
Merge "Fixed invalid comparisons which were identified by Eclipse IDE 2018-09"

9 months agoFixed ComponentTypeCommands.setUnit to support unit == null 95/2395/2
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

9 months agoFixed invalid comparisons which were identified by Eclipse IDE 2018-09 93/2393/1
Tuukka Lehtonen [Tue, 30 Oct 2018 11:01:34 +0000 (13:01 +0200)]
Fixed invalid comparisons which were identified by Eclipse IDE 2018-09

gitlab #171

Change-Id: I357469f6cbef6c099e59d3a378ef531c0eca8e5f

9 months agoAdded missing Automatic-module-name headers and fixed split package 90/2390/2
Tuukka Lehtonen [Tue, 30 Oct 2018 10:02:32 +0000 (12:02 +0200)]
Added missing Automatic-module-name headers and fixed split package

org.simantics.jdbc and org.simantics.jdbc.ontology had a split package
problem with package org.simantics.jdbc. JDBCResource was moved to
org.simantics.jdbc.ontology as it should have been.

gitlab #125
gitlab #165

Change-Id: I308d53c968ba0812f86554e38b8bbd0b487434b6

9 months agoUtility for creating NodeContext with NodeType from SCL 86/2386/3
jsimomaa [Tue, 30 Oct 2018 09:05:32 +0000 (11:05 +0200)]
Utility for creating NodeContext with NodeType from SCL

gitlab #170

Change-Id: I88b163f6ca30d5dfebc42ff3aa590a7426614e48

9 months agoMerge "Variable optimizations for documents (Simupedia). There will be multiple incre...
Tuukka Lehtonen [Tue, 30 Oct 2018 08:12:50 +0000 (08:12 +0000)]
Merge "Variable optimizations for documents (Simupedia). There will be multiple incremental commits for this."

9 months agoAdded possibility to directly schedule filter setting type URI 81/2381/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

9 months agoVariable optimizations for documents (Simupedia). 80/2380/1
Antti Villberg [Tue, 30 Oct 2018 07:22:54 +0000 (09:22 +0200)]
Variable optimizations for documents (Simupedia).
There will be multiple incremental commits for this.

gitlab #169

Change-Id: Ia97ac85a5f83a52e24bb3147f0a9f9f294e2c87d

9 months agoAssertion template for L0.SCLValue 78/2378/1
Antti Villberg [Tue, 30 Oct 2018 06:40:11 +0000 (08:40 +0200)]
Assertion template for L0.SCLValue

gitlab #167

Change-Id: Id70da776333c56e70516a3449bdbff03df18fa40

9 months agoAdd missing grpc and aries spifly dependencies to simantics.target 73/2373/1
jsimomaa [Mon, 29 Oct 2018 12:48:05 +0000 (14:48 +0200)]
Add missing grpc and aries spifly dependencies to simantics.target

gitlab #166

Change-Id: Ifd26fc7f242d007a3194477bccd757aff34c4a83

9 months agoMerge "Added Automatic-module-name to all bundles for Java 9 JPMS compatibility"
Tuukka Lehtonen [Mon, 29 Oct 2018 11:14:28 +0000 (11:14 +0000)]
Merge "Added Automatic-module-name to all bundles for Java 9 JPMS compatibility"

9 months agoMerge "UI locking fixes for GraphExplorer implementations"
Tuukka Lehtonen [Sat, 27 Oct 2018 21:42:49 +0000 (21:42 +0000)]
Merge "UI locking fixes for GraphExplorer implementations"

9 months agoMerge "Refactoring of simulator toolkit"
Tuukka Lehtonen [Sat, 27 Oct 2018 21:24:35 +0000 (21:24 +0000)]
Merge "Refactoring of simulator toolkit"

9 months agoUI locking fixes for GraphExplorer implementations 69/2369/4
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

9 months agoRefactoring of simulator toolkit 64/2364/2
Antti Villberg [Fri, 26 Oct 2018 11:54:42 +0000 (14:54 +0300)]
Refactoring of simulator toolkit

gitlab #162

Change-Id: Id68f68667a1ad5840eccbd53a4b8ec81483c0cdb

9 months agoAdded editable unit for derived properties 70/2370/2
Tuukka Lehtonen [Sat, 27 Oct 2018 20:20:29 +0000 (23:20 +0300)]
Added editable unit for derived properties

gitlab #161

Change-Id: I81a7dc60fa0c4d4173dbfa128a509e7e2bfa18e9

9 months agoAdded Automatic-module-name to all bundles for Java 9 JPMS compatibility 68/2368/1
Tuukka Lehtonen [Sat, 27 Oct 2018 15:27:42 +0000 (18:27 +0300)]
Added Automatic-module-name to all bundles for Java 9 JPMS compatibility

gitlab #165

Change-Id: I3794e574412221557effd8c0dabf9e10dfa5bbe3

9 months agoOpenJ9 compatibility for SCL compiler's naming of ontology modules 67/2367/1
Tuukka Lehtonen [Sat, 27 Oct 2018 14:42:14 +0000 (17:42 +0300)]
OpenJ9 compatibility for SCL compiler's naming of ontology modules

The problem was these errors coming from ClassLoader.defineClassImpl
when the generated class name contained two '/' characters in a row:

java.lang.ClassFormatError: JVMCFRE068 class name is invalid;
class=scl/http_58_//Projects/Development_37_20Project/Model/SCLMain,
offset=0

More escaping was added to fix this.

gitlab #159

Change-Id: I01f8b17b1230cbf06051848b23c805e8d2d61c96

9 months agoMerge "New implementation NearestOwnerFinder of CommonDBUtils.getNearestOwner"
Tuukka Lehtonen [Fri, 26 Oct 2018 18:20:46 +0000 (18:20 +0000)]
Merge "New implementation NearestOwnerFinder of CommonDBUtils.getNearestOwner"

9 months agoNew implementation NearestOwnerFinder of CommonDBUtils.getNearestOwner 66/2366/1
Hannu Niemistö [Fri, 26 Oct 2018 13:19:20 +0000 (16:19 +0300)]
New implementation NearestOwnerFinder of CommonDBUtils.getNearestOwner

Deprecated CommonDBUtils.getNearestOwner and replaced most of its uses
by new methods in the class NearestOwnerFinder. Note that this modifies
the behavior in some previously unclear cases.

gitlab #163

Change-Id: Ic56671ee549765ce67fa574967c103f2ab7aac0e

9 months agoMerge "Prevent infinite recursion in getNearestOwner"
Tuukka Lehtonen [Thu, 25 Oct 2018 20:26:23 +0000 (20:26 +0000)]
Merge "Prevent infinite recursion in getNearestOwner"

9 months agoUse AlphaNum sorter in Symbol Library 58/2358/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
(cherry picked from commit 05269c19e7da21a4d1412c033c234d3baa97cc48)

9 months agoConnectionTool fixes for overlapping terminals 57/2357/1
Marko Luukkainen [Thu, 25 Oct 2018 10:11:25 +0000 (13:11 +0300)]
ConnectionTool fixes for overlapping terminals

gitlab #157

Change-Id: If011efcf774e18165e6ae1e62907dffe2c6a21f0
(cherry picked from commit 2deeabb9a7e3ff22bfd7abe2c7c812df9da45189)

10 months agoPrevent infinite recursion in getNearestOwner 49/2349/1
Hannu Niemistö [Wed, 24 Oct 2018 10:57:06 +0000 (13:57 +0300)]
Prevent infinite recursion in getNearestOwner

Change-Id: I58e0646daba1e41d9013085501bc1cee8fde1f13

10 months agoPossible variable browse without URI 48/2348/2
jsimomaa [Mon, 22 Oct 2018 11:56:44 +0000 (14:56 +0300)]
Possible variable browse without URI

gitlab #154

Change-Id: I394bac9a1aa74abeb5f261fa77cd08cbdf0b90ea

10 months agoFixed history data collection minmax stream updates and plot rendering 39/2339/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

10 months agoMerge changes If756e157,I80cfb90e
Tuukka Lehtonen [Thu, 18 Oct 2018 13:27:45 +0000 (13:27 +0000)]
Merge changes If756e157,I80cfb90e

* changes:
  Support Json content as drop data in Graphical Debugger
  Support DnD from diagram to graphical debugger

10 months agoSupport Json content as drop data in Graphical Debugger 33/2333/1
Hannu Niemistö [Thu, 18 Oct 2018 11:58:26 +0000 (14:58 +0300)]
Support Json content as drop data in Graphical Debugger

gitlab #153

Change-Id: If756e157b7057534ea55a61745feb560904a64c0

10 months agoSupport DnD from diagram to graphical debugger 32/2332/1
Hannu Niemistö [Thu, 18 Oct 2018 10:15:31 +0000 (13:15 +0300)]
Support DnD from diagram to graphical debugger

Change-Id: I80cfb90e6f6a009c0fc4c6b84523c7bc7de05ff0

10 months agoFixed context menu popup location for HiDPI displays with display zoom 31/2331/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

10 months agoFaster bounds calculation for zoom to selection and navigate to target 30/2330/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

10 months agoMade SCLExpressionIssueProvider component requests synchronous 29/2329/2
Hannu Niemistö [Thu, 18 Oct 2018 10:13:33 +0000 (13:13 +0300)]
Made SCLExpressionIssueProvider component requests synchronous

gitlab #149

Change-Id: I1104380dd544f3bc957cd008e46e9b284dd2f207

10 months agoAdded resourceId and GUID to diagram DnD content 28/2328/4
Hannu Niemistö [Thu, 18 Oct 2018 07:56:20 +0000 (10:56 +0300)]
Added resourceId and GUID to diagram DnD content

gitlab #150

Change-Id: I2a012199f5d7e11991b640d7187132e7b5f0d2f3

10 months agoMerge "Removed extra modules OntologyModule imported to namespace"
Tuukka Lehtonen [Thu, 18 Oct 2018 10:34:23 +0000 (10:34 +0000)]
Merge "Removed extra modules OntologyModule imported to namespace"

10 months agoRemoved extra modules OntologyModule imported to namespace 27/2327/2
Hannu Niemistö [Thu, 18 Oct 2018 07:49:37 +0000 (10:49 +0300)]
Removed extra modules OntologyModule imported to namespace

While fixing the problem, added some error logging in OntologyModule
implementation

gitlab #131

Change-Id: Ib36590f0901ed8a542afe4c9a225606c1f2109d8

10 months agoMerge "Log some information about missing property in SCLLabelRule"
Hannu Niemistö [Wed, 17 Oct 2018 11:57:58 +0000 (11:57 +0000)]
Merge "Log some information about missing property in SCLLabelRule"

10 months agoLog some information about missing property in SCLLabelRule 22/2322/1
Hannu Niemistö [Wed, 17 Oct 2018 10:16:47 +0000 (13:16 +0300)]
Log some information about missing property in SCLLabelRule

Change-Id: I6237c54f3760603a1184c015d81de99f1302a3ae

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

Change-Id: I0929253a6c8f7a4da0a19a73dd8e96c2a2696770

10 months agoFix org.simantics.scl.tutorial classpath and build.properties 19/2319/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