simantics/platform.git
23 months agoAdded a new function pmap to Async module 44/1344/1
Hannu Niemistö [Wed, 3 Jan 2018 11:09:24 +0000 (13:09 +0200)]
Added a new function pmap to Async module

refs #7703

Change-Id: I848203393d115a0c8f9bbbfbf80e47f35f17616d

23 months agoFall back to HasName if HasResourceName not available for GraphFile 40/1340/5
jsimomaa [Fri, 29 Dec 2017 11:21:36 +0000 (13:21 +0200)]
Fall back to HasName if HasResourceName not available for GraphFile

Also adding watching of externally opened files and writeback for data
changed by the external editor

Now with hashed URI based filename

refs #7699

Change-Id: I2eadb539d599b0e55840e0fd7f141e44004833fc

23 months agoMerge "Print console messages to IDE by default"
Hannu Niemistö [Fri, 29 Dec 2017 09:43:23 +0000 (11:43 +0200)]
Merge "Print console messages to IDE by default"

23 months agoFixed a bug related to the extent of variable frames (see test case) 39/1339/1
Hannu Niemistö [Fri, 29 Dec 2017 08:49:21 +0000 (10:49 +0200)]
Fixed a bug related to the extent of variable frames (see test case)

refs #7698

Change-Id: I18879f6cffb9f796f673f697711249c962b1e073

23 months agoPrint console messages to IDE by default 38/1338/2
Antti Villberg [Thu, 28 Dec 2017 11:03:36 +0000 (13:03 +0200)]
Print console messages to IDE by default

#7697

Change-Id: Ibb08764c4d41f17cd7bc084b6d1b99ed2af09bdd

23 months agoMove scaling of SelectionNodes to upper g-element with transform 37/1337/2
jsimomaa [Thu, 28 Dec 2017 09:12:32 +0000 (11:12 +0200)]
Move scaling of SelectionNodes to upper g-element with transform

refs #7696

Change-Id: Ibc4502c9adad9be6fb71801b042ec8464baac283

23 months agoAdd missing feature requirement from o.s.tests.modelled.ui.feature 35/1335/2
jsimomaa [Wed, 27 Dec 2017 06:48:27 +0000 (08:48 +0200)]
Add missing feature requirement from o.s.tests.modelled.ui.feature

refs #7694

Change-Id: I70eaafce289ec07dc77282f239798da4e53d2022

23 months agoCompilation of SCL expressions from SCL 36/1336/1
Hannu Niemistö [Wed, 27 Dec 2017 12:12:55 +0000 (14:12 +0200)]
Compilation of SCL expressions from SCL

refs #7695

Change-Id: I053be9e6d4197ad563a31f09e21c6bea89c3e5ed

23 months agoGeneric HTTP REST Client/Server AuditLogging framework 23/1323/6
jsimomaa [Fri, 15 Dec 2017 12:21:43 +0000 (14:21 +0200)]
Generic HTTP REST Client/Server AuditLogging framework

refs #7684

Change-Id: Ia861758f0e23a4bc55edeffd946030fff4e52121

23 months agoUse listener as listener in TimeoutingRequest 33/1333/1
Antti Villberg [Thu, 21 Dec 2017 11:35:35 +0000 (13:35 +0200)]
Use listener as listener in TimeoutingRequest

refs #7692

Change-Id: I94aafae16131f3d7a9c688d3861db5b3f56dea1b

23 months agoRead previous BTree modification count from the graph 30/1330/2
Jussi Koskela [Wed, 20 Dec 2017 06:52:49 +0000 (08:52 +0200)]
Read previous BTree modification count from the graph

Modification count is used when generating unique names for the
resources. We should continue from the previous modification count
whenever creating new BTree object to work on.

refs #7690

Change-Id: I446af8ad22157a1c64c984071ae6c36cae374935

23 months agoFix possible NPE in SCLExpressionIssueProvider 29/1329/1
jsimomaa [Wed, 20 Dec 2017 06:34:26 +0000 (08:34 +0200)]
Fix possible NPE in SCLExpressionIssueProvider

refs #7689

Change-Id: If7c4cad3b5ae238d90dd03e1d40f2aec2f597276

23 months agonameOfFile into File module 27/1327/2
Antti Villberg [Mon, 18 Dec 2017 10:23:15 +0000 (12:23 +0200)]
nameOfFile into File module

refs #7687

Change-Id: Ieebb374f811c3d9641065fdd3d8e34c631988eb7

23 months agoFixing missing eclipse.search references. 28/1328/1
Marko Luukkainen [Mon, 18 Dec 2017 10:38:40 +0000 (12:38 +0200)]
Fixing missing eclipse.search references.

refs #7688

Change-Id: I047e913267620c2c3fc59ddd311f87f022b957ee

23 months agoDisable model activation during model migration 26/1326/1
Marko Luukkainen [Mon, 18 Dec 2017 09:09:11 +0000 (11:09 +0200)]
Disable model activation during model migration

refs #7686

Change-Id: Ide98ff661dba6b863923ebe4ca795bf03d77a2e1

23 months agoFind SCL references in SCLModuleEditor with Ctrl+Shift+G 25/1325/2
jsimomaa [Mon, 18 Dec 2017 09:00:53 +0000 (11:00 +0200)]
Find SCL references in SCLModuleEditor with Ctrl+Shift+G

Add missing .project-file to org.simantics.scl.ui.feature

refs #7683

Change-Id: I2faf6c39b74a011e841704a6c7ff54aa0fdf9763

23 months agoFind SCL references in SCLModuleEditor with Ctrl+Shift+G 21/1321/3
jsimomaa [Fri, 15 Dec 2017 10:57:37 +0000 (12:57 +0200)]
Find SCL references in SCLModuleEditor with Ctrl+Shift+G

refs #7683

Change-Id: I553e61518a16f2b711b82f41576e07b3f99df1ba

23 months agoDB client state gets corrupted 24/1324/2
Antti Villberg [Sat, 16 Dec 2017 20:57:10 +0000 (22:57 +0200)]
DB client state gets corrupted

refs #7685

Change-Id: Ic6a8b7f2f9e327c8aba774a86f834d160a9c4c66

23 months agoFirst test on Simantics documentation using gitbook 07/1307/2
Tuukka Lehtonen [Fri, 8 Dec 2017 10:50:34 +0000 (12:50 +0200)]
First test on Simantics documentation using gitbook

Only few parts transferred and somehow quickly reformatted for now.
Lots of work remaining.

refs #7674

Change-Id: I1cf8b6a3da5ec14064f79d0a0c765899be1d8872

23 months agoReplace OrientationRestorer TimerTask usage with ScheduledExecutor 20/1320/2
jsimomaa [Thu, 14 Dec 2017 06:16:51 +0000 (08:16 +0200)]
Replace OrientationRestorer TimerTask usage with ScheduledExecutor

Timer can exhaust the system with TimerTask-runnables that are queued up
e.g. during computer hibernate and sleep. According to documentation:

If an execution is delayed for any reason (such as garbage collection or
other background activity), two or more executions will occur in rapid
succession to "catch up." In the long run, the frequency of execution
will be exactly the reciprocal of the specified period

With heavy tasks this is very bad

refs #7682

Change-Id: I5a097c8bc5e1ea2a5abe30905b2a46fa8b8386f8

23 months agoHTTP/Client SCL module for HTTP requests 18/1318/2
jsimomaa [Wed, 13 Dec 2017 08:23:38 +0000 (10:23 +0200)]
HTTP/Client SCL module for HTTP requests

Also adding builtin type for Class in SCL

refs #7681

Change-Id: Id794bfce7ff5deb3e13127dfa9107bc31aceef30

23 months agoMerge "Added MMap.clone"
Hannu Niemistö [Tue, 12 Dec 2017 14:12:31 +0000 (16:12 +0200)]
Merge "Added MMap.clone"

23 months agoAdded MMap.clone 17/1317/2
Hannu Niemistö [Tue, 12 Dec 2017 13:56:49 +0000 (15:56 +0200)]
Added MMap.clone

refs #7680

Change-Id: I4ed5c23709f5f0fc02937deba9af0f58eca3ea5d

23 months agoFixed CompilePGraphsAction that gave a NullPointerException 14/1314/1
Miro Richard Eklund [Mon, 11 Dec 2017 12:39:35 +0000 (14:39 +0200)]
Fixed CompilePGraphsAction that gave a NullPointerException

A worker thread with a null displayed tried to compile the pgraph for
ontology definition files. Ensuring that a default display is used in
such cases fixed the issues.

An error message mentioned missing dependencies if the ontology file
containers syntax errors. Thie message now mentioned problems in the
ontology file instead.

refs #7679

Change-Id: Icd483835462ec3cd27c16ca751eaee3d7b3dbdd2

23 months agoStyle support in IListItem 06/1306/1
Jussi Koskela [Fri, 8 Dec 2017 08:49:04 +0000 (10:49 +0200)]
Style support in IListItem

refs #7671

Change-Id: I3d112cfe967b1be1cf25388b828c84426e64ea1d

23 months agoAdded Edit main menu to all Simantics Desktop based applications 02/1302/2
Tuukka Lehtonen [Thu, 7 Dec 2017 14:31:54 +0000 (16:31 +0200)]
Added Edit main menu to all Simantics Desktop based applications

refs #7667

Change-Id: Ie4f41081f6eb070031d0f3b56f9cd1418f72e353

23 months agoBumped master target and org.simantics.sdk versions to 1.32.0 01/1301/3
Tuukka Lehtonen [Thu, 7 Dec 2017 13:42:02 +0000 (15:42 +0200)]
Bumped master target and org.simantics.sdk versions to 1.32.0

refs #7422

Change-Id: Ic0f25ca2e4571cbb13a36307017fcf8b57f56ab4

23 months agoHelper script for doing release train related project branching and tagging.
Tuukka Lehtonen [Thu, 7 Dec 2017 12:41:05 +0000 (14:41 +0200)]
Helper script for doing release train related project branching and tagging.

refs #7396

2 years agoFixed regression in IndexedRelationsImpl.replace return value. 96/1296/1
Tuukka Lehtonen [Thu, 7 Dec 2017 08:59:34 +0000 (10:59 +0200)]
Fixed regression in IndexedRelationsImpl.replace return value.

The return value was always false which caused index query listeners to
never be fired upon index replace operations. This in turn caused
potentially invalidated query results to be returne for database
clients.

The regression was introduced in commit 702195f3 for release/1.28.0.

refs #7665

Change-Id: I9103f0fd9001ffc42f85633bc6a11d77ed863613

2 years agoFixed Map & Set equals implementations in CollectionSupportImpl 95/1295/1
Tuukka Lehtonen [Thu, 7 Dec 2017 08:04:36 +0000 (10:04 +0200)]
Fixed Map & Set equals implementations in CollectionSupportImpl

refs #7654

Change-Id: I9bb10c8b529b705ad8a34a6793a002296a6bea06

2 years agoMerge "Use Consumer interface instead of deprecated Callback interface"
Tuukka Lehtonen [Thu, 7 Dec 2017 08:01:30 +0000 (10:01 +0200)]
Merge "Use Consumer interface instead of deprecated Callback interface"

2 years agoUse Consumer interface instead of deprecated Callback interface 94/1294/3
Tuukka Lehtonen [Thu, 7 Dec 2017 07:32:18 +0000 (09:32 +0200)]
Use Consumer interface instead of deprecated Callback interface

Also removed some compilation warnings at the same time.

refs #7655

Change-Id: I8e84652fd50853d598ddec299fc1fc6e30776bc2

2 years agoFixed CollectionSupportImpl.ResourceList iteration order 75/1275/6
Tuukka Lehtonen [Thu, 30 Nov 2017 17:48:29 +0000 (19:48 +0200)]
Fixed CollectionSupportImpl.ResourceList iteration order

Implemented CollectionSupportImpl.ResourceList#listIterator methods.

Removed use of the deprecated Callback interface in
org.simantics.db.ResourceMap.

refs #7654

Change-Id: I22ee6da55326bf884b24e63eb2d9ed30fc242771

2 years agoMerge "Potential fix for diagram scene graph screw-up regression"
Tuukka Lehtonen [Tue, 5 Dec 2017 20:54:51 +0000 (22:54 +0200)]
Merge "Potential fix for diagram scene graph screw-up regression"

2 years agoPotential fix for diagram scene graph screw-up regression 91/1291/1
Tuukka Lehtonen [Tue, 5 Dec 2017 20:32:59 +0000 (22:32 +0200)]
Potential fix for diagram scene graph screw-up regression

refs #7663

Change-Id: I092889d83fcfd653647e4de38984304461649b3f

2 years agoImproved scaling of diagrams rendered into selectable SVG. (refs #7593) 88/1288/1
Reino Ruusu [Tue, 5 Dec 2017 11:15:06 +0000 (13:15 +0200)]
Improved scaling of diagrams rendered into selectable SVG. (refs #7593)

Merge of change 1184.

Change-Id: I27ad59665d0be021a1fcd8d68e6d4eca0edc3fda

2 years agoRemoved a clash between two nameOf functions 86/1286/2
Hannu Niemistö [Mon, 4 Dec 2017 14:40:09 +0000 (16:40 +0200)]
Removed a clash between two nameOf functions

refs #7662

Change-Id: I49845c132c6c2eb5d9e3ae1c34c9d0349a9f4144

2 years agoCollect reference hierarchy for SCL values 85/1285/1
Hannu Niemistö [Mon, 4 Dec 2017 12:20:31 +0000 (14:20 +0200)]
Collect reference hierarchy for SCL values

refs #7662

Change-Id: I4bf296f8c676fdc5c3387d496a898a364ca78a7b

2 years agoTested and fixed utility for truncating history data. 80/1280/2
Tuukka Lehtonen [Sun, 3 Dec 2017 20:07:15 +0000 (22:07 +0200)]
Tested and fixed utility for truncating history data.

HistoryUtil.truncateHistory now actually works as intended. Care must be
taken not to interfere with the history data while it is being
truncated. This must be ensured externally.

A reference counter (AtomicInteger) was also added to ChartData to be
able to see how many users the ChartData has and to wait until it no
longer has any users. This is required to wait until all chart editors
have detached themselves from the history data.

refs #7622

Change-Id: I35863f5258da2cae193b3086500b5514c4699518

2 years agoSCL Image Rule 77/1277/3
Antti Villberg [Sat, 2 Dec 2017 20:12:15 +0000 (22:12 +0200)]
SCL Image Rule

refs #7657

Change-Id: I912bb432b45c06c25d242299924495f5cc59ea0f

2 years agoUse java.util.Consumer instead of os.utils.datastructures.Callback 76/1276/3
Tuukka Lehtonen [Fri, 1 Dec 2017 09:38:23 +0000 (11:38 +0200)]
Use java.util.Consumer instead of os.utils.datastructures.Callback

This removes lots of deprecation warnings from the DB codebase.

refs #7655

Change-Id: Ibdfbac83c69d5af3823a28447256176183ab335a

2 years agoMerge changes I24f9af64,I97579b86
Tuukka Lehtonen [Fri, 1 Dec 2017 10:47:31 +0000 (12:47 +0200)]
Merge changes I24f9af64,I97579b86

* changes:
  Fixed File SCL module documentation markdown flaws.
  Simplified diagram connection creation

2 years agoFixed File SCL module documentation markdown flaws. 74/1274/1
Tuukka Lehtonen [Thu, 30 Nov 2017 17:30:10 +0000 (19:30 +0200)]
Fixed File SCL module documentation markdown flaws.

refs #7396

Change-Id: I24f9af64143818b8952ef50dbdf131e9b4ffcfd5

2 years agoSimplified diagram connection creation 73/1273/2
Tuukka Lehtonen [Thu, 30 Nov 2017 17:26:55 +0000 (19:26 +0200)]
Simplified diagram connection creation

With these changes diagram connections can be created with a single drag
operation when suitable by holding the first (left) mouse button down
until releasing it on top of the end terminal of the connection.

The same sequence also work for branching to/from an existing
connection.

refs #7653

Change-Id: I97579b86220d9ee1eacd9df5a1106524b35bf225

2 years agoFixed a bug related to as-pattern in list comprehension. 61/1261/5
Hannu Niemistö [Fri, 24 Nov 2017 11:51:11 +0000 (13:51 +0200)]
Fixed a bug related to as-pattern in list comprehension.

refs #7642

Change-Id: I7f9b3b45d545e2fe793fcaa93b9d392972f0e53b

2 years agoMore robust Simantics platform shutdown logic. 69/1269/3
Tuukka Lehtonen [Wed, 29 Nov 2017 11:07:05 +0000 (13:07 +0200)]
More robust Simantics platform shutdown logic.

Added a JVM runtime shutdown hook to ensure that unless the JVM process
is killed forcibly, the JVM should attempt properly shutting down the
Simantics platform, even if the client code that started the platform
fails to do so for any reason.

Also marked both SimanticsPlatform.{startUp,shutdown} synchronized to
prevent concurrent access to either the start-up or shutdown logic.

refs #7650

Change-Id: I8c8022730ed973d80897fb364592881425b0a51f

2 years agoImprove SCL Files API with parent and path resolving functions 67/1267/2
jsimomaa [Wed, 29 Nov 2017 05:41:27 +0000 (07:41 +0200)]
Improve SCL Files API with parent and path resolving functions

refs #7647

Change-Id: I783fa3029e48c73d93ac6bb320068bd28572da1d

2 years agoCopy-paste in SCL issues view 62/1262/3
Hannu Niemistö [Fri, 24 Nov 2017 11:53:15 +0000 (13:53 +0200)]
Copy-paste in SCL issues view

refs #7643

Change-Id: I3a417ccaba81e3df9a0dfa796756ebb9362603eb

2 years agoMerge "ListUtils.create(WriteGraph, Iterable<Resource> elements) DelayedWritegraph...
Marko Luukkainen [Mon, 27 Nov 2017 09:55:53 +0000 (11:55 +0200)]
Merge "ListUtils.create(WriteGraph, Iterable<Resource> elements) DelayedWritegraph fix"

2 years agoListUtils.create(WriteGraph, Iterable<Resource> elements) 64/1264/1
Marko Luukkainen [Mon, 27 Nov 2017 09:03:22 +0000 (11:03 +0200)]
ListUtils.create(WriteGraph, Iterable<Resource> elements)
DelayedWritegraph fix

fixes #7645

Change-Id: I699de77f346528234c7007639b01bcdbd72d4de4

2 years agoFunctions mapFst and mapSnd 63/1263/1
Hannu Niemistö [Fri, 24 Nov 2017 12:00:50 +0000 (14:00 +0200)]
Functions mapFst and mapSnd

refs #7644

Change-Id: Id95dca0a0d48d864c745e65b597fe91a9c92bb83

2 years agoFix NPE when user inputs empty string 60/1260/1
Marko Luukkainen [Fri, 24 Nov 2017 09:57:52 +0000 (11:57 +0200)]
Fix NPE when user inputs empty string

fixes #7640

Change-Id: I44edaedd18185594965e2b2ce04b4931f3d6c724

2 years agoAdded function elemIndex to SCL Prelude 59/1259/1
Tuukka Lehtonen [Thu, 23 Nov 2017 22:00:21 +0000 (00:00 +0200)]
Added function elemIndex to SCL Prelude

refs #7639

Change-Id: I927c447e0e5a1d6102172c8d99f36c4a79e9138a

2 years agoNew SCL completion implementation 56/1256/1
Hannu Niemistö [Thu, 23 Nov 2017 11:19:00 +0000 (13:19 +0200)]
New SCL completion implementation

refs #7638

Change-Id: I57d2ddc1628ff8da2421c4eda41ce5b83187543e

2 years agoMerge "Corrected lifetime of clusters from Integer.MAX_VALUE to Long.MAX_VALUE"
Tuukka Lehtonen [Thu, 23 Nov 2017 09:39:53 +0000 (11:39 +0200)]
Merge "Corrected lifetime of clusters from Integer.MAX_VALUE to Long.MAX_VALUE"

2 years agoCorrected lifetime of clusters from Integer.MAX_VALUE to Long.MAX_VALUE 55/1255/1
Jussi Koskela [Thu, 23 Nov 2017 09:23:43 +0000 (11:23 +0200)]
Corrected lifetime of clusters from Integer.MAX_VALUE to Long.MAX_VALUE

refs #7637

Change-Id: Ia26059c496fae22538e7c398924c9294d638d248

2 years agoDisabled old Team and Staging views that no longer work. 54/1254/1
Tuukka Lehtonen [Thu, 23 Nov 2017 08:00:46 +0000 (10:00 +0200)]
Disabled old Team and Staging views that no longer work.

refs #7636

Change-Id: I6f155e4f129fc746708ec82915db7b49f3f92704

2 years agoWake up Acorn Core Main Program on commit 53/1253/2
Jussi Koskela [Wed, 22 Nov 2017 14:19:18 +0000 (16:19 +0200)]
Wake up Acorn Core Main Program on commit

Without this fix undo operations take up to 5 seconds.

refs #7635

Change-Id: I5e1d5d05d27544f2c30a2d31cf038ce1a8a64e86

2 years agoRevert of SCL context using try-finally 51/1251/2
Jussi Koskela [Wed, 22 Nov 2017 12:00:34 +0000 (14:00 +0200)]
Revert of SCL context using try-finally

refs #7634

Change-Id: Icf20bfb365c8965fd1d8af960a0c82e14c45043f

2 years agoLet the request processor handle the exceptions 50/1250/2
Jussi Koskela [Wed, 22 Nov 2017 10:56:27 +0000 (12:56 +0200)]
Let the request processor handle the exceptions

Prior to this failed write transactions were not cancelled. For
consistency the read transactions are now handled the same way.
Also deprecated legacy implementations.

refs #7633

Change-Id: Ic301acc2d7f05bb8f42df3322e94cf56b1631203

2 years agoGraph bookkeeping gets broken in SCL request API 35/1235/4
Antti Villberg [Fri, 17 Nov 2017 12:23:30 +0000 (14:23 +0200)]
Graph bookkeeping gets broken in SCL request API

Also re-throw DatabaseExceptions directly instead of wrapping them in
yet another DatabaseException in Simantics.apply* methods.

refs #7624

Change-Id: I2e33164dc8f4782f97e796a3f7bd14f0da0a37c3

2 years agoBetter error reporting when graph module does not have URI 37/1237/1
Hannu Niemistö [Sun, 19 Nov 2017 08:50:35 +0000 (10:50 +0200)]
Better error reporting when graph module does not have URI

refs #7626

Change-Id: I4c140ef09a13e2951b23557e086dc8baed7d7b34

2 years agorenderSVG fails if a SingleElementNode does not contain a resource 36/1236/2
Antti Villberg [Sat, 18 Nov 2017 19:24:12 +0000 (21:24 +0200)]
renderSVG fails if a SingleElementNode does not contain a resource

refs #7625

Change-Id: I5c0eee38a060207c2a31078586a4c4c85b2c902f

2 years agoTreeGridWidget performance 31/1231/2
Antti Villberg [Thu, 16 Nov 2017 11:42:12 +0000 (13:42 +0200)]
TreeGridWidget performance

refs #7623

Change-Id: I6853827a98b3663d16d292e89741667c6be95014

2 years agoAdded utility for truncating collected history data 29/1229/5
Tuukka Lehtonen [Wed, 15 Nov 2017 13:21:38 +0000 (15:21 +0200)]
Added utility for truncating collected history data

The utility also supports an approximate truncation of the dynamic
CollectorState structure related to an active Collector instance.

refs #7622

Change-Id: I0041f26ca53250f3bed22f32de6c789f80a607c5

2 years agoMerge "(refs #7621) Fixed handling of $ in application ignoring return value"
Tuukka Lehtonen [Wed, 15 Nov 2017 13:33:13 +0000 (15:33 +0200)]
Merge "(refs #7621) Fixed handling of $ in application ignoring return value"

2 years ago(refs #7621) Fixed handling of $ in application ignoring return value 27/1227/2
Hannu Niemistö [Wed, 15 Nov 2017 11:20:41 +0000 (13:20 +0200)]
(refs #7621) Fixed handling of $ in application ignoring return value

Change-Id: Id605cb22cb195d353970cc5ce8c45eecc2428841

2 years agoExport org.simantics.ui.workspace.tracker.IWorkbenchSizeTrackerConstants 26/1226/2
Tuukka Lehtonen [Wed, 15 Nov 2017 08:36:28 +0000 (10:36 +0200)]
Export org.simantics.ui.workspace.tracker.IWorkbenchSizeTrackerConstants

refs #7618

Change-Id: Ibbce58a704374c500dcff394cbe5c39b8d231e13

2 years agoMinor cleanup for workspace size tracking code. 25/1225/2
Tuukka Lehtonen [Wed, 15 Nov 2017 07:52:03 +0000 (09:52 +0200)]
Minor cleanup for workspace size tracking code.

refs #7617
refs #7618

Change-Id: I836bf9bcb9bb50115a308ff3487a98772d5d6f11

2 years agoMerge "(refs #7619) Better parenthese in derived show"
Hannu Niemistö [Wed, 15 Nov 2017 08:11:52 +0000 (10:11 +0200)]
Merge "(refs #7619) Better parenthese in derived show"

2 years agoMerge "(refs #7607) Fixed handling of SCLContext in asynchronous requests"
Tuukka Lehtonen [Wed, 15 Nov 2017 07:18:22 +0000 (09:18 +0200)]
Merge "(refs #7607) Fixed handling of SCLContext in asynchronous requests"

2 years ago(refs #7619) Better parenthese in derived show 24/1224/1
Hannu Niemistö [Wed, 15 Nov 2017 07:11:32 +0000 (09:11 +0200)]
(refs #7619) Better parenthese in derived show

Change-Id: Ia0ce420d8958395f787f08926a14e7bfd6fc2bcd

2 years ago(refs #7607) Fixed handling of SCLContext in asynchronous requests 23/1223/1
Hannu Niemistö [Wed, 15 Nov 2017 06:54:45 +0000 (08:54 +0200)]
(refs #7607) Fixed handling of SCLContext in asynchronous requests

Change-Id: I3956ee1fa00a8e42a9531aab43b9ba63461ac353

2 years agoAdded org.simantics.ui.workspace.tracker for tracking workspace size 22/1222/3
Tuukka Lehtonen [Tue, 14 Nov 2017 23:21:11 +0000 (01:21 +0200)]
Added org.simantics.ui.workspace.tracker for tracking workspace size

Both org.simantics.filesystem.services and
org.simantics.ui.workspace.tracker must be included in a product to get
the trim contribution working.

refs #7618

Change-Id: Iad7d7c9393ecb236700f6981c527b2e5e5f05e6b

2 years agoAdded org.simantics.filesystem.services 21/1221/2
Tuukka Lehtonen [Tue, 14 Nov 2017 23:14:55 +0000 (01:14 +0200)]
Added org.simantics.filesystem.services

Contains DirectorySizeService for tracking the size of filesystem
directories.

refs #7617

Change-Id: I08e7c9297046c66c6d2b9bbbcb6122e370103c83

2 years agoImproved Simantics/SCL module SCL module/script functionality 20/1220/1
Tuukka Lehtonen [Tue, 14 Nov 2017 09:06:55 +0000 (11:06 +0200)]
Improved Simantics/SCL module SCL module/script functionality

* Added new functions create{SCLModule,SCLScript,PGraph}R that return
  the created resource instead of returning ().
* Added new functions createSCL{Module,Script}WithDefinition for
  directly creating modules/scripts with a specific definition
* Added new functions set{SCLModule,SCLScript,PGraph}Definition for
  setting the definition specific to each entity.
* Added preliminary documentation for the module
* Deprecated create{SCLModule,SCLScript,PGraph} functions in favor of
  create...R

refs #7616

Change-Id: Ia2d97682eb184f5b0edd849f564ca05561938cb4

2 years agoAdded preference for Import dependencies in generic model import/export 19/1219/2
Tuukka Lehtonen [Tue, 14 Nov 2017 07:46:58 +0000 (09:46 +0200)]
Added preference for Import dependencies in generic model import/export

Also fixed the model import wizard to replace L0.ExternalEntity
instances with the imported dependencies.

refs #7572

Change-Id: Ia68eb5afc3e835821f17bf96cc48205d9372a013

2 years agoAdded StringIO.readContentsWithCharset 18/1218/1
Tuukka Lehtonen [Tue, 14 Nov 2017 06:51:05 +0000 (08:51 +0200)]
Added StringIO.readContentsWithCharset

refs #7615

Change-Id: I8dd435df65cb8273d2be28db47cd3fef8ed60d7d

2 years agoMerge "Added function createSCLScript to Simantics/SCL API"
Tuukka Lehtonen [Mon, 13 Nov 2017 14:03:08 +0000 (16:03 +0200)]
Merge "Added function createSCLScript to Simantics/SCL API"

2 years agoMerge "(refs #7614) Assign type-checked expression back to list comprehension"
Hannu Niemistö [Mon, 13 Nov 2017 13:52:31 +0000 (15:52 +0200)]
Merge "(refs #7614) Assign type-checked expression back to list comprehension"

2 years agoAdded function createSCLScript to Simantics/SCL API 17/1217/1
Tuukka Lehtonen [Mon, 13 Nov 2017 13:48:35 +0000 (15:48 +0200)]
Added function createSCLScript to Simantics/SCL API

refs #7450

Change-Id: Ie1ed6a809bd897e055789c66d8c62bb44edfeac0

2 years agoMerge "(refs #7613) Removed some module sources as declarative services"
Tuukka Lehtonen [Mon, 13 Nov 2017 11:24:49 +0000 (13:24 +0200)]
Merge "(refs #7613) Removed some module sources as declarative services"

2 years ago(refs #7614) Assign type-checked expression back to list comprehension 16/1216/1
Hannu Niemistö [Mon, 13 Nov 2017 10:49:14 +0000 (12:49 +0200)]
(refs #7614) Assign type-checked expression back to list comprehension

Change-Id: Id964cb53d85b0a8e5ec95f472d1f9afe7dc45160

2 years ago(refs #7613) Removed some module sources as declarative services 15/1215/1
Hannu Niemistö [Mon, 13 Nov 2017 10:43:16 +0000 (12:43 +0200)]
(refs #7613) Removed some module sources as declarative services

Change-Id: I5e7c8a2921c945d802d38baa458d784270373d93

2 years agoFixed NPE when disposing uninitialized SCL module editor 14/1214/1
Jussi Koskela [Mon, 13 Nov 2017 07:51:08 +0000 (09:51 +0200)]
Fixed NPE when disposing uninitialized SCL module editor

refs #7612

Change-Id: I1dbd37b199034caa288a95012f2cbb9b4385c00c

2 years agoWorkaround to fix performance problems when opening log view 13/1213/1
Jussi Koskela [Mon, 13 Nov 2017 07:30:57 +0000 (09:30 +0200)]
Workaround to fix performance problems when opening log view

refs #7611

Change-Id: I15579e23de2ec1b5f217021dc8ef06cc1dfbe5e4

2 years agoDeprecating old API:s and inventing new ones for ICanvasContext in SCL 08/1208/3
jsimomaa [Tue, 7 Nov 2017 18:51:17 +0000 (20:51 +0200)]
Deprecating old API:s and inventing new ones for ICanvasContext in SCL

refs #7608

Change-Id: I89aa437ca8c98df7fd2644afffc037030fff2fd7

2 years agoAdd <Proc> to dispose-function of IScenegraphProvider 07/1207/1
jsimomaa [Tue, 7 Nov 2017 15:06:57 +0000 (17:06 +0200)]
Add <Proc> to dispose-function of IScenegraphProvider

refs #7608

Change-Id: I950fa4642f355d0b8eca21baacb5e37f465373db

2 years agoMerge "(refs #7607) Async module for running functions asynchronously"
Hannu Niemistö [Tue, 7 Nov 2017 14:44:31 +0000 (16:44 +0200)]
Merge "(refs #7607) Async module for running functions asynchronously"

2 years agoMerge "(refs #7606) Timing with task name (Debug module)"
Hannu Niemistö [Tue, 7 Nov 2017 14:26:10 +0000 (16:26 +0200)]
Merge "(refs #7606) Timing with task name (Debug module)"

2 years ago(refs #7607) Async module for running functions asynchronously 06/1206/2
Hannu Niemistö [Tue, 7 Nov 2017 14:23:12 +0000 (16:23 +0200)]
(refs #7607) Async module for running functions asynchronously

Change-Id: I4870aefa0c965bd0cf4ada19c01fa9b01efca171

2 years ago(refs #7606) Timing with task name (Debug module) 05/1205/1
Hannu Niemistö [Tue, 7 Nov 2017 14:01:58 +0000 (16:01 +0200)]
(refs #7606) Timing with task name (Debug module)

Change-Id: I05aee8105315ac0bb8f6eefdca52334b42ce3149

2 years agoMoved license page from developer wiki to git repository. 04/1204/1
Tuukka Lehtonen [Tue, 7 Nov 2017 13:56:28 +0000 (15:56 +0200)]
Moved license page from developer wiki to git repository.

From now on only this license.html will be kept up-to-date.

refs #7605

Change-Id: I3b2abe627a3e22d623a2bf005a4fb6d7c12721bc

2 years ago(refs #7604) Improvements to graph handling in SCL source modules 02/1202/1
Hannu Niemistö [Mon, 6 Nov 2017 16:07:52 +0000 (18:07 +0200)]
(refs #7604) Improvements to graph handling in SCL source modules

This commit also improves exceptions printed by CommandSession.

Change-Id: Ifda4468ae31b8ea08656b2dd60f4255c19d11ee3

2 years agoFixed migrating import temporary folder creation to prevent name overlap 00/1200/1
Tuukka Lehtonen [Mon, 6 Nov 2017 10:53:36 +0000 (12:53 +0200)]
Fixed migrating import temporary folder creation to prevent name overlap

Previously model imports could fail if they were small and contained one
or more shared libraries imported at the same time because the imports
could be done within the same second which triggered the folder name
overlap.

refs #7603

Change-Id: I0f559f2fe2e7bdb1a8852e7cd7a74cecd7bb6055

2 years agoRemoved unnecessary getPossibleRepresents invocation 97/1197/2
Tuukka Lehtonen [Mon, 6 Nov 2017 07:04:40 +0000 (09:04 +0200)]
Removed unnecessary getPossibleRepresents invocation

refs #7525

Change-Id: I78dc128df39f74a7798705a2ebf21b7a5832256b

2 years ago(refs #7601) Wildcard syntax for SCL records 98/1198/2
Hannu Niemistö [Mon, 6 Nov 2017 08:14:39 +0000 (10:14 +0200)]
(refs #7601) Wildcard syntax for SCL records

Change-Id: Ia044ce4598d0897bbd7416527707b49211aba9e3

2 years agoUse java.file.nio API Files.createDirectories instead of File.mkdirs 96/1196/1
Tuukka Lehtonen [Sun, 5 Nov 2017 11:53:45 +0000 (13:53 +0200)]
Use java.file.nio API Files.createDirectories instead of File.mkdirs

This should at least provide better diagnostics in case of unexpected
failure.

refs #7600

Change-Id: Ib5fb10798257cd35d3d8c3c533574b17a62e715b

2 years agoSome fixes/cleanup for cluster table size caching logic. 95/1195/1
Tuukka Lehtonen [Sun, 5 Nov 2017 11:52:32 +0000 (13:52 +0200)]
Some fixes/cleanup for cluster table size caching logic.

The previous code was not keeping the cached size properly up-to-date
which resulted in the DB client thinking that the consumer cluster
memory size is larger than it actually is and eventually winding up in a
state where the LRU importanceMap is constantly almost empty and the
code keeps throwing away clusters whenever the next cluster is loaded
due the misconception of used cluster memory.

The code is still not perfect/totally functional - I was still able to
get the thrashing situation to reproduce with A6 model imports, but not
as heavily as originally. I was able to import models with much more
initial conditions stored than previously without these changes.

refs #7598

Change-Id: I039fa2062908c05a61efb28e695daec01afd1725

2 years agoClear subtask from progress monitor after TG to DB import completes 94/1194/1
Tuukka Lehtonen [Sun, 5 Nov 2017 11:33:07 +0000 (13:33 +0200)]
Clear subtask from progress monitor after TG to DB import completes

refs #7599

Change-Id: I991509752544bf85f1a054a46ad0411daec79027