simantics/platform.git
4 months agoSort symbol item contributions alphanumerically, not lexicographically 86/3786/1
Tuukka Lehtonen [Thu, 16 Jan 2020 08:15:27 +0000 (10:15 +0200)]
Sort symbol item contributions alphanumerically, not lexicographically

gitlab #445

Change-Id: I5efebb587654644a1f7cac85bdc03aea209dff2f

4 months agoMerge "Implement equals/hashCode for PropertyInfo"
Tuukka Lehtonen [Mon, 13 Jan 2020 20:09:19 +0000 (20:09 +0000)]
Merge "Implement equals/hashCode for PropertyInfo"

4 months agoExpose TransferableGraphImportProcess Resources table. 41/3741/1
Marko Luukkainen [Wed, 18 Dec 2019 10:34:09 +0000 (12:34 +0200)]
Expose TransferableGraphImportProcess Resources table.

This allows us to process the Resources with ImportAdvisor.beforeWrite()

gitlab #433

Change-Id: I4537549167e4816bb888b5891aea7e98d84b9184
(cherry picked from commit 680b5fe108fc6929d40785c76ec7444bbb092f51)

4 months agoMerge "TransferableGraph import to VG with different name"
Marko Luukkainen [Mon, 13 Jan 2020 13:57:22 +0000 (13:57 +0000)]
Merge "TransferableGraph import to VG with different name"

4 months agoTransferableGraph import to VG with different name 40/3740/1
Marko Luukkainen [Tue, 17 Dec 2019 12:23:30 +0000 (14:23 +0200)]
TransferableGraph import to VG with different name

* Root are processed first during tg import, which allows Import Advisor
to replace the current name.

gitlab #432

Change-Id: Ia297b4df4c0ad1895a985f592064a178a6c4fb10
(cherry picked from commit c85fa803ee6833f46532097250ba0c3ac5ace86c)

4 months agoUpgrade to Nattable release 1.6.0 from 1.5.0 76/3776/1
Tuukka Lehtonen [Mon, 13 Jan 2020 13:17:05 +0000 (15:17 +0200)]
Upgrade to Nattable release 1.6.0 from 1.5.0

gitlab #443

Change-Id: I840a9e60e35a668631feb48aae2e8f30b5b73326

4 months agoImplement equals/hashCode for PropertyInfo 71/3771/2
Antti Villberg [Sat, 11 Jan 2020 11:09:28 +0000 (13:09 +0200)]
Implement equals/hashCode for PropertyInfo

Take immutability into account.

gitlab #442

Change-Id: I0c2fe55c691537e91af6449ec544a4eec824092f

4 months agoImplement equals/hashCode for PropertyInfo 69/3769/1
Antti Villberg [Thu, 9 Jan 2020 13:27:17 +0000 (15:27 +0200)]
Implement equals/hashCode for PropertyInfo

gitlab #442

Change-Id: I6f6d2fc1f7266dbdd7bacf24751d9ab6b9dd94ac

4 months agoMake StandardVariableBuilder singleton 68/3768/1
Antti Villberg [Thu, 9 Jan 2020 12:54:45 +0000 (14:54 +0200)]
Make StandardVariableBuilder singleton

gitlab #441

Change-Id: I28bb5ccb8f5164e3bbe4f0e0c68d4b221cb35d24

4 months agoMainProgram polls nanoTime too often 65/3765/1
Antti Villberg [Thu, 9 Jan 2020 11:59:08 +0000 (13:59 +0200)]
MainProgram polls nanoTime too often

gitlab #440

Change-Id: I9d6b1514907682b990ae21588ced70b35f5ed6f5

4 months agoBrowseContext creation fails when including invalid contributions 63/3763/1
Antti Villberg [Thu, 9 Jan 2020 09:44:36 +0000 (11:44 +0200)]
BrowseContext creation fails when including invalid contributions

gitlab #439

Change-Id: Ie985db8ac57c43c081a77df390c48e7b32c1042f

4 months agoAdded new field TypeId to dependency index for exact type searching 58/3758/1
Tuukka Lehtonen [Fri, 3 Jan 2020 11:51:33 +0000 (13:51 +0200)]
Added new field TypeId to dependency index for exact type searching

The new field is String-valued and contains a concatenation of the
resource ids of a resource's type hierarchy, separated by a whitespace,
for example `41233 12423 1233`. This field uses the WhitespaceAnalyzer,
i.e. its contents are tokenized by whitespace and thus searches like
`TypeId:41233` will return exactly those resources that are instances of
the type resource `41233`.

This commit also simplifies and fixes some of the existing index
searching code to use this new field instead of the old `Types` field
for type-based searching.

If existing product-code uses the indexing facilities directly and not
through `QueryIndexUtils` or `Instances`, such code will also require
changes to take this new field into use.

See `IndexQueries` to form queries related to this field.

gitlab #438

Change-Id: I9992ad32a9e6da41c88641e60fed6e1793253738

5 months agoFixed Simantics Console activation and formatted message output 54/3754/1
Tuukka Lehtonen [Mon, 30 Dec 2019 13:54:22 +0000 (15:54 +0200)]
Fixed Simantics Console activation and formatted message output

Also fixed an NPE from org.simantics.platform.ui.internal.Activator.stop

gitlab #437

Change-Id: I83e5d08d49ee0f97ac6c81987054ffa01b916516

5 months agoLimit SCL Console buffer size to 5M characters by default 31/3731/1
Tuukka Lehtonen [Fri, 20 Dec 2019 11:15:56 +0000 (13:15 +0200)]
Limit SCL Console buffer size to 5M characters by default

Low watermark limit for the buffer size can be configured from the new
SCL / Console preference page. High watermark is always set to 100 80
character rows larger than the low watermark.

Buffer size limiting can also be disabled/enabled entirely from the same
preference page.

gitlab #104

Change-Id: I8be203e60ae49fce53c39a4d251d2575a64b2543

5 months agoFixed SCLConsoleView.setCurrentImports to be performed in a Job 29/3729/1
Tuukka Lehtonen [Thu, 19 Dec 2019 12:27:14 +0000 (14:27 +0200)]
Fixed SCLConsoleView.setCurrentImports to be performed in a Job

The job is marked as a user job so if it starts taking time or gets
blocked due to DB, it should get shown to the user as an ongoing job.

gitlab #164

Change-Id: If2dc1389ceb4b3f868f27b17c59b0e59233b9734

5 months agoMerge "Catch Throwable instead of Exception in SCL AsyncUtils"
Tuukka Lehtonen [Thu, 19 Dec 2019 11:28:07 +0000 (11:28 +0000)]
Merge "Catch Throwable instead of Exception in SCL AsyncUtils"

5 months agoPrevent NPE in JsonUtils.readPossibleVariableUri 27/3727/1
Tuukka Lehtonen [Thu, 19 Dec 2019 11:08:53 +0000 (13:08 +0200)]
Prevent NPE in JsonUtils.readPossibleVariableUri

Previously NPE could come if the input JSON contained e.g. array values.

gitlab #331

Change-Id: I0b4c5134de12685414716ff9cef479d48cabd8ba

5 months agoFixed previous i18n work from 47269fe0 26/3726/1
Tuukka Lehtonen [Thu, 19 Dec 2019 11:04:58 +0000 (13:04 +0200)]
Fixed previous i18n work from 47269fe0

gilab #330

Change-Id: I8e31cbb9e123699558c3da386d49f48a5b55c6f1

5 months agoAdded GECacheKey.toString() to allow debugging hashcode/equals problems 25/3725/2
Tuukka Lehtonen [Thu, 19 Dec 2019 10:35:40 +0000 (12:35 +0200)]
Added GECacheKey.toString() to allow debugging hashcode/equals problems

gitlab #312

Change-Id: I1a719581210c4587336df4e371f6dacb38c949c8

5 months agoCatch Throwable instead of Exception in SCL AsyncUtils 34/3734/1
jsimomaa [Thu, 19 Dec 2019 08:47:46 +0000 (10:47 +0200)]
Catch Throwable instead of Exception in SCL AsyncUtils

gitlab #435

Change-Id: Ibcd892ec9d3e9b41f4c9bea70f3a2470dfdef132

5 months agoBackwards-compatibility fixes for Validation property tab 21/3721/1
Tuukka Lehtonen [Wed, 18 Dec 2019 11:44:38 +0000 (13:44 +0200)]
Backwards-compatibility fixes for Validation property tab

* BrowseContext should not include ProjectBrowseContext as it brings in
  unwanted contributions
* Check "selectedness" with more relaxed criterion

gitlab #365

Change-Id: Icb684cada676695328883f3f513151cc5fd51c0f

5 months agoAdded new UC SCL script phase: cleanup 98/3698/2
Tuukka Lehtonen [Wed, 11 Dec 2019 12:29:36 +0000 (14:29 +0200)]
Added new UC SCL script phase: cleanup

This is intended to support defining scripts that are ran just before
the UC is removed from the solver.

gitlab #431

Change-Id: I20c6024aa0ec61fbf79453df2fb81a3d79e4b83e

5 months agoAdded new user component SCL script simulation stage: post-preparation 90/3690/1
Tuukka Lehtonen [Tue, 10 Dec 2019 09:37:36 +0000 (11:37 +0200)]
Added new user component SCL script simulation stage: post-preparation

Post-preparation scripts are executed after the possible native solver
preparations have been executed.

The old preparation scripts are executed before native solver
preparation as before.

gitlab #430

Change-Id: I0d8e0d0710cbe35407b2453f9e49ead085d486cf

5 months agoBump splash screen version number to 1.42.0
Tuukka Lehtonen [Thu, 5 Dec 2019 14:14:45 +0000 (16:14 +0200)]
Bump splash screen version number to 1.42.0

5 months agoBumped master version to 1.42.0
Tuukka Lehtonen [Thu, 5 Dec 2019 13:51:36 +0000 (15:51 +0200)]
Bumped master version to 1.42.0

5 months agoSCL API for direct access to SpreadsheetBooks 71/3671/1
Antti Villberg [Wed, 4 Dec 2019 15:47:12 +0000 (17:47 +0200)]
SCL API for direct access to SpreadsheetBooks

gitlab #429

Change-Id: Icb5090d9110034a4c9103cc2413084b222aed20c

6 months agoMerge "Fix graph.tg hardcoded in CompilePGraphs code"
Tuukka Lehtonen [Fri, 29 Nov 2019 20:10:12 +0000 (20:10 +0000)]
Merge "Fix graph.tg hardcoded in CompilePGraphs code"

6 months agoFix graph.tg hardcoded in CompilePGraphs code 02/3602/2
Miro Richard Eklund [Fri, 22 Nov 2019 11:03:07 +0000 (13:03 +0200)]
Fix graph.tg hardcoded in CompilePGraphs code

Ontology cannot be compiled if it depends on a tg that has another name
than graph.tg. Fixed this by searching for all .tg files instead of
those called graph.tg.

gitlab #422

Change-Id: I52fb91f31b0ae052097fdedd36efa56e314adec5

6 months agoMerge "Maintain info about changed resources in virtual graph"
Tuukka Lehtonen [Fri, 29 Nov 2019 10:59:23 +0000 (10:59 +0000)]
Merge "Maintain info about changed resources in virtual graph"

6 months agoMaintain info about changed resources in virtual graph 41/3641/2
Antti Villberg [Fri, 29 Nov 2019 07:57:07 +0000 (09:57 +0200)]
Maintain info about changed resources in virtual graph

gitlab #428

Change-Id: Ia697012400c7a0a4bd07462eafbf08ffa082890d

6 months agoAdopt spreadsheet changes made in Balas development 33/3633/1
Antti Villberg [Thu, 28 Nov 2019 10:55:52 +0000 (12:55 +0200)]
Adopt spreadsheet changes made in Balas development

gitlab #427

Change-Id: Idfcc4da578dcfa03e9e88f88a2e5012f17fc1f1d

6 months agoIntroduce new DiagramViewer.getRuntimeFromManager() 44/3544/2
jsimomaa [Sat, 16 Nov 2019 07:45:43 +0000 (09:45 +0200)]
Introduce new DiagramViewer.getRuntimeFromManager()

* The original DiagramViewer.getRuntime() returns cached version of the
runtime diagram resource

gitlab #416

Change-Id: Id2723f5deb94cdba15e815229d9a1931482ace16

6 months agoAdd LICENSE file for EPL v1.0 91/3591/1
Tuukka Lehtonen [Wed, 20 Nov 2019 18:41:57 +0000 (20:41 +0200)]
Add LICENSE file for EPL v1.0

Change-Id: Iad0ec1d3501b53805e77079649a53aea9b5d693c

6 months agoLog throwables in DiagramViewerLoadJob instead of swallowing them 90/3590/1
Tuukka Lehtonen [Wed, 20 Nov 2019 18:34:59 +0000 (20:34 +0200)]
Log throwables in DiagramViewerLoadJob instead of swallowing them

gitlab #420

Change-Id: I493d7eeb0a6a13a188578fe218d68de8e195080e

6 months agoG2DParentNode handles "undefined" child bounds separately 84/3584/1
Tuukka Lehtonen [Wed, 20 Nov 2019 14:33:29 +0000 (16:33 +0200)]
G2DParentNode handles "undefined" child bounds separately

Previously nodes could only return null to say "I have no bounds".
Now it is possible to return GeometryUtils.undefinedBounds() to say
"ignore my bounds" to G2DParentNode.

Also allow customization of the node class used by ElementPainter to
mark selections under "element nodes" through a new configuration class
ElementPainterConfiguration.

This allows e.g. district to use its own node for this purpose to
optimize the scene graph and customize the bounds it returns.

gitlab #419

Change-Id: I210fd26be5d269847277616b9d5c52ef4f930dd7
(cherry picked from commit ad29e24f50e336add4c28df14312b3134ab93427)

6 months agoAdd check for headless installations in DPIUtil 72/3572/2
jsimomaa [Wed, 20 Nov 2019 08:54:42 +0000 (10:54 +0200)]
Add check for headless installations in DPIUtil

gitlab #418

Change-Id: I5d7b637ad7833f7cfa60969c81be818d3d8fefc1

6 months agoFix SimanticsConsole activation invalid thread access problem 63/3563/1
Tuukka Lehtonen [Tue, 19 Nov 2019 08:11:44 +0000 (10:11 +0200)]
Fix SimanticsConsole activation invalid thread access problem

gitlab #400

Change-Id: I80a054fc44da6030ad9da9c566b0ce072cb08d8c

6 months agoSet strokeWidth for new chart items already upon creation 25/3525/1
Tuukka Lehtonen [Fri, 15 Nov 2019 07:22:14 +0000 (09:22 +0200)]
Set strokeWidth for new chart items already upon creation

gitlab #415

Change-Id: Ibc478abadc3c80006eee09b7daf568a9f43dd8b0

6 months agoMerge "Automatically import also SCLMain modules of dependent index roots" cef-swt-grpc-tech-demo
Tuukka Lehtonen [Mon, 11 Nov 2019 19:26:43 +0000 (19:26 +0000)]
Merge "Automatically import also SCLMain modules of dependent index roots"

6 months agoAutomatically import also SCLMain modules of dependent index roots 85/3485/1
Antti Villberg [Sat, 9 Nov 2019 19:56:15 +0000 (21:56 +0200)]
Automatically import also SCLMain modules of dependent index roots

gitlab #413

Change-Id: I0f2e345bc59aa1e74f90cd2a3d138de1d0befd36

6 months agoRemoved trailing newline from clipboard text 46/3446/1
Tuukka Lehtonen [Mon, 4 Nov 2019 14:12:08 +0000 (16:12 +0200)]
Removed trailing newline from clipboard text

When copying text to clipboard from GraphExplorer-based UI controls
(Model Browser, Selection view) using StandardCopyHandler, the produced
text no longer contains a trailing newline.

gitlab #411

Change-Id: If4141b00ed9ffc1d1dcaed53114405e8b0d20042
(cherry picked from commit 17046fccd0b4bdcd479aadf4b204c1a06a2c896c)

7 months agoMerge "Fixed two problems in connecting picking"
Tuukka Lehtonen [Fri, 1 Nov 2019 07:23:51 +0000 (07:23 +0000)]
Merge "Fixed two problems in connecting picking"

7 months agoMerge "Revert "Avoid duplicate evaluation of procedural component type requests""
Tuukka Lehtonen [Fri, 1 Nov 2019 07:22:28 +0000 (07:22 +0000)]
Merge "Revert "Avoid duplicate evaluation of procedural component type requests""

7 months agoRevert "Avoid duplicate evaluation of procedural component type requests" 37/3437/2
Tuukka Lehtonen [Fri, 1 Nov 2019 07:21:56 +0000 (07:21 +0000)]
Revert "Avoid duplicate evaluation of procedural component type requests"

This reverts commit 45ddae414b7f632d52546c3c46b0f6d2b4ab37af.

The change seems to have broken existing products for unknown reasons.
Let's revert immediately and see what went wrong afterwards.

gitlab #408

Change-Id: I7deabcb0fd6982963d809e0549a1e4a66165e9bb

7 months agoFixed two problems in connecting picking 35/3435/1
Jussi Koskela [Thu, 31 Oct 2019 13:52:35 +0000 (15:52 +0200)]
Fixed two problems in connecting picking

Tolerance was incorrectly subtracted instead of added in RouteLine
picking. RouteGraphConnectionClass did not take selection stroke width
into account when doing coarse picking based on bounding box.

gitlab #396

Change-Id: I6dabe7297eb553f0894c4299c393bb5369b45866

7 months agoFix adding components to configurationBySolverName map in MappingBase 33/3433/2
jsimomaa [Thu, 31 Oct 2019 07:27:35 +0000 (09:27 +0200)]
Fix adding components to configurationBySolverName map in MappingBase

The map is now invalidated (= null) when components are added which
means the map will be recalculated next time when retrieved with
getConfigurationBySolverName.

gitlab #402

Change-Id: I8f9436ddd62d86b7b73f98325cf7b67f0fb97cea

7 months agoSupport reading TG files with shared and non-shared value contexts 16/3416/3
Tuukka Lehtonen [Tue, 29 Oct 2019 14:42:11 +0000 (16:42 +0200)]
Support reading TG files with shared and non-shared value contexts

This is part of the fix for a nasty corner case in
TransferableGraphFileReader.readTG's deserialization of referable value
data types.

This regression was caused by commit
bf495713dbc9dec325f3929889466fa6cd58b541 over 1.5 years ago. The removal
of idContext.clear() was done without proper understanding of the real
issue.

The real issue is that TG's are currently written in two ways by
different codes: with shared and with non-shared value contexts.

Serializing TransferableGraph1 structures using the default Binding will
use shared context for serializing the values Variant array. Thus all TG
files produced by the graph compiler use a shared value context which
eans this class must be used with sharedValueContext set to true. As an
example, <code>true</code> must be used if the corresponding TG file is
written e.g. like this:

    DataContainers.writeFile(location
        new DataContainer(format,
                          version,
                          metadata,
                          new Variant(TransferableGraph1.BINDING, tg)));

On the other hand, any TG files serialized using more optimized methods
like ModelTransferableGraphSource do not use a shared value context when
writing the file. This means those files cannot be read safely using
standard {@link Binding} at all, and when using this class,
sharedValueContext must be set to false to prevent the import from
corrupting datatype values because the referable parts of datatypes may
get bound to the wrong existing types if the data is read using shared
context.

After this change clients should use readTG(File | InputStream, boolean)
methods instead of readTG to always specify the context sharing setting
explicitly according to how the TG's in question were written.

gitlab #409

Change-Id: Ic18fd1442987d4e740f729729b81cd3133f5d269

7 months agoMerge "Avoid duplicate evaluation of procedural component type requests"
Tuukka Lehtonen [Tue, 29 Oct 2019 12:24:08 +0000 (12:24 +0000)]
Merge "Avoid duplicate evaluation of procedural component type requests"

7 months agoTake zoom level into account when picking connections 34/3334/3
Jussi Koskela [Tue, 29 Oct 2019 12:04:28 +0000 (14:04 +0200)]
Take zoom level into account when picking connections

Also fixed RouteGraphConnectTool.pickNearestRouteGraphConnection which
gave flawed results. Visual hints are fixed to match the performed
actions. This versions always picks the closest connection if there are
multiple hits.

gitlab #396

Change-Id: Ib5d8be3b2c7301dae5545166c07e11c03f92a50d

7 months agoMoved RouteGraphConnectionClass to org.simantics.g2d.elementclass 17/3417/2
Tuukka Lehtonen [Tue, 29 Oct 2019 10:55:05 +0000 (12:55 +0200)]
Moved RouteGraphConnectionClass to org.simantics.g2d.elementclass

Previously the class was in bundle org.simantics.diagram, which depends
on database bundles and other things that RouteGraphConnectionClass does
not need or use.

In #396 the RouteGraphConnectionClass.KEY_RG_NODE would be needed in
org.simantics.g2d and therefore it makes sense to move it there.

gitlab #410

Change-Id: I491b8caeffa1a3c455af7815ce9372a9e5df722e

7 months agoAvoid duplicate evaluation of procedural component type requests 11/3411/2
Reino Ruusu [Fri, 25 Oct 2019 09:00:36 +0000 (12:00 +0300)]
Avoid duplicate evaluation of procedural component type requests

gitlab #408

Change-Id: I331016fcae55434cc612c6301b74189a47142e90

7 months agoSimantics Console 51/3351/7
Antti Villberg [Thu, 17 Oct 2019 07:49:30 +0000 (10:49 +0300)]
Simantics Console

gitlab #400

Change-Id: I18d73b4c9a8d3a4e5b3d3fd43455e3fbf44eceba

7 months agoPut back unpack=true for org.simantics.g2d.feature 87/3387/2
jsimomaa [Mon, 21 Oct 2019 11:13:33 +0000 (14:13 +0300)]
Put back unpack=true for org.simantics.g2d.feature

gitlab #404

Change-Id: I8c52debbf41e5f9f6595b4c743288e5d94a4c74e

7 months agoAdd missing eclipse-collections bundles to org.simantics.g2d.feature 85/3385/2
jsimomaa [Mon, 21 Oct 2019 10:35:08 +0000 (13:35 +0300)]
Add missing eclipse-collections bundles to org.simantics.g2d.feature

gitlab #404

Change-Id: I947e06bbd4e256132338066a8b18b45b23db6d2e

7 months agoUpdate target platforms with eclipse 2019-09 (4.13) 68/3368/1
jsimomaa [Fri, 18 Oct 2019 11:04:33 +0000 (14:04 +0300)]
Update target platforms with eclipse 2019-09 (4.13)

This is WIP - once everything seems to work okay we need to mirror the
respective Eclipse repositories to simantics.org

gitlab #405

Change-Id: I46710067ef2334863a102d4d91b39867336d07e5

7 months agoUtilize eclipse-collections in AbstractDiagram datastructures 63/3363/1
jsimomaa [Fri, 18 Oct 2019 06:47:22 +0000 (09:47 +0300)]
Utilize eclipse-collections in AbstractDiagram datastructures

gitlab #404

Change-Id: Ib792edf0c3ef2603e0eb8639bc384faf382a0f92

7 months agoLog SCL compilation errors in AbstractExpressionCompilationRequest 62/3362/1
jsimomaa [Fri, 18 Oct 2019 06:27:03 +0000 (09:27 +0300)]
Log SCL compilation errors in AbstractExpressionCompilationRequest

There are cases where stack trace for compilation error would be nice to
have

gitlab #403

Change-Id: Iefeb2fb0b89040ad3696f484403b601bbfbf4b85

7 months agoAdd configurationBySolverName map to MappingBase 61/3361/2
jsimomaa [Thu, 17 Oct 2019 18:15:35 +0000 (21:15 +0300)]
Add configurationBySolverName map to MappingBase

gitlab #402

Change-Id: I3a315e48a79efbcbca73408de8f0f172cf6d8344

7 months agoFixed NPE from Change Information when given unexpected input 57/3357/1
Tuukka Lehtonen [Thu, 17 Oct 2019 11:01:46 +0000 (14:01 +0300)]
Fixed NPE from Change Information when given unexpected input

gitlab #401

Change-Id: I31b56160e95d3169699db9fb141d10fa4046d46d

7 months agoMerge changes Iff524dd3,I91bb154e
Tuukka Lehtonen [Thu, 17 Oct 2019 08:52:02 +0000 (08:52 +0000)]
Merge changes Iff524dd3,I91bb154e

* changes:
  Diagram threading and ThreadLogger improvements
  Fix livelock situation in QueryProcessor

7 months agoRid TypicalPropertyTester of database read transactions 52/3352/3
Tuukka Lehtonen [Thu, 17 Oct 2019 07:52:39 +0000 (10:52 +0300)]
Rid TypicalPropertyTester of database read transactions

After this, the normal workbench invocations of TypicalPropertyTester no
longer perform any database transactions to do their work. DiagramViewer
now has built-in support for doing the required queries based on
IDiagram hints alone.

gitlab #399

Change-Id: I0dcebcc871f72c16d58a932704c16398df9dd900

7 months agoDiagram threading and ThreadLogger improvements 75/3275/5
Antti Villberg [Tue, 24 Sep 2019 08:03:34 +0000 (11:03 +0300)]
Diagram threading and ThreadLogger improvements

gitlab #387
gitlab #388

Conflicts:
bundles/org.simantics.db.impl/src/org/simantics/db/impl/graph/ReadGraphImpl.java

Change-Id: Iff524dd3d8ebf66632772077a06dc10cae0c6f9c

7 months agoFix livelock situation in QueryProcessor 74/3274/5
Antti Villberg [Tue, 24 Sep 2019 08:00:28 +0000 (11:00 +0300)]
Fix livelock situation in QueryProcessor

gitlab #386

Change-Id: I91bb154e6410b125eb13171f9152996286a6d54d

7 months agoIntroduced G2DRenderingHints.KEY_TRANSFORM_UNDER_SPATIAL_ROOT 50/3350/1
Tuukka Lehtonen [Wed, 16 Oct 2019 22:57:08 +0000 (01:57 +0300)]
Introduced G2DRenderingHints.KEY_TRANSFORM_UNDER_SPATIAL_ROOT

gitlab #398

Change-Id: I505af1d0ef38a001c6bbb4fc900e62091099fafd

7 months agoAccept multiple types in browse context contributions 38/3338/2
Antti Villberg [Wed, 16 Oct 2019 08:26:21 +0000 (11:26 +0300)]
Accept multiple types in browse context contributions

gitlab #397

Change-Id: Ie653266a7a54cdf78cad923dcb2e62e46e31423d

7 months agoAllow module updaters to customise applyRules 26/3326/1
Antti Villberg [Mon, 14 Oct 2019 05:29:46 +0000 (08:29 +0300)]
Allow module updaters to customise applyRules

gitlab #395

Change-Id: I2c0579cf2e805e1fa88e9f4e1b8dfeb0c8845c1f

7 months agoTake the transform hint of DragItem into account during drag 21/3321/1
Jussi Koskela [Thu, 10 Oct 2019 07:13:05 +0000 (10:13 +0300)]
Take the transform hint of DragItem into account during drag

gitlab #394

Change-Id: I2b0f18e663e9cc72145bb1a268bbc359293a46d5

8 months agoUtilize eclipse-collections immutable lists/map in datastructures 13/3213/3
jsimomaa [Fri, 6 Sep 2019 08:56:11 +0000 (11:56 +0300)]
Utilize eclipse-collections immutable lists/map in datastructures

gitlab #376

Change-Id: Ic96633256050766e385ea27816684e97cf0068c2

8 months agoUpdated simantics.target for Nebula 2.2.0 05/3305/1
Tuukka Lehtonen [Mon, 30 Sep 2019 08:29:25 +0000 (11:29 +0300)]
Updated simantics.target for Nebula 2.2.0

gitlab #383

Change-Id: Ie631881f1a1678261a136d7e08f14398c5854a2c

8 months agoMove to Nebula widget release 2.2.0 01/3301/1
Tuukka Lehtonen [Mon, 30 Sep 2019 08:06:18 +0000 (11:06 +0300)]
Move to Nebula widget release 2.2.0

gitlab #383

Change-Id: I9e9316096d9c97503594d64e72af33aa7698cc96

8 months agoSimple migration step implementation that runs a specified SCL script 98/3298/2
Tuukka Lehtonen [Mon, 30 Sep 2019 07:14:29 +0000 (10:14 +0300)]
Simple migration step implementation that runs a specified SCL script

gitlab #343

Change-Id: I61a658e9888e9b03d595cee5fecee51c54d95719

8 months agoTwo rendering glitch fixes for time series charts 87/3287/1
Tuukka Lehtonen [Thu, 26 Sep 2019 20:24:12 +0000 (23:24 +0300)]
Two rendering glitch fixes for time series charts

1. Grid values were not rendered properly when the [yMin,yMax] interval
   gets too small (under 1e-6). The calculations in
   GridSpacing.makeGridSpacing contain a capping logic for parameter
   viewboxSize which doesn't necessarily have to be there (IMHO). The
   problem is essentially that auto-scaling the Y-axis allows zooming to
   any small value interval, but the vertical ruler rendering just
   doesn't work properly in those cases.

2. GridUtil.calcLabelWidth calculated the rendered Y-value labels
   differently from the rendering logic in GridUtil.paintVerticalRuler
   and GridUtil.paintVerticalSlaveRuler, i.e. in a more inprecise manner
   which results in the y-axis reserved width not following properly
   what is rendered.

gitlab #392

Change-Id: I30998d9336e50606956a78ad547ee437e0439f1a

8 months agoMake ValueFormat.toFormat safe to call with any noOfDecimals value 86/3286/1
Tuukka Lehtonen [Thu, 26 Sep 2019 13:02:39 +0000 (16:02 +0300)]
Make ValueFormat.toFormat safe to call with any noOfDecimals value

noOfDecimals is now capped between [0,16].

gitlab #391

Change-Id: Id24752a908b65c261f02964ec18cdb8e759ea0d0
(cherry picked from commit 83249a1e50b8ea706fde5e3074856fbf5f9eb1ac)

8 months agoChange editor font in UI and update on editor reload. 83/3283/2
Alpi Rimppi [Thu, 26 Sep 2019 08:26:55 +0000 (11:26 +0300)]
Change editor font in UI and update on editor reload.

gitlab #390

Change-Id: Ieae1ceb208a3e401f122725eda5693e1e4aeb5b5

8 months agoAdded two new user component SCL script simulation stages 76/3276/1
Tuukka Lehtonen [Tue, 24 Sep 2019 11:44:57 +0000 (14:44 +0300)]
Added two new user component SCL script simulation stages

1. pre-step: executed during each simulation step,
   before native simulation stepping
2. post-step: executed during each simulation step,
   after native and all other stepping logics

The purpose of these is to allow simulation step initialization and
finalization with UC SCL scripts.

gitlab #389

Change-Id: Idbd818f80f30c3bdaefdf75a6c11f0747a9a6a26

8 months agoAllow simulation stop handling in Simantics/Sequences 72/3272/2
Tuukka Lehtonen [Fri, 20 Sep 2019 11:17:46 +0000 (14:17 +0300)]
Allow simulation stop handling in Simantics/Sequences

`StopReason` enumerates supported reasons for simulation stops which is
delivered once to functions registered through `executeWhenStopped`.

It is up to the domain-specific sequence runners to implement the actual
identification of simulation stopping situations and to invoke
AbstractActionContext.stop(StopReason reason) when needed.

gitlab #385

Change-Id: I2bc354b3bf433909c5224f82c98c17b1ec564920

8 months agoPrevent undesirable UI code access when workbench is not running 66/3266/1
Tuukka Lehtonen [Thu, 19 Sep 2019 11:25:39 +0000 (14:25 +0300)]
Prevent undesirable UI code access when workbench is not running

Also removed old and useless E3 ExperimentListener implementation

gitlab #384

Change-Id: I2ae3bd5efbc3ab92fc87aca0de8625dfe6a0e7a0
(cherry picked from commit f37ba060464d2230f86c6786572d33026800eedc)

8 months agoSet resources immutable 64/3164/2
Alpi Rimppi [Wed, 28 Aug 2019 08:18:30 +0000 (11:18 +0300)]
Set resources immutable

gitlab #369

Change-Id: Id1ddcc8253339ac7ab60f2772ab53d5c06547b19

8 months agoSeparate query dependency management from QueryProcessor 49/3249/9
Antti Villberg [Thu, 12 Sep 2019 11:15:24 +0000 (14:15 +0300)]
Separate query dependency management from QueryProcessor

gitlab #379

Change-Id: I23afbaef397f23b3645d47ac71906736b1021044

8 months agoMerge changes I78c3a258,I7bf72f04
Tuukka Lehtonen [Wed, 11 Sep 2019 21:41:46 +0000 (21:41 +0000)]
Merge changes I78c3a258,I7bf72f04

* changes:
  Handle componentless parent nodes of UCs in synchronization
  Added logging for history archive import failure cases

8 months agoHandle componentless parent nodes of UCs in synchronization 46/3246/1
Tuukka Lehtonen [Wed, 11 Sep 2019 21:32:39 +0000 (00:32 +0300)]
Handle componentless parent nodes of UCs in synchronization

gitlab #382

Change-Id: I78c3a258e5a33cb16ae38ef080424d382f42c710

8 months agoAdded logging for history archive import failure cases 45/3245/1
Tuukka Lehtonen [Wed, 11 Sep 2019 21:14:46 +0000 (00:14 +0300)]
Added logging for history archive import failure cases

gitlab #381

Change-Id: I7bf72f047a24932e3dbc4fd48781bad0f879a472

8 months agoMerge "Add node class names to generated SVG"
Marko Luukkainen [Wed, 11 Sep 2019 10:16:57 +0000 (10:16 +0000)]
Merge "Add node class names to generated SVG"

8 months agoAdd node class names to generated SVG 38/3238/1
Marko Luukkainen [Wed, 11 Sep 2019 10:06:27 +0000 (13:06 +0300)]
Add node class names to generated SVG

gitlab #380

Change-Id: I721d774f8adf8864704409ec48c88f3a06fe15a3

8 months agoMerge "Try to read queries from cache also in cases where cache is not written"
Tuukka Lehtonen [Tue, 10 Sep 2019 12:56:00 +0000 (12:56 +0000)]
Merge "Try to read queries from cache also in cases where cache is not written"

8 months agoBumped master version to 1.41.0
Tuukka Lehtonen [Tue, 10 Sep 2019 12:54:20 +0000 (15:54 +0300)]
Bumped master version to 1.41.0

8 months agoMerge "An action for experiment activation"
Tuukka Lehtonen [Tue, 10 Sep 2019 12:31:47 +0000 (12:31 +0000)]
Merge "An action for experiment activation"

8 months agoAn action for experiment activation 33/3233/1
Antti Villberg [Tue, 10 Sep 2019 08:45:43 +0000 (11:45 +0300)]
An action for experiment activation

gitlab #378

Change-Id: Ie52f085a94d71905044dc32debae3fc46732e8a1

8 months agoMissing arguments in SCLFunctions.evaluate 32/3232/1
Antti Villberg [Tue, 10 Sep 2019 08:44:14 +0000 (11:44 +0300)]
Missing arguments in SCLFunctions.evaluate

gitlab #377

Change-Id: I4318bcea21696a69e3ae6ce4718090ac7737cf2b

8 months agoTry to read queries from cache also in cases where cache is not written 31/3231/1
Antti Villberg [Tue, 10 Sep 2019 08:42:47 +0000 (11:42 +0300)]
Try to read queries from cache also in cases where cache is not written

gitlab #320

Change-Id: I4446238b8998f592df710b2992ba3c2cc6fe0bee

8 months agoMerge "Include disconnected flag terminals for connection judgement"
Tuukka Lehtonen [Fri, 6 Sep 2019 13:29:10 +0000 (13:29 +0000)]
Merge "Include disconnected flag terminals for connection judgement"

8 months agoFix ObserverGroupListener equals 12/3212/1
jsimomaa [Fri, 6 Sep 2019 08:54:10 +0000 (11:54 +0300)]
Fix ObserverGroupListener equals

gitlab #375

Change-Id: Ib9155cabef7833f1433aa90c2754f82c3c2185f8

8 months agoSupport enumerated property types in UC interface (2nd try) 03/3203/2
Jussi Koskela [Thu, 5 Sep 2019 11:41:27 +0000 (14:41 +0300)]
Support enumerated property types in UC interface (2nd try)

Other improvements:
-Support labels in enumeration values
-Sort enum values in edit combo alphanumerically (was hash order)

Bugs fixed:
-Instantiated values for IC properties were not converted properly on
type edit if the UC was defined in linked index root

gitlab #339

Change-Id: Ia452d0523a7a215181745870515cb74b8c838e90

8 months agoImproved the positioning of issue decoration for connection elements 02/3202/2
Jussi Koskela [Thu, 5 Sep 2019 10:06:16 +0000 (13:06 +0300)]
Improved the positioning of issue decoration for connection elements

Shows the issue decorator at a point that belongs to the connection and
is closest to the center of its bounding box. Also fixed the updating of
position.

gitlab #372

Change-Id: Icf948997a9a2ce11a6420d83286144328af4e877

8 months agoPass model instead of null 95/3195/1
Jussi Koskela [Wed, 4 Sep 2019 06:47:54 +0000 (09:47 +0300)]
Pass model instead of null

Fixes yet another regression.

gitlab #355

Change-Id: Ic61cbbe347c8f66addf10397fa0f5969dacacad6

8 months agoPass graph to prevent transaction within transaction 93/3193/1
Jussi Koskela [Wed, 4 Sep 2019 05:45:20 +0000 (08:45 +0300)]
Pass graph to prevent transaction within transaction

Fixes regression from previous change.

gitlab #355

Change-Id: I40e8351373cf6b7f291402aded74ab73f624e70e

8 months agoPass graphs as ReadGraph instead of Object for clarity 92/3192/1
Jussi Koskela [Wed, 4 Sep 2019 05:40:57 +0000 (08:40 +0300)]
Pass graphs as ReadGraph instead of Object for clarity

gitlab #321

Change-Id: Id061b4d16f95a403a861e3cc06f1980c1a1dab60

8 months agoUse PreferredDiagramEditorID in OpenDiagramEditorFromComponentAdapter 90/3190/1
Jussi Koskela [Tue, 3 Sep 2019 10:28:13 +0000 (13:28 +0300)]
Use PreferredDiagramEditorID in OpenDiagramEditorFromComponentAdapter

gitlab #371

Change-Id: Ia2b39d03f346a47c45b3982ec882b9facc9e28eb

9 months agoReport non-existent .sts tests using error logger instead of NPE crash 78/3178/1
Tuukka Lehtonen [Fri, 30 Aug 2019 12:12:53 +0000 (15:12 +0300)]
Report non-existent .sts tests using error logger instead of NPE crash

gitlab #367

Change-Id: I55408e6b8b539bb3775e7ff5afc7f32323e32eb2

9 months agoFixed typical synchronization to work without template diagram desc 75/3175/1
Tuukka Lehtonen [Fri, 30 Aug 2019 07:21:40 +0000 (10:21 +0300)]
Fixed typical synchronization to work without template diagram desc

gitlab #370

Change-Id: I243d9baa3939234c9b31e1c8f34526b2c9fe641f