simantics/platform.git
20 months agoExport org.simantics.modeling.ui.scl package from os.modeling.ui 82/1582/1
Tuukka Lehtonen [Thu, 15 Mar 2018 15:07:04 +0000 (17:07 +0200)]
Export org.simantics.modeling.ui.scl package from os.modeling.ui

refs #7823

Change-Id: I299da65fed3a7670ead3fae1b02ea6166124100b

20 months agoDisable parallel graph.tg/header read, serializer ctor not thread-safe 81/1581/1
Tuukka Lehtonen [Thu, 15 Mar 2018 14:33:04 +0000 (16:33 +0200)]
Disable parallel graph.tg/header read, serializer ctor not thread-safe

Having parallel() here caused random platform startup problems and
doesn't account for any major speedup in normal use anyway.

refs #7806

Change-Id: I37b26a3df622d4ad3b2ad744e43e2f08cf0284ff

20 months agoAdded graph.tg hash caching to FixExportedOntology 66/1566/3
Tuukka Lehtonen [Tue, 13 Mar 2018 09:08:40 +0000 (11:08 +0200)]
Added graph.tg hash caching to FixExportedOntology

Moved generic database baselining code to DatabaseBaselines from
SimanticsPlatform and added new utility functions to DataContainers and
cleaned up existing methods therein using resource-try statements.

Also note org.simantics.graph.refactoring.TransferableGraphHasher that
can be used for adding hash values to graph.tg files.

refs #7806

Change-Id: I7f54cfb0db68a8a5602fc2a8d9651cb305a8136d

20 months agoSingleObjectWithType was broken in the previous change 69/1569/1
Marko Luukkainen [Tue, 13 Mar 2018 09:45:48 +0000 (11:45 +0200)]
SingleObjectWithType was broken in the previous change

refs #7803

Change-Id: I4ad3281195144f5f70dd0cc86e2348663d0d1c02

20 months agoAdded a handler for data format sharedLibrary:1 63/1563/1
Hannu Niemistö [Tue, 13 Mar 2018 07:33:21 +0000 (09:33 +0200)]
Added a handler for data format sharedLibrary:1

refs #7806

Change-Id: I2994b32318d665aed3f84077da8ce89286e3b3bc

20 months agoFixed platform startup ontology update hash checking to work 62/1562/2
Tuukka Lehtonen [Mon, 12 Mar 2018 20:15:14 +0000 (22:15 +0200)]
Fixed platform startup ontology update hash checking to work

There was a typo in the Extensions class constant that identified cached
hash value in the DataContainer metadata map compared to the maven graph
builder plug-in.

refs #7806

Change-Id: I21e99108adfa2b1e9307127ffd4be7127f852812

20 months agoEscape/unescape names of the externals when converting to/from URIs 58/1558/2
Jussi Koskela [Mon, 12 Mar 2018 13:25:46 +0000 (15:25 +0200)]
Escape/unescape names of the externals when converting to/from URIs

refs #7812

Change-Id: I491a0d57a076c73785e120c3632d48c6258ea1ab

20 months agoPlatform startup performance improvements 49/1549/6
Tuukka Lehtonen [Fri, 9 Mar 2018 21:41:15 +0000 (23:41 +0200)]
Platform startup performance improvements

1. DB baselining can now be enabled with ontology update checking due to
   caching of TG hash values in the DataContainer.metadata
   map field with key "cached.hashCode". This diminishes the time taken
   by ontology merge need checking to very little time compared to the
   old system where all graph.tg files were loaded completely into heap
   memory to simply check whether they need to be merged or not.

2. BaselineCreator application can be used to construct a baseline with
   a built product in any OS supported by Simantics.

To get the benefit from these changes, you'll also need to use the
version 0.0.9 of the graph-builder-maven-plugin.

refs #7806

Change-Id: I7fadaf43f3c96d3b989a73e0f1ae6e6fa83e09ce

20 months agoMerge "(refs #7811) Some new functions for SCL reflection"
Hannu Niemistö [Mon, 12 Mar 2018 10:23:43 +0000 (12:23 +0200)]
Merge "(refs #7811) Some new functions for SCL reflection"

20 months ago(refs #7811) Some new functions for SCL reflection 56/1556/1
Hannu Niemistö [Mon, 12 Mar 2018 09:08:38 +0000 (11:08 +0200)]
(refs #7811) Some new functions for SCL reflection

Change-Id: I80b7091a59b0446b1b3d066056b1473d9ec74c56

20 months agoTruncate file after writing DataContainer to it 54/1554/1
Jussi Koskela [Mon, 12 Mar 2018 07:35:47 +0000 (09:35 +0200)]
Truncate file after writing DataContainer to it

refs #7810

Change-Id: I5ab3f7b1e173b22f1183d4c1fbef1d5d260030e4

20 months ago(refs #7809) Added builtin Pure type to indicate no effects 48/1548/1
Hannu Niemistö [Fri, 9 Mar 2018 21:39:05 +0000 (23:39 +0200)]
(refs #7809) Added builtin Pure type to indicate no effects

Change-Id: I7068a4932be87afaa254cd9b1eecce712fb83d9c

20 months agoInclude cached hash code in TransferableGraph1 extensions map 43/1543/2
Tuukka Lehtonen [Fri, 9 Mar 2018 11:20:47 +0000 (13:20 +0200)]
Include cached hash code in TransferableGraph1 extensions map

The cached hashcode is calculated before inserting the cached hash value
in the TransferableGraph1.extensions TreeMap. Reading and inspection
must be done with this in mind.

This cached value is used to optimize platform startup by removing the
need to calculate the TransferableGraph1 structure hashcode at runtime
which can be quite expensive because the standard databoard Bindings are
slow compared to optimal methods. Of course an optimized binding could
be used to speed the calculation up dramatically but it still can't beat
caching the final (immutable) hashCode value.

refs #7806

Change-Id: I9d4fc6549cba567f95b19f80bd15c1ccfbbedf07

20 months ago(refs #7807) Fixed bad signature of virtualSyncWriteXXX 40/1540/2
Hannu Niemistö [Fri, 9 Mar 2018 10:05:26 +0000 (12:05 +0200)]
(refs #7807) Fixed bad signature of virtualSyncWriteXXX

Change-Id: I93ae74a99e8ee6829f077b1622d61954a78787af

20 months agoImprove startup time for fresh or rollback'd session in index writing 36/1536/3
jsimomaa [Thu, 8 Mar 2018 11:56:30 +0000 (13:56 +0200)]
Improve startup time for fresh or rollback'd session in index writing

refs #7806

Change-Id: I44ea1e0972bfd360b6af44dbbe62e934e06c59e0

20 months agoRestored old NoSingleResultException constructors without result count 38/1538/1
Tuukka Lehtonen [Thu, 8 Mar 2018 14:42:07 +0000 (16:42 +0200)]
Restored old NoSingleResultException constructors without result count

Don't break backwards compatibility.

refs #7803

Change-Id: I33a88f002bedb79202176860d65cb77bf43aab4a

20 months agoIgnore NoSingleResultException in DependenciesRelation 29/1529/8
jsimomaa [Wed, 7 Mar 2018 08:06:29 +0000 (10:06 +0200)]
Ignore NoSingleResultException in DependenciesRelation

Some fixes for NoSingleResultException usage and introducing resultCount
field for more detailed exception messages

refs #7803

Change-Id: Id633dcfee66c44556de3943c5ec4454e9473f6f3

20 months agoSCL compiler generates line numbers to bytecode 34/1534/3
Hannu Niemistö [Thu, 8 Mar 2018 06:18:56 +0000 (08:18 +0200)]
SCL compiler generates line numbers to bytecode

refs #6922

Change-Id: I2219d6dc74ae815cdea7d3f6daf3a736be5f1781

20 months agoIndexedRelationsSearcherBase possible deadlock with semaphore 35/1535/2
jsimomaa [Thu, 8 Mar 2018 07:56:08 +0000 (09:56 +0200)]
IndexedRelationsSearcherBase possible deadlock with semaphore

refs #7805

Change-Id: I0a3e7d03b648d2b03b187baf171c0c95b4b7abb9

20 months agoAdded LoggingUtils/archiveLogs SCL function. 33/1533/1
Tuukka Lehtonen [Wed, 7 Mar 2018 12:59:39 +0000 (14:59 +0200)]
Added LoggingUtils/archiveLogs SCL function.

Also moved all archival related headless code to org.simantics.logging
from org.simantics.logging.ui to keep both UI & headless codebases
cleaner.

DBAndMetadataLogProvider was fixed to support workspace paths with
whitespace in their name.

LogCollector.archiveLogs now also removes the temporary directory
structure it creates for collecting and archiving the log files.

refs #7795

Change-Id: Icbffa7ffc5d6a5f2b859b0220fbebcf59b5ac590

20 months agoAlways discard database undo history after each platform startup. 32/1532/2
Tuukka Lehtonen [Wed, 7 Mar 2018 11:44:25 +0000 (13:44 +0200)]
Always discard database undo history after each platform startup.

refs #7792

Change-Id: I587d095dbb65e458ff70a4cdf14001f6bee13461

20 months agoImproved exceptions & logging & debugging of GraphModuleSourceRepository 30/1530/3
jsimomaa [Wed, 7 Mar 2018 10:34:42 +0000 (12:34 +0200)]
Improved exceptions & logging & debugging of GraphModuleSourceRepository

refs #7804

Change-Id: Ia3fcd7f9e42e704d544382cd8257b035526addb6

20 months agoFixed yet another potential NPE. 31/1531/1
Tuukka Lehtonen [Wed, 7 Mar 2018 10:50:28 +0000 (12:50 +0200)]
Fixed yet another potential NPE.

refs #7800

Change-Id: Ia6f45c5f3b5c32845bb486062fe46e10fe8cffe2

20 months agoAdded missing Proc effect to importSharedOntology SCL function 26/1526/1
Jussi Koskela [Tue, 6 Mar 2018 08:40:46 +0000 (10:40 +0200)]
Added missing Proc effect to importSharedOntology SCL function

refs #7794

Change-Id: I2879e0d21194e50aba1bdfbc33146587284b647a

20 months agoMerge "Tried to improve the implementation of getPossibleDomainProperty"
Hannu Niemistö [Tue, 6 Mar 2018 07:15:30 +0000 (09:15 +0200)]
Merge "Tried to improve the implementation of getPossibleDomainProperty"

20 months agoTried to improve the implementation of getPossibleDomainProperty 24/1524/1
Hannu Niemistö [Mon, 5 Mar 2018 14:46:30 +0000 (16:46 +0200)]
Tried to improve the implementation of getPossibleDomainProperty

refs #7800

Change-Id: Ife7ed9a2c7ec556194987b34c3301e6ea8e0e7bc

20 months agoAdded HDF5 license to Simantics license texts 23/1523/2
Tuukka Lehtonen [Sat, 3 Mar 2018 23:07:28 +0000 (01:07 +0200)]
Added HDF5 license to Simantics license texts

refs #7793

Change-Id: I183c4d01d5e3c106d0369e4d9a42f4d084926ff3

20 months agoLogging configuration via SCL and UI & saving to ZIP-archive 19/1519/1
jsimomaa [Fri, 2 Mar 2018 10:28:34 +0000 (12:28 +0200)]
Logging configuration via SCL and UI & saving to ZIP-archive

refs #7795

Change-Id: Ib8867aff85634d6a1ed6d2fe65da4e43818b83fc

20 months agoNPE fix for Acorn cluster stream undo handling 17/1517/2
Tuukka Lehtonen [Thu, 1 Mar 2018 22:35:49 +0000 (00:35 +0200)]
NPE fix for Acorn cluster stream undo handling

refs #7792

Change-Id: If6e7e3d89db26bb7c4aeed06507b02ae34554d00

20 months agoAdded HDF5 Java interface library version 1.10.0-patch1 to the platform 18/1518/3
Tuukka Lehtonen [Thu, 1 Mar 2018 23:08:48 +0000 (01:08 +0200)]
Added HDF5 Java interface library version 1.10.0-patch1 to the platform

If you need the library in your product, include the hdf.hdf5 feature to
include the hdf.hdf5lib plug-in.

For now only the win32.x86_64 build of the interface library is included
in the plug-in but also linux and mac compilations of the DLL should be
included in the future.

refs #7793

Change-Id: I274a1ccf6e00b106c06d74767dd78c36e4073dad

20 months agoSimulator toolkit enhancements 98/1498/8
Antti Villberg [Tue, 27 Feb 2018 09:00:13 +0000 (11:00 +0200)]
Simulator toolkit enhancements

The basic simulator node manager and its supporting structures have been
moved to org.simantics.simulator[.toolkit] and stripped of any
dependency the Simantics database interfaces.

org.simantics.simulator.toolkit.db now contains the parts that bind the
simulator toolkit interfaces to the Simantics DB.

refs #7782

Change-Id: I266faaec323c772767d7a32331ed27e9f893f473

20 months agoFixed Acorn deadlock during snapshotting 11/1511/9
Antti Villberg [Wed, 28 Feb 2018 07:56:08 +0000 (09:56 +0200)]
Fixed Acorn deadlock during snapshotting

refs #7713

Change-Id: Ibb3e87bb6ab4d13bfb6445bf55e16ca8555bee29

20 months agoUse Logger in Debug.scl timing-functions 16/1516/2
jsimomaa [Wed, 28 Feb 2018 12:11:05 +0000 (14:11 +0200)]
Use Logger in Debug.scl timing-functions

refs #7791

Change-Id: Ib2b27db232cf91052b1880d41f4e3f6ed9897f77

20 months agoRemove debug printing from indexing & change debugging level to INFO 15/1515/2
jsimomaa [Wed, 28 Feb 2018 11:56:15 +0000 (13:56 +0200)]
Remove debug printing from indexing & change debugging level to INFO

refs #7785

Change-Id: Idc1bb5aba5dfa217449e2c587e03d67016b8d8b1

20 months agoAdded more createRun utility functions to ExperimentRuns 12/1512/1
Tuukka Lehtonen [Wed, 28 Feb 2018 11:08:16 +0000 (13:08 +0200)]
Added more createRun utility functions to ExperimentRuns

The new functions directly take WriteGraph as input to allow clients to
create an experiment run within one write transaction and still work on
it afterwards.

refs #7790

Change-Id: I49c86df960ec9a42d7dfa3fdba95315398ec6f65

20 months agoAdd logging to indexing & replace File-API with NIO Path-API 00/1500/4
jsimomaa [Tue, 27 Feb 2018 10:00:15 +0000 (12:00 +0200)]
Add logging to indexing & replace File-API with NIO Path-API

refs #7785

Change-Id: I38a1d2fe7425bf06c97e1178c7b26b3566f1126b

20 months agoBumped master target, org.simantics.sdk and desktop versions to 1.34.0 10/1510/3
Tuukka Lehtonen [Tue, 27 Feb 2018 20:58:11 +0000 (22:58 +0200)]
Bumped master target, org.simantics.sdk and desktop versions to 1.34.0

refs #7788

Change-Id: I979284151c186c678d4219a3a810a23727caacfb

20 months agoInclude simantics/3d and gold-members/proteus in release train
Tuukka Lehtonen [Tue, 27 Feb 2018 21:05:59 +0000 (23:05 +0200)]
Include simantics/3d and gold-members/proteus in release train

refs #7712
refs #7788

20 months agoInclude gold-members/proteus in release train.
Tuukka Lehtonen [Tue, 27 Feb 2018 20:23:42 +0000 (22:23 +0200)]
Include gold-members/proteus in release train.

refs #7712

20 months agoInclude simantics/3d repository in release train.
Tuukka Lehtonen [Tue, 27 Feb 2018 15:44:42 +0000 (17:44 +0200)]
Include simantics/3d repository in release train.

refs #7712

20 months agoFix to a NatTable-based graph explorer issue (fixes #7787) 07/1507/1
Reino Ruusu [Tue, 27 Feb 2018 14:38:52 +0000 (16:38 +0200)]
Fix to a NatTable-based graph explorer issue (fixes #7787)

Change-Id: I53e073f06fe4f487e2145879d8c545292a5de08d

20 months agoFix to NatTable graph explorer issue. (fixes #7786) 06/1506/1
Reino Ruusu [Tue, 27 Feb 2018 14:35:06 +0000 (16:35 +0200)]
Fix to NatTable graph explorer issue. (fixes #7786)

Change-Id: I4de3502e86eebc5de915ca91311a4026edac3f5a

20 months agoSimanticsPlatform.startUp ensures updateness of installed feature groups 90/1490/1
Tuukka Lehtonen [Wed, 21 Feb 2018 10:58:32 +0000 (12:58 +0200)]
SimanticsPlatform.startUp ensures updateness of installed feature groups

Previously the installed feature group update code was only executed
when the workspace was first initialized. This does work when new
features are installed into Simantics programs running on existing
workspaces.

refs #7005

Change-Id: I5879c398c966dc5d0e15344569b37610703d5e51

20 months agoDefer change set disposal in State.commitWriteTransaction 88/1488/1
Tuukka Lehtonen [Wed, 21 Feb 2018 10:21:35 +0000 (12:21 +0200)]
Defer change set disposal in State.commitWriteTransaction

The change set was still used after disposal in notifying db change
listeners.

refs #6233

Change-Id: I3e9f49ea084703afdc2129162402ab592f2f3f72

20 months agoFixed InvertBasicExpressionVisitor.invert to keep inverted value type 86/1486/1
Tuukka Lehtonen [Tue, 20 Feb 2018 22:26:16 +0000 (00:26 +0200)]
Fixed InvertBasicExpressionVisitor.invert to keep inverted value type

Previously the code would convert all Number-values to Double instead of
passing the inverted value to Variable.setValue in the same type the
original non-inverted value was in.

refs #7777

Change-Id: I78771698d3e2222ede47969e3cceea2166c23a75

20 months agoDon't report ResourceNotFoundExceptions when looking for browse context 85/1485/2
Tuukka Lehtonen [Tue, 20 Feb 2018 15:02:09 +0000 (17:02 +0200)]
Don't report ResourceNotFoundExceptions when looking for browse context

This changes the code to behave like it did before commit 1dfeb7d5 as
intended.

refs #7719

Change-Id: I4fa9ae5114713d4e61acd1363a5369d16e1a5043

20 months agoDispose ClientChangesImpl ChangeSets to minimize memory footprint 74/1474/7
Tuukka Lehtonen [Fri, 16 Feb 2018 13:09:29 +0000 (15:09 +0200)]
Dispose ClientChangesImpl ChangeSets to minimize memory footprint

This change stems from the fact that
org.simantics.db.common.changeset.GenericChangeListener gives ChangeSets
as an argument to DB requests which can leave strong references to the
ChangeSet instances in the DB QueryProcessor until the DB client
garbage collects these requests. Usually DB client request parameters
should be immutable, but in this case the request is never listened to
for changes so it is OK dispose of the ChangeSet parameter after all
DB ChangeListeners are notified.

This change adds a Disposable implementation to ClientChangesImpl which
minimizes the memory footprint of the class down to 192 bytes compared
to ~2^17 bytes. The instances can take up a very considerable amount of
memory if not disposed. It has not been uncommon to see multiple
gigabytes of memory being spent by these byte[] buffers that are not
really used anymore but still referenced.

Once more note that this is not a case of memory leakage but simply bad
use of memory through over-sized buffers that were GC'ed eventually.

refs #6233

Change-Id: I2e96754f106602a4986c37187a9af3bbd64356dc

20 months ago(refs #7776) Fixed module export for javaImports 82/1482/2
Hannu Niemistö [Tue, 20 Feb 2018 08:53:57 +0000 (10:53 +0200)]
(refs #7776) Fixed module export for javaImports

Change-Id: I50a5f635445d1b1d1df9dfc3ea0195f0859f86c0

21 months agoRemoved unused but similarly buggy code to fb2f890c from WriteBindings 75/1475/2
Tuukka Lehtonen [Fri, 16 Feb 2018 13:27:23 +0000 (15:27 +0200)]
Removed unused but similarly buggy code to fb2f890c from WriteBindings

refs #7770

Change-Id: I3750d0272c3fd4a228fe2c943dcf331955cbcee5

21 months agoImprovements to HTTP client SCL API 71/1471/1
Jussi Koskela [Thu, 15 Feb 2018 13:10:59 +0000 (15:10 +0200)]
Improvements to HTTP client SCL API

Added support for: POST, PUT, DELETE, asynchronous requests, forms,
media types, multi part content, reading response status.

refs #7774

Change-Id: I5220ae0a3bb07b616f9e54c0668a52607114b7a1

21 months agoAdd Future to SCL API 69/1469/1
Jussi Koskela [Thu, 15 Feb 2018 10:48:51 +0000 (12:48 +0200)]
Add Future to SCL API

refs #7772

Change-Id: Ibcc74f90e3111b720d8969a393e2b115bbeefd72

21 months agoAdd support for strings that are longer than 127 characters 66/1466/2
Antti Villberg [Thu, 15 Feb 2018 09:05:53 +0000 (11:05 +0200)]
Add support for strings that are longer than 127 characters

refs #7770

Change-Id: I60990b0f3a0c8051abc43b824df1a88afc07bc87

21 months agosetSystemProperty function to Simantics/Misc SCL-module 65/1465/2
jsimomaa [Thu, 15 Feb 2018 08:54:00 +0000 (10:54 +0200)]
setSystemProperty function to Simantics/Misc SCL-module

refs #7769

Change-Id: I6e1969bf09f0267b706242ad80b483fd11db140d

21 months agoRemove fixed "testlog" as client id and read from system property 64/1464/2
jsimomaa [Thu, 15 Feb 2018 08:53:18 +0000 (10:53 +0200)]
Remove fixed "testlog" as client id and read from system property

refs #7768

Change-Id: I673f29eccc06c8375811fe5da557d506737209c2

21 months agoMerge "(refs #7771) Fixed invalid inline"
Hannu Niemistö [Thu, 15 Feb 2018 10:34:48 +0000 (12:34 +0200)]
Merge "(refs #7771) Fixed invalid inline"

21 months ago(refs #7767) SafeDynamic module 63/1463/2
Hannu Niemistö [Thu, 15 Feb 2018 08:35:07 +0000 (10:35 +0200)]
(refs #7767) SafeDynamic module

Change-Id: I7691aa77ab048f71b7906512bd6962bd52b2e230

21 months ago(refs #7771) Fixed invalid inline 67/1467/1
Hannu Niemistö [Thu, 15 Feb 2018 09:13:09 +0000 (11:13 +0200)]
(refs #7771) Fixed invalid inline

Change-Id: I7b28d6915e792bc9fe858c701d1138f9082dcea3

21 months agoModify createTempFile to make files to $TEMP by default 47/1447/1
jsimomaa [Sat, 10 Feb 2018 15:08:35 +0000 (17:08 +0200)]
Modify createTempFile to make files to $TEMP by default

refs #7761

Change-Id: I834187ce78d2c23d9a92ddb77e9a5257b826910f

21 months agoAdded more TransferableGraphs.writeTransferableGraph methods 39/1439/1
Tuukka Lehtonen [Fri, 9 Feb 2018 08:26:29 +0000 (10:26 +0200)]
Added more TransferableGraphs.writeTransferableGraph methods

* writeTransferableGraph(RequestProcessor,
                         TransferableGraphSource,
                         File,
                         TGStatusMonitor)
  writes the specified TG source into the specified file as a variant
  (i.e. datatype + data)
* writeTransferableGraphVariant(RequestProcessor,
                                TransferableGraphSource,
                                RandomAccessBinary,
                                TGStatusMonitor)
  writes the specified TG source into the specified output binary file
  as a variant (i.e. datatype + data)

refs #7758

Change-Id: Ia50a1ce9c461681ac10be73674fa0e5e9c22b404

21 months agoFixed index query regression in L0.Entity instance queries 34/1434/1
Tuukka Lehtonen [Thu, 8 Feb 2018 21:14:16 +0000 (23:14 +0200)]
Fixed index query regression in L0.Entity instance queries

L0.Entity queries no longer returned any results after the changes done
in #7415.

refs #7753

Change-Id: I7f24b200b410606f93b5f8be7dd0c50de4fd7097
(cherry picked from commit bd2e11cd11e6f5caca215c7546e870564d2c80d4)

21 months agoMerge "Query control functions into Simantics/DB"
Tuukka Lehtonen [Thu, 8 Feb 2018 09:50:52 +0000 (11:50 +0200)]
Merge "Query control functions into Simantics/DB"

21 months agoQuery control functions into Simantics/DB 32/1432/3
Antti Villberg [Wed, 7 Feb 2018 12:53:32 +0000 (14:53 +0200)]
Query control functions into Simantics/DB

refs #7752

Change-Id: I6de90fddcf5cb3b1834a096c8238f63ea6a7d33a

21 months agoFixed org.simantics.modeling.tests to be a normal plug-in
Tuukka Lehtonen [Wed, 7 Feb 2018 19:01:21 +0000 (21:01 +0200)]
Fixed org.simantics.modeling.tests to be a normal plug-in

Previously Tycho's pomless build seems to have thought
of it as a test-plugin automatically because of its name.

refs #7422
refs #7712

(cherry picked from commit cd63fe4ecc67014d294685faeb1bd4334b74d658)

21 months agoAdded org.simantics.modeling.tests to org.simantics.sdk.feature
Tuukka Lehtonen [Wed, 7 Feb 2018 14:00:19 +0000 (16:00 +0200)]
Added org.simantics.modeling.tests to org.simantics.sdk.feature

refs #7422
refs #7712

21 months agoMerge "(refs #7751) Added orElseM"
Hannu Niemistö [Wed, 7 Feb 2018 12:34:18 +0000 (14:34 +0200)]
Merge "(refs #7751) Added orElseM"

21 months ago(refs #7751) Added orElseM 29/1429/1
Hannu Niemistö [Wed, 7 Feb 2018 12:20:34 +0000 (14:20 +0200)]
(refs #7751) Added orElseM

Change-Id: I365c89a1d4ad60b1763854b6d6cd0a3a94e1ab49

21 months agoAnother version of shared ontology import which returns the roots (SCL) 27/1427/1
Jussi Koskela [Wed, 7 Feb 2018 10:53:58 +0000 (12:53 +0200)]
Another version of shared ontology import which returns the roots (SCL)

refs #7749

Change-Id: I01079e807e23efa123d3ac025ddc793f663b8017

21 months agoMerge "Customisable selection padding on diagrams"
Tuukka Lehtonen [Wed, 7 Feb 2018 07:08:13 +0000 (09:08 +0200)]
Merge "Customisable selection padding on diagrams"

21 months agoCustomisable selection padding on diagrams 25/1425/2
Antti Villberg [Wed, 7 Feb 2018 06:16:18 +0000 (08:16 +0200)]
Customisable selection padding on diagrams

refs #7747

Change-Id: I884be9b927a35e77ef23167c06eb7b836297002d

21 months ago(refs #7746) Fixed applications with intermediate effects 24/1424/2
Hannu Niemistö [Tue, 6 Feb 2018 12:25:27 +0000 (14:25 +0200)]
(refs #7746) Fixed applications with intermediate effects

Change-Id: Ida2b7c8e96cbfd45361838e69900a7307e69e343

21 months agoMore options for SCL progress monitoring 22/1422/2
Antti Villberg [Tue, 6 Feb 2018 06:16:29 +0000 (08:16 +0200)]
More options for SCL progress monitoring

#7744

Change-Id: I10169845aa780ce6f351ea54fde814d8d2f0eee8

21 months agoAbstractResponseHandler uses wrong identity 21/1421/2
Antti Villberg [Tue, 6 Feb 2018 06:15:30 +0000 (08:15 +0200)]
AbstractResponseHandler uses wrong identity

refs #7743

Change-Id: I3faabdf8b096758a5fd67c5229a011601083de49

21 months agoFixed yet another fallout bug caused by commit b9b77f42 20/1420/1
Tuukka Lehtonen [Mon, 5 Feb 2018 14:19:35 +0000 (16:19 +0200)]
Fixed yet another fallout bug caused by commit b9b77f42

refs #7742

Change-Id: I2a267c11e5e9a151352d08beab38b604368fbdc1

21 months agoFix rollingFileAppender fileNamePattern in logback.xml 18/1418/1
jsimomaa [Fri, 2 Feb 2018 10:50:57 +0000 (12:50 +0200)]
Fix rollingFileAppender fileNamePattern in logback.xml

refs #7740

Change-Id: Ibcc6f3b19f4d159ee75a42640f000299061ac5c9

21 months agoAdd SubMonitor features to UI/Progress SCL-module 16/1416/1
jsimomaa [Thu, 1 Feb 2018 07:55:16 +0000 (09:55 +0200)]
Add SubMonitor features to UI/Progress SCL-module

refs #7738

Change-Id: Id65d40a133f443b005f8dbe93c015d6c6150f6ee

21 months agoFix opening of SCL-definitions 15/1415/1
jsimomaa [Thu, 1 Feb 2018 06:43:06 +0000 (08:43 +0200)]
Fix opening of SCL-definitions

refs #7733

Change-Id: Iffab8f3330d2b491c6ec29728271c2f1a260d3b4

21 months agoFixed leftover problems in unification of *Array and Vector types 13/1413/1
Tuukka Lehtonen [Wed, 31 Jan 2018 14:58:34 +0000 (16:58 +0200)]
Fixed leftover problems in unification of *Array and Vector types

The fix was to remove the leftover `Show DoubleArray` instance from
Prelude.

ConstraintEnvironment.reduce now produces better error output in cases
where reduction cannot be completed due to multiple remaining matches.

refs #7734

Change-Id: Id970c1090f5bf951c94e99e645664e86b1adb42d

21 months agoFix TG export regression caused by commit b9b77f42 12/1412/5
Antti Villberg [Wed, 31 Jan 2018 12:58:37 +0000 (14:58 +0200)]
Fix TG export regression caused by commit b9b77f42

refs #7728

Change-Id: I37bba678fbc756484b8b58514461f68f9b12e5f6

21 months agoSafely set part name and tooltip in ResourceEditorPart 11/1411/2
jsimomaa [Wed, 31 Jan 2018 10:29:40 +0000 (12:29 +0200)]
Safely set part name and tooltip in ResourceEditorPart

refs #7737

Change-Id: I5704e9189d18baf449f419026a1876cca3c02870

21 months agoGetting rid of *Array and replace with Vector * (SCL) 08/1408/4
jsimomaa [Tue, 30 Jan 2018 11:39:17 +0000 (13:39 +0200)]
Getting rid of *Array and replace with Vector * (SCL)

refs #7734

Change-Id: Ibc97edbd65de8363dcd77e141ac518287a07bff2

21 months agoAdding getBytes for String in SCL 06/1406/2
jsimomaa [Tue, 30 Jan 2018 09:13:05 +0000 (11:13 +0200)]
Adding getBytes for String in SCL

refs #7732

Change-Id: Ic340712ffbbc6944c0b31e2420f6adfacce29eaf

21 months agoFix annoying editor focus jumping with Ctrl+Shift+D/M 07/1407/3
jsimomaa [Tue, 30 Jan 2018 11:10:31 +0000 (13:10 +0200)]
Fix annoying editor focus jumping with Ctrl+Shift+D/M

refs #7733

Change-Id: Ie3fd1bb97b67de77b3a6e82bc5690835caec08e2

21 months agoAdded syncActivateModel function for deterministic SCL script execution 03/1403/3
Tuukka Lehtonen [Mon, 29 Jan 2018 13:54:46 +0000 (15:54 +0200)]
Added syncActivateModel function for deterministic SCL script execution

syncActivateModel works directly by invoking the old activeModel
function and then waiting until all related activities are finished by
using the old trusty Simantics/Misc/syncGraph function.

refs #7730

Change-Id: Ib75bc3c33e1dcf6b5c46d61dffdcd106f451730a

21 months agoClean up and support internal seed resources in tg export 02/1402/2
Antti Villberg [Mon, 29 Jan 2018 07:27:55 +0000 (09:27 +0200)]
Clean up and support internal seed resources in tg export

refs #7728

Change-Id: I95abd44fe4dea1ec639c4b8a328bdbfb0de3d4ae

21 months agoFixed SCL Console Clear Console active-state when imports are erroneous 01/1401/1
Tuukka Lehtonen [Fri, 26 Jan 2018 11:33:10 +0000 (13:33 +0200)]
Fixed SCL Console Clear Console active-state when imports are erroneous

Current imports were set too early in SCLConsoleView which before the
SCLConsoleListener that enables the buttons is registered.

refs #7727

Change-Id: I7cb0645bea5dc48a4ad54f2147c83cb8dfb2f35f

21 months agoRemoved graphviz dependency from org.simantics.browsing.ui.model 95/1395/2
Tuukka Lehtonen [Mon, 22 Jan 2018 11:15:04 +0000 (13:15 +0200)]
Removed graphviz dependency from org.simantics.browsing.ui.model

refs #7721

Change-Id: Ie4aec36287f8f37d11a75d560180350b283fbad4

21 months agoFixing Logger fallout from commit 1dfeb7d5 93/1393/1
Tuukka Lehtonen [Mon, 22 Jan 2018 11:04:53 +0000 (13:04 +0200)]
Fixing Logger fallout from commit 1dfeb7d5

refs #7719

Change-Id: I1aa2844d7c794d5e162cf1d98d4b73f19dd5ec22

21 months agoMoved org.simantics.issues.ui.ontology to org.simantics.issues.feature 91/1391/2
Tuukka Lehtonen [Fri, 19 Jan 2018 13:50:54 +0000 (15:50 +0200)]
Moved org.simantics.issues.ui.ontology to org.simantics.issues.feature

org.simantics.issues.common depends on org.simantics.issues.ui.ontology
now anyway, and the ontology plug-in, albeit is UI related, does not
have any direct dependency to any UI code anyway.

refs #7720

Change-Id: Ie42682895cb7de1a455f849f2ea481317144b4f7

21 months agoAdd RollingFileAppender to default logback configuration 90/1390/1
jsimomaa [Fri, 19 Jan 2018 11:32:48 +0000 (13:32 +0200)]
Add RollingFileAppender to default logback configuration

refs #7719

Change-Id: I2e04f76b3b5ce13f984e796901bf76ac81f8766a

21 months agoReplace System.err and System.out with SLF4J Logging 86/1386/2
jsimomaa [Wed, 17 Jan 2018 09:22:13 +0000 (11:22 +0200)]
Replace System.err and System.out with SLF4J Logging

refs #7719

Change-Id: Iae42f94b542b17bc2e1aa839f506a6e1a46928ae

22 months agoAdded migration step implementation for changing InstanceOf statements 84/1384/5
Tuukka Lehtonen [Mon, 15 Jan 2018 14:29:39 +0000 (16:29 +0200)]
Added migration step implementation for changing InstanceOf statements

refs #7717

Change-Id: I0f427b5f222feae9b74d9e2d3d82becb0cda46af

22 months agoUse transient listener caching for NodePropertyTester requests 85/1385/2
Tuukka Lehtonen [Mon, 15 Jan 2018 08:39:54 +0000 (10:39 +0200)]
Use transient listener caching for NodePropertyTester requests

refs #7718

Change-Id: I6ccb4ef720c4fe8677c78e58fe7ee273caa7ddae

22 months agoAdded Variable/Resource type information for DnD'd entities to JSON 70/1370/3
Tuukka Lehtonen [Fri, 12 Jan 2018 09:16:46 +0000 (11:16 +0200)]
Added Variable/Resource type information for DnD'd entities to JSON

refs #7715

Change-Id: I238e9b036a9c781ef8910bd5d6125b220e32f41e

22 months agoExport auditlogging package & fix server address prefix check 66/1366/1
jsimomaa [Tue, 9 Jan 2018 14:25:22 +0000 (16:25 +0200)]
Export auditlogging package & fix server address prefix check

refs #7684

Change-Id: I8d6cb285256d9fa909cae7c458b04be4290db54a

22 months agoMinor NPE fix for auditlogging 65/1365/1
jsimomaa [Tue, 9 Jan 2018 12:51:02 +0000 (14:51 +0200)]
Minor NPE fix for auditlogging

refs #7684

Change-Id: I86f892bf133b1965d9631ce82ddf02b78ec88a5a

22 months agoUpdated release engineering instructions 63/1363/1
Tuukka Lehtonen [Mon, 8 Jan 2018 13:57:25 +0000 (15:57 +0200)]
Updated release engineering instructions

refs #7712

Change-Id: I511149845a69a686832665bcc95ac854ee00bbe4

22 months agoBumped master target and org.simantics.sdk versions to 1.33.0 62/1362/1
Tuukka Lehtonen [Mon, 8 Jan 2018 13:06:40 +0000 (15:06 +0200)]
Bumped master target and org.simantics.sdk versions to 1.33.0

refs #7712

Change-Id: Ifd56d8887366e0988b9b148dfe663fb09904e830

22 months agoImproved exception message 60/1360/1
Tuukka Lehtonen [Mon, 8 Jan 2018 11:01:00 +0000 (13:01 +0200)]
Improved exception message

refs #7422

Change-Id: I5179ed29a7b660f4574101f5358820a860e66c72

22 months agoFixed MigrationUtils.importTo root activation to use virtual graph 59/1359/2
Tuukka Lehtonen [Mon, 8 Jan 2018 09:06:28 +0000 (11:06 +0200)]
Fixed MigrationUtils.importTo root activation to use virtual graph

Also made the activation optional based on the new migration state key
MigrationKeys.ACTIVATE_ROOT_IF_NONE_ACTIVE.

refs #7686

Change-Id: I8b7c5868231c3b258bb1ad7f63fa96ba42390f24

22 months agoAuditLogging improvements for easier unit testing 56/1356/2
jsimomaa [Mon, 8 Jan 2018 05:54:46 +0000 (07:54 +0200)]
AuditLogging improvements for easier unit testing

refs #7684

Change-Id: I6f4b10d2344b4588582f2558b9fda75f6d20145a