]> gerrit.simantics Code Review - simantics/platform.git/log
simantics/platform.git
6 years agoFix split package problem with gnu.trove 37/1837/1
Tuukka Lehtonen [Thu, 14 Jun 2018 07:10:35 +0000 (10:10 +0300)]
Fix split package problem with gnu.trove

The problem was in org.simantics.acorn and was originally fixed from
release/1.29.0 but is now needed in release/1.28.1 as well.

refs #7156
gitlab #22

Change-Id: I72690843c16ff73e2d4f11bbfe22a4288b64609d

6 years agoFixed regression in IndexedRelationsImpl.replace return value. 97/1297/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
(cherry picked from commit 480b0e3c16a3958a21de00707b9957c422c21c88)

6 years agoManually merged commit f2f1f3fe changes to release/1.28.1 branch. 66/1266/1
Tuukka Lehtonen [Tue, 28 Nov 2017 08:52:29 +0000 (10:52 +0200)]
Manually merged commit f2f1f3fe changes to release/1.28.1 branch.

Without these changes using copy-paste on diagrams will cause large
amounts of overlapping GUID identifiers for diagram elements to
accumulate in models.

refs #7348

Change-Id: I1b5bc5d06e8815bf5a50f234e793a1bbef0e5fb7

7 years agoFixed event mask of org.simantics.diagram.elements.TextGridNode 56/1056/3
Tuukka Lehtonen [Thu, 28 Sep 2017 16:09:10 +0000 (19:09 +0300)]
Fixed event mask of org.simantics.diagram.elements.TextGridNode

In order to function properly TextGridNode needs to listen to MouseMoved
and MouseButtonReleased events, which were missing from the event mask.

refs #7517

Change-Id: I301de9812ab9427a3ef037884c89b7cb4e7b0abe

7 years agoMerge "Fixed RVI.fromResourceFormat GUID RVI part parsing" into release/1.28.1
Tuukka Lehtonen [Sat, 5 Aug 2017 09:09:52 +0000 (12:09 +0300)]
Merge "Fixed RVI.fromResourceFormat GUID RVI part parsing" into release/1.28.1

7 years agoFixed RVI.fromResourceFormat GUID RVI part parsing 11/811/1
Tuukka Lehtonen [Sat, 5 Aug 2017 08:56:17 +0000 (11:56 +0300)]
Fixed RVI.fromResourceFormat GUID RVI part parsing

The code was skipping over the first character of GUID RVI parts
producing invalid RVIs. This again resulted in the creation of invalid
subscriptions etc.

refs #7413

Change-Id: I755b79ca352355789846b2ff49858b757fea9c63

7 years agoMerge "Delete temporary files after use in delayed writes and model TG export" into...
Tuukka Lehtonen [Sat, 5 Aug 2017 07:39:39 +0000 (10:39 +0300)]
Merge "Delete temporary files after use in delayed writes and model TG export" into release/1.28.1

7 years agoMerge "Added Simantics/Diagram#diagramsUnder to complement diagramsOf" into release...
Tuukka Lehtonen [Fri, 4 Aug 2017 22:01:57 +0000 (01:01 +0300)]
Merge "Added Simantics/Diagram#diagramsUnder to complement diagramsOf" into release/1.28.1

7 years agoMerge "Fixed CommandContextImpl.merge to not duplicate same values in result" into...
Tuukka Lehtonen [Fri, 4 Aug 2017 21:53:20 +0000 (00:53 +0300)]
Merge "Fixed CommandContextImpl.merge to not duplicate same values in result" into release/1.28.1

7 years agoAdded Simantics/Diagram#diagramsUnder to complement diagramsOf 05/805/1
Tuukka Lehtonen [Fri, 4 Aug 2017 21:31:43 +0000 (00:31 +0300)]
Added Simantics/Diagram#diagramsUnder to complement diagramsOf

refs #7410

Change-Id: Iab18ab1bf44e96decbc14de2a5289b51feca387f

7 years agoFixed CommandContextImpl.merge to not duplicate same values in result 04/804/1
Tuukka Lehtonen [Fri, 4 Aug 2017 20:52:31 +0000 (23:52 +0300)]
Fixed CommandContextImpl.merge to not duplicate same values in result

According to Antti this was a known and very old problem that should now
finally be resolved.

refs #7409

Change-Id: I0ab43d7136fca3f3333a81751fc86e0da7085a26

7 years agoEXPERIMENT_STATE_READ needs to be triggered on state change 02/802/1
Antti Villberg [Thu, 3 Aug 2017 06:57:36 +0000 (09:57 +0300)]
EXPERIMENT_STATE_READ needs to be triggered on state change

refs #7407

Change-Id: I3ea065b9b822980a183048de910714cbf9321716
(cherry picked from commit 7ffbcb78ddb8c619bd5a88fbbcd6f079cc1684fc)

7 years agoDelete temporary files after use in delayed writes and model TG export 99/799/1
Tuukka Lehtonen [Mon, 3 Jul 2017 21:09:51 +0000 (00:09 +0300)]
Delete temporary files after use in delayed writes and model TG export

Also, delayed writes no longer create temporary files for commits that
create under 512KB of committed data.

refs #7091
refs #7092

Change-Id: Iff75738b9cc41a52eb88df32b51ddc7cd8af812d
(cherry picked from commit 61033f112b0a2e643bf8530b99bcf90c64464f30)

7 years agoSafer URI unescaping for CSVFormatter subscription CSV exporter 87/787/1
Tuukka Lehtonen [Wed, 2 Aug 2017 07:16:26 +0000 (10:16 +0300)]
Safer URI unescaping for CSVFormatter subscription CSV exporter

refs #7401

Change-Id: I9d2da9b6725a457abf62020870bdf5759350a079

7 years agoAdded two missing features to org.simantics.sdk feature 57/657/1
Tuukka Lehtonen [Tue, 27 Jun 2017 10:09:05 +0000 (13:09 +0300)]
Added two missing features to org.simantics.sdk feature

The two missing features are org.apache.lucene4 and com.lowagie.text
which are included by org.simantics.db.client org.simantics.modeling
features respectively.

refs #7332

Change-Id: I60265627d442ce62720c859b593feb207e679e0b
(cherry picked from commit 75c0f62412769bdf18faa89c09680ddf96433aa0)

7 years agoAllow external customization fo TG Root type URIs. 48/648/1
Tuukka Lehtonen [Wed, 21 Jun 2017 20:05:49 +0000 (23:05 +0300)]
Allow external customization fo TG Root type URIs.

The customization happens by writing the type URIs into
TransferableGraphConfiguration2.RootSpec instances which then get
translated into TG Root identity definitions by
ModelTransferableGraphSource.

refs #7328

Change-Id: Icc2aa3dd91c7a0ae8083dc0d61e7fd42f01df58f

7 years agoFixed diagram profile monitor DnD regression. 33/633/1
Tuukka Lehtonen [Fri, 16 Jun 2017 09:34:43 +0000 (12:34 +0300)]
Fixed diagram profile monitor DnD regression.

CTRL+dragging diagram profile monitor values from diagram to Model
Browser chart/subscription nodes now works again. The code now processes
also dragged data that contains an RVI in String format.

refs #7313

Change-Id: I0154414df73ea96c29a8e5aa44881781f5d62675

7 years agoConfigured release/1.28.1 branch for SDK builds.
Tuukka Lehtonen [Mon, 5 Jun 2017 16:47:34 +0000 (19:47 +0300)]
Configured release/1.28.1 branch for SDK builds.

refs #7280

7 years agoAdded Simantics/Diagram function positionToVector. 65/565/1 release/1.28.0 v1.28.0
Tuukka Lehtonen [Mon, 29 May 2017 09:58:32 +0000 (12:58 +0300)]
Added Simantics/Diagram function positionToVector.

This function complements the existing positionToDoubleArray and is
required to support for instance diagram template scenegraph node
transform property definition with SCL formulas.

Also fixes:
* Potential NPE in ExperimentUtil.scheduleShutdownActiveExperiment
* MANIFEST.MF warnings from org.simantics.document.server

refs #7246

Change-Id: Icfe41a33824c91e5be76940bbf4d46d34c8d0334

7 years agoAdded null check to StreamingTransferableGraphImportProcess 47/547/1
Hannu Niemistö [Wed, 24 May 2017 12:20:58 +0000 (15:20 +0300)]
Added null check to StreamingTransferableGraphImportProcess

refs #7240
Change-Id: I5724ddfff4eae6c17dcd92eff71e25fb80bc8cf6

7 years agoMerge "LayerCleanupMigrationStep is too eager" into release/1.28.0
Hannu Niemistö [Wed, 24 May 2017 08:55:46 +0000 (11:55 +0300)]
Merge "LayerCleanupMigrationStep is too eager" into release/1.28.0

7 years agoMerge "StreamingTransferableGraphImportProcess assumes index root cluster set" into...
Hannu Niemistö [Wed, 24 May 2017 08:54:49 +0000 (11:54 +0300)]
Merge "StreamingTransferableGraphImportProcess assumes index root cluster set" into release/1.28.0

7 years agoLayerCleanupMigrationStep is too eager 42/542/1
Antti Villberg [Tue, 23 May 2017 11:02:22 +0000 (14:02 +0300)]
LayerCleanupMigrationStep is too eager

refs #7241

Change-Id: Ia389c085b09270a9bea5479ffaefbb2eb08a1ef7

7 years agoStreamingTransferableGraphImportProcess assumes index root cluster set 41/541/1
Antti Villberg [Tue, 23 May 2017 11:00:44 +0000 (14:00 +0300)]
StreamingTransferableGraphImportProcess assumes index root cluster set

refs #7240

Change-Id: I32ef3d78a8c278849fa6a44052a85e61510a72f5

7 years agoMoved LinkSVGImage implementation to new location. 34/534/1
Kalle Kondelin [Thu, 18 May 2017 12:06:44 +0000 (15:06 +0300)]
Moved LinkSVGImage implementation to new location.

Activated linkImage scl function because it is used by existing scl scripts.
Had to move implementation because compiler error/warning:
A cycle was detected in the build path of project...

refs #6916

Change-Id: I2017051816010128002017051816010128006666

7 years agoCheck head.state file existence before validating its integrity 32/532/1
Tuukka Lehtonen [Wed, 17 May 2017 13:26:41 +0000 (16:26 +0300)]
Check head.state file existence before validating its integrity

This prevents unnecessary NoSuchFileExceptions from being logged at
startup.

refs #7124

Change-Id: I500c937ec8894f6c97dcfe73b01efc4adc9b59a6

7 years agoEnsure ExperimentUtil.scheduleShutdownActiveExperiment invokes callback 19/519/2
Tuukka Lehtonen [Sat, 13 May 2017 10:18:29 +0000 (13:18 +0300)]
Ensure ExperimentUtil.scheduleShutdownActiveExperiment invokes callback

This needs to be done because calling parties may rely on getting the
callback.

refs #7220

Change-Id: Ie81c20da8da9d734afe7f98cf1117176b2f2dc9d

7 years ago(refs #7218) Sort labels by integer values when generating switch 16/516/1
Hannu Niemistö [Fri, 12 May 2017 10:22:50 +0000 (13:22 +0300)]
(refs #7218) Sort labels by integer values when generating switch

Change-Id: Ic6acb6241151f3d178e4c5bdf9c4fac5424b6100
(cherry picked from commit 5d55c8c863ea9909064ee847f25163bf02e5e8f2)

7 years agoImproved logic in new head state creation.
Jussi Koskela [Tue, 9 May 2017 13:12:17 +0000 (16:12 +0300)]
Improved logic in new head state creation.

Earlier any IOException during the reading of head state was interpreted
as empty DB. This might cause unwanted DB reset. It's better to identify
need for empty head state based on main state head directory.

Switched AcornDatabase.start logic back to using RandomAccessFile for
touching the db/lock file. Using RandomAccessFile instead of
FileSystemProvider.newFileChannel in Windows better prevents any other
process from removing the lock file. The newFileChannel version did not
prevent the user from initially running 'del lock' to remove the file -
although the file will be recreated quickly by the system.

Also AcornDatabase.start now re-throws ProCoreException if
opening/locking the lock-file fails with IOException to prevent the
system from attempting to start up without a proper database to work
with. Previously the system just logged the start-up problem and
continued.

refs #7124

Change-Id: I850b47d8f692e3d1b8ce177b9269540edc4dc272
(cherry picked from commit 25c9cc192b2611646b0a476bf205484500e92997)

7 years agoTry to acquire DB lock even if the lock file already exists
Jussi Koskela [Mon, 8 May 2017 10:14:49 +0000 (13:14 +0300)]
Try to acquire DB lock even if the lock file already exists

Lock file may already exist if the program crashed or was terminated
forcefully. It is ok to try acquiring the lock on existing lock file.

refs #7124

Change-Id: I1467dee3d889d18c68664f6df0b9fa9b13296351
(cherry picked from commit ca260ab8f66fabd96ec3af80a3143ae09907d3db)

7 years agoFixed bad bug related to AcornBackupProvider
Tuukka Lehtonen [Fri, 5 May 2017 13:59:12 +0000 (16:59 +0300)]
Fixed bad bug related to AcornBackupProvider

AcornBackupProvider was invoking GraphClientImpl2.makeSnapshot with true
parameter which caused the invocation to write the main.state file when
backups were made which was totally unintentional. The main.state file
is now only written only when the database session is shut down, i.e.
not at all in ClusterManager.makeSnapshot.

Also includes robustness fixes for Acorn database directory locking by
using the Java NIO API for atomic existence testing and creation of the
lock file.

refs #7186

Change-Id: Id668528f8aea789945a4ae3a212d14b07554ba0d
(cherry picked from commit 2aa77c56ec691aad39d1909bfbe4aff101e988fb)

7 years agoFixed bad logical bug from Acorn's MainState.load rollback
Tuukka Lehtonen [Thu, 4 May 2017 21:52:29 +0000 (00:52 +0300)]
Fixed bad logical bug from Acorn's MainState.load rollback

The major bug was the logical not in MainState.load rollback which
caused the database revisioning to be started from 0 when the database
was *not* empty. It should have been the other way around.

Also cleaned up the database head.state validation code by not using
exceptions for flow control in validating head.state files.

refs #7124

Change-Id: I7cd57fa73d39a637c71159df63566aed5063fc40
(cherry picked from commit d5ca4ed76bc83af27f2ade59ce49e35750aa4177)

7 years agoImproved Acorn database rollback logic.
Tuukka Lehtonen [Tue, 25 Apr 2017 10:13:45 +0000 (13:13 +0300)]
Improved Acorn database rollback logic.

MainState will no longer destroy the entire database if the user removes
directories but forgets to remove the main.state file. The information
stored in main.state is now regarded as cached information only and if
it seems invalid or cannot be read, the same normal rollback logic will
be performed every time.

Another enhancement is that rollback will now automatically store the
revisions deleted by the rollback procedure in timestamped
<workspace>/db/recovery/yyyy-M-d_HH-mm-ss/ folders for later inspection
and debugging. Previously the code just deleted all the extra revisions.
Manually removing the recovery-folder is always a safe operation to
perform.

Also fixed a bug in databoard Files class readFile methods that take
a File as argument. Previously all the functions constructed a
BinaryFile using the default mode which is "rw". This unintentionally
made the readFile methods create an empty file if the file did not
exist. All such methods have been changed to use mode "r".

refs #7124

Change-Id: I3ac04d2e33151b33f4982cf7a2edce7ddb896e11
(cherry picked from commit 20dfd0ba5e518a3706cd749c645a0a79480ea36f)

7 years agoAdded mechanism to diagram IFlagType to prevent graph modifications 06/506/2
Tuukka Lehtonen [Thu, 11 May 2017 11:19:32 +0000 (14:19 +0300)]
Added mechanism to diagram IFlagType to prevent graph modifications

When diagram flags are loaded, some implementations trigger graph
modifications because the flag type may know the flag to have wrong
direction information based on analysis of the model. Printing diagrams
to PDF or SVG should not modify the database in any way, just trust what
is in there.

refs #7208

Change-Id: Id2d438c0523ed708a0d11219a8efd6954ac5000e

7 years agoPerformance enhancements for DiagramToSVG 02/502/1
Antti Villberg [Thu, 11 May 2017 09:26:02 +0000 (12:26 +0300)]
Performance enhancements for DiagramToSVG

refs #7208

Change-Id: Ieb507e6c9abc287192fff127385cc51f17ebee86

7 years agoStyleBase runs cleanup in wrong thread 01/501/1
Antti Villberg [Thu, 11 May 2017 09:24:22 +0000 (12:24 +0300)]
StyleBase runs cleanup in wrong thread

refs #7206

Change-Id: I607539b6e5aabc947976308b972976ee97b9c4ea

7 years agoChanged external reference flag texts to obey current name/label mode 87/487/1
Tuukka Lehtonen [Fri, 5 May 2017 14:25:08 +0000 (17:25 +0300)]
Changed external reference flag texts to obey current name/label mode

Text shown in external reference type diagram flags now obeys the
currently selected Name/Label model that can be controlled using code in
class org.simantics.NameLabelUtil.

Previously the text shown in normal diagram external reference flags was
always preferring to show the Label property of diagrams and related
modules and if labels were not defined, the Name property would be used
instead.

refs #7178

Change-Id: I85efb6e68f92fdb18d1445037da5285700ca5398
(cherry picked from commit 8b94180c57f10788d52eb15b8ef3d73b4461de93)

7 years agoFixed BrowseContext test code to work headlessly 84/484/1
Tuukka Lehtonen [Fri, 5 May 2017 10:41:01 +0000 (13:41 +0300)]
Fixed BrowseContext test code to work headlessly

Previous code invoked JFaceResources.getDefaultFontDescriptor which
eventually invoked Display.getCurrent which would assert out in a
headless test environment.

refs #7184

Change-Id: I59349b8845b8f41d96356764972abcac44d35022
(cherry picked from commit 53e9b3dac5648f360cd91478d9e6e7a495631b08)

7 years agoAdded maxQueueLength parameter constructor for DisposingPolicy. 66/466/1
Tuukka Lehtonen [Thu, 27 Apr 2017 12:56:07 +0000 (15:56 +0300)]
Added maxQueueLength parameter constructor for DisposingPolicy.

Previously DisposingPolicy was hardcoded to 8 item queues.

refs #7172

Change-Id: I2b7df0b71483396490ab559271f7531ae80d0822
(cherry picked from commit 8c344e6911c8156dc3ee25e5048f8202f80e52c1)

7 years agoExport also dynamic issues to issue CSV export file 56/456/2
Tuukka Lehtonen [Sun, 23 Apr 2017 13:20:27 +0000 (16:20 +0300)]
Export also dynamic issues to issue CSV export file

refs #7167

Change-Id: I8070697535fb0f0db64c87bc86cb0d521edb9e10

7 years agoFixed TrendNode.setTrendSpec to properly update item axes 39/439/1
Tuukka Lehtonen [Thu, 20 Apr 2017 10:54:20 +0000 (13:54 +0300)]
Fixed TrendNode.setTrendSpec to properly update item axes

The previous code was not counting the set axes hidden/unhidden between
successive TrendNode.setTrendSpec calls.

refs #7155

Change-Id: I7aa9d8dec76d4328d2f4d12dfd0f9523fea71f2c

7 years agoLess memory use for TG import when NamespaceMigrationStep is involved 32/432/2
Tuukka Lehtonen [Wed, 19 Apr 2017 19:23:13 +0000 (22:23 +0300)]
Less memory use for TG import when NamespaceMigrationStep is involved

MigrationStateImpl.getProperty for root resource(s) keys now first
exports CURRENT_TG back to disk if the TG has already been loaded and
then imports it back using StreamingTransferableGraphImportProcess. This
avoids the need to keep the whole TransferableGraph1 in memory while
doing the import and also allows for the use of the leaner Streaming
import process.

refs #7153

Change-Id: I37e6a30ec8d31452a66f15378e446efbfb811ffa

7 years agoMerge "Fixed regression caused by cherry-pick 31000619." into release/1.28.0
Tuukka Lehtonen [Wed, 19 Apr 2017 14:29:36 +0000 (17:29 +0300)]
Merge "Fixed regression caused by cherry-pick 31000619." into release/1.28.0

7 years agoFixed regression caused by cherry-pick 31000619. 31/431/1
Tuukka Lehtonen [Wed, 19 Apr 2017 13:36:32 +0000 (16:36 +0300)]
Fixed regression caused by cherry-pick 31000619.

refs #7142

Change-Id: I8d15afab87f00b84ea3ecae22d1666c614418371
(cherry picked from commit 0d0f89ee7fdf9fa2315ba4d797de202992ae7158)

7 years ago(refs #7152) Remove extra line number indicators in status bar 30/430/1
Hannu Niemistö [Wed, 19 Apr 2017 13:08:54 +0000 (16:08 +0300)]
(refs #7152) Remove extra line number indicators in status bar

Change-Id: Ib8f7b09260f3e64bb123fcbe26ade29937e1b429
(cherry picked from commit f3cb82b78f5e7ab51c8227f978e29011a85354df)

7 years agoMerge "Automatic table column resizing for SCL console manage imports dialog." into...
Tuukka Lehtonen [Wed, 19 Apr 2017 09:13:15 +0000 (12:13 +0300)]
Merge "Automatic table column resizing for SCL console manage imports dialog." into release/1.28.0

7 years agoAutomatic table column resizing for SCL console manage imports dialog. 27/427/1
Tuukka Lehtonen [Wed, 19 Apr 2017 08:02:46 +0000 (11:02 +0300)]
Automatic table column resizing for SCL console manage imports dialog.

refs #7150

Change-Id: Ie951241aaccbaa266eaaa42369ced699dd56aafb
(cherry picked from commit 233d645861c82dddfc49e3c8a144ce0d0cbf4319)

7 years agoFixed NPE bug caused by UpdateIssuesForOpenDiagrams issue view handler 26/426/1
Tuukka Lehtonen [Wed, 19 Apr 2017 08:04:06 +0000 (11:04 +0300)]
Fixed NPE bug caused by UpdateIssuesForOpenDiagrams issue view handler

refs #7149

Change-Id: I61be5de3a09d821fb6a27b299e082d00d84e77d5
(cherry picked from commit 4d2f3cc2b28cc63dad256b1957f7e980f6cedc35)

7 years agoAdded alternatives taking RequestProcessor to WorkbenchSelectionUtils. 16/416/1
Tuukka Lehtonen [Tue, 18 Apr 2017 08:56:01 +0000 (11:56 +0300)]
Added alternatives taking RequestProcessor to WorkbenchSelectionUtils.

Fixed several places which were found to use a method from
WorkbenchSelectionUtils that could potentially try to initiate a new
read transaction through org.simantics.db.Session to pass the current
ReadGraph over to WorkbenchSelectionUtils instead. This fixes the very
same problem from OpenWithMenuContribution that was introduced in
6d3ad788 change I45cfa3940df8e1f4abe016b215843dc083227b2b.

Also, ComponentTypeViewerData.editValue now prevents committing new
entered value if the value does not pass input validation.

refs #7077
refs #7142

Change-Id: I542bd24e24ebc46c7da790c847ffafc5b8d18053
(cherry picked from commit e6c0bd9436ccc79e7dca17809dfa28f46967257a)

7 years agoFixed diagram NPE regressions caused by commit 5d2af6df 13/413/1
Tuukka Lehtonen [Thu, 13 Apr 2017 16:13:06 +0000 (19:13 +0300)]
Fixed diagram NPE regressions caused by commit 5d2af6df

The code was not taking into account that IG2DNode.getBoundsInLocal can
return null.

refs #7109

Change-Id: I9f41b9f2119ba8d273daf97b1b1e90a03d91fd22
(cherry picked from commit 477ce5a22d86916107b2c319f4d6cf84d639305a)

7 years agoDeclare effects for constants and variables 11/411/1
Hannu Niemistö [Thu, 13 Apr 2017 10:08:54 +0000 (13:08 +0300)]
Declare effects for constants and variables

Effectful constants and variables now correctly declare their effects.

refs #7140
[PRIVATE-13312]

Change-Id: Ie40c3985ac61acb707293161b8aefb361d691732
(cherry picked from commit 6f75cd65e0ba87535a4b92003604f8f5fc94e9d5)

7 years agoUpdate all graph.tg files that seem to be out-of-date in git 05/405/1
Tuukka Lehtonen [Wed, 5 Apr 2017 13:28:25 +0000 (16:28 +0300)]
Update all graph.tg files that seem to be out-of-date in git

refs #7132

Change-Id: I07709b5ba3edbd009d66caf418f60cc0297f2e5e

7 years agoAllow SWTThread to be constructed to do execute(Runnable) asynchronously 02/402/1
Tuukka Lehtonen [Wed, 5 Apr 2017 13:18:23 +0000 (16:18 +0300)]
Allow SWTThread to be constructed to do execute(Runnable) asynchronously

refs #7131

Change-Id: I0fa2072895253cf0fcf80f3de48efe536004c6b8

7 years agoReplaced use of deprecated BinaryFunction et al with BiFunction et al 89/389/1
Tuukka Lehtonen [Fri, 31 Mar 2017 13:14:02 +0000 (16:14 +0300)]
Replaced use of deprecated BinaryFunction et al with BiFunction et al

Also added missing logic to GraphExplorerComposite.SelectionElement to
discover Resource from Variable when WorkbenchSelectionElement is asked
for AnyResource. This is part of the fix for #7116.

Fixed breakage from ContextualHelp F1 keystroke handler which was
introduced in the original SVN commit r32734 (#6446).

refs #7116
refs #7117

Change-Id: Ia7c88d2c1b274fd788a0a18d95c2f059cea36086
(cherry picked from commit e84008c029ef2336cf55ad371256c9a12a889e98)

7 years agoFixed target definition files after commit:e6d39241.
Tuukka Lehtonen [Fri, 31 Mar 2017 09:13:05 +0000 (12:13 +0300)]
Fixed target definition files after commit:e6d39241.

refs #7114

(cherry picked from commit 0f3c8efc2d05f7d76b6fa1c2228c9c6ba224374e)

7 years agoReversioned org.jdom2 from 2.0.6 to 2.0.6.b0001
Tuukka Lehtonen [Fri, 31 Mar 2017 09:05:47 +0000 (12:05 +0300)]
Reversioned org.jdom2 from 2.0.6 to 2.0.6.b0001

This ensures that people loading the target platform will
receive the correct version of the plug-in. Currently developers
still have old cached versions of the old bundle with version
2.0.6 that the system unwantedly keeps loading while P2 should
be loading the correct file on the web. The only way to prevent
this is to bump the version qualifier stamp to force downloads.

refs #7114

(cherry picked from commit e6d3924163203b6e6061adcef4ead7ad3f8ce2cf)

7 years agoConfigured release/1.28.0 branch for SDK builds.
Tuukka Lehtonen [Thu, 30 Mar 2017 14:35:01 +0000 (17:35 +0300)]
Configured release/1.28.0 branch for SDK builds.

Fixed mistake from 8a582d7.

refs #6916

7 years agoConfigured release/1.28.0 branch for SDK builds.
Tuukka Lehtonen [Thu, 30 Mar 2017 13:56:30 +0000 (16:56 +0300)]
Configured release/1.28.0 branch for SDK builds.

refs #6916

7 years agoAdded base diagram profile style for showing terminal names on diagrams 83/383/1
Tuukka Lehtonen [Tue, 28 Mar 2017 15:02:18 +0000 (18:02 +0300)]
Added base diagram profile style for showing terminal names on diagrams

Previously there has been an implementation for showing terminal names
in the symbol editor (SymbolTerminalNameStyle). This implementation is
for showing symbol instance terminal names on modelling diagrams
containing symbol instances. The names are positioned outside the
current symbol's bounding box.

ConnectionPointNameStyle also employs the new TextNode automatic text
flipping feature added in #7112.

refs #7107

Change-Id: Icf4709bf115a9c25b894192d186c6ce514cc0d29

7 years agoAdded automatic text flipping option for text readability in TextNode 82/382/1
Tuukka Lehtonen [Tue, 28 Mar 2017 14:55:13 +0000 (17:55 +0300)]
Added automatic text flipping option for text readability in TextNode

refs #7112

Change-Id: I6027ff66e3bc60d81385088fcf072e09dff7e6a7

7 years agoSupport tg discovery in export/import 81/381/2
Antti Villberg [Mon, 27 Mar 2017 08:17:25 +0000 (11:17 +0300)]
Support tg discovery in export/import

refs #7103

Change-Id: I471f9f0d5fa2b1bb1b825d7fde69eabc57422799

7 years agoAdded alias property to L0.SCLModule 80/380/3
Tuukka Lehtonen [Mon, 27 Mar 2017 05:59:51 +0000 (08:59 +0300)]
Added alias property to L0.SCLModule

refs #7105

Change-Id: I7f8a2f3cb4c0a4c317619adc561d93334edea529

7 years ago(refs #7090) New functions subquery and subqueryC 79/379/2
Hannu Niemistö [Fri, 24 Mar 2017 13:00:43 +0000 (15:00 +0200)]
(refs #7090) New functions subquery and subqueryC

For making graph queries.

Change-Id: I3ca5088ff2fd43730a64bb7a169d84500a939cd5

7 years agoUse node bounds for defined elements 78/378/2
Antti Villberg [Thu, 23 Mar 2017 10:05:20 +0000 (12:05 +0200)]
Use node bounds for defined elements

refs #7109

Change-Id: I887c20e105c1f4b0f852de0d3e0d4beba3e30071

7 years agosclAssertion template into MOD (add missing files) 77/377/1
Jussi Koskela [Wed, 22 Mar 2017 11:30:14 +0000 (13:30 +0200)]
sclAssertion template into MOD (add missing files)

Added missing files related to:
Iec870d7723cebe17d29e93533b4d80bb78ae9b20.

refs #7081

Change-Id: I76204909f13a31133773322bf1b7c6e6be126db7

7 years agoOpening symbol code editor / symbol drop handler code editor fails 76/376/1
Jussi Koskela [Wed, 22 Mar 2017 11:14:39 +0000 (13:14 +0200)]
Opening symbol code editor / symbol drop handler code editor fails

Opening symbol code editor / symbol drop handler code editor fails if
there is no existing code available.

refs #7106

Change-Id: Iceea446030237819878fda58a40a557b5f03f91a

7 years agoMerge "Not possible to open declaration of SCL module from relative path (F3)"
Hannu Niemistö [Tue, 21 Mar 2017 08:43:21 +0000 (10:43 +0200)]
Merge "Not possible to open declaration of SCL module from relative path (F3)"

7 years agoMerge "(refs #7102) Fixed comparator NodeEventHandler.TreePreOrderComparator"
Hannu Niemistö [Tue, 21 Mar 2017 08:33:45 +0000 (10:33 +0200)]
Merge "(refs #7102) Fixed comparator NodeEventHandler.TreePreOrderComparator"

7 years agoNot possible to open declaration of SCL module from relative path (F3) 73/373/2
Jussi Koskela [Mon, 20 Mar 2017 13:04:31 +0000 (15:04 +0200)]
Not possible to open declaration of SCL module from relative path (F3)

Resolve absolute path of SCL module when user presses F3 on
import/include that uses relative path. Refactored absolute path
resolving to static utility function.

refs #7101

Change-Id: I21cadedd6b8baf9ec4d7fae25cd4a0135836a439

7 years ago(refs #7102) Fixed comparator NodeEventHandler.TreePreOrderComparator 74/374/1
Hannu Niemistö [Tue, 21 Mar 2017 08:15:45 +0000 (10:15 +0200)]
(refs #7102) Fixed comparator NodeEventHandler.TreePreOrderComparator

Change-Id: Ib7db825832affc47306e351d28935752a8a1c9d6

7 years agoHardening of DB index integrity 53/353/5
Jussi Koskela [Fri, 10 Mar 2017 07:38:28 +0000 (09:38 +0200)]
Hardening of DB index integrity

Mark index dirty as early as possible on write operations (and sync to
disk). Clean index dirtiness indicator as last step when deleting the
index. Cache dirty statuses to write dirty files only once.

refs #7075

Change-Id: I1c8a6882270b5fbd53bc88249ba5f50c05a83b51

7 years agoAdded functional FileOperation interface to FileService. 72/372/2
Tuukka Lehtonen [Mon, 20 Mar 2017 11:59:02 +0000 (13:59 +0200)]
Added functional FileOperation interface to FileService.

This makes using method references with FileService easier/possible and
provides for cleaner code.

refs #7100

Change-Id: I6929654b5f9d41cbad9fe4b35b2219d91e64a791

7 years agoProject feature dependency injection is broken 69/369/3
Antti Villberg [Mon, 20 Mar 2017 06:48:52 +0000 (08:48 +0200)]
Project feature dependency injection is broken

refs #7027

Change-Id: I97bef3d5be9bf2689de25919d021a3ab005137a4

7 years agopossibleActiveRunVariable should return Maybe Variable 70/370/2
Antti Villberg [Mon, 20 Mar 2017 06:50:32 +0000 (08:50 +0200)]
possibleActiveRunVariable should return Maybe Variable

refs #7026

Change-Id: I00cd147ab934932027753bd9f17b51da5c05a85e

7 years agoRemoved useless class org.simantics.utils.thread.Executors2. 71/371/2
Tuukka Lehtonen [Mon, 20 Mar 2017 06:56:08 +0000 (08:56 +0200)]
Removed useless class org.simantics.utils.thread.Executors2.

Also removed the optional org.eclipse.swt dependency introduced to
org.simantics.utils.thread by Executors2. org.simantics.utils.thread.swt
already contains SWTThread which is where this dependency should be
kept.

refs #7099

Change-Id: Ica27eed205306090f876767cd0a018009fb25fd5

7 years agoHistory sampling improvements 68/368/1
Antti Villberg [Mon, 20 Mar 2017 06:43:29 +0000 (08:43 +0200)]
History sampling improvements

refs #7028

Change-Id: Ia4653ee76859dae1842bdef82fe552ca70f61995

7 years agoPredicate by label request into Layer0Utils 67/367/1
Antti Villberg [Mon, 20 Mar 2017 05:46:49 +0000 (07:46 +0200)]
Predicate by label request into Layer0Utils

refs #7035

Change-Id: I322dbcb8f51fd16e39d4408a6a5043713ddd8530

7 years agoExperiment state request 66/366/1
Antti Villberg [Mon, 20 Mar 2017 05:44:48 +0000 (07:44 +0200)]
Experiment state request

refs #7036

Change-Id: I2704afcc626a3deb7430eb1a42ea453f71e931d6

7 years agoSymbol filter changed to show whole group when filter matches group name 65/365/1
Tuukka Lehtonen [Sat, 18 Mar 2017 13:33:33 +0000 (15:33 +0200)]
Symbol filter changed to show whole group when filter matches group name

refs #7098

Change-Id: I3c3fa87b711f3791787e59207a0e50e479a13152

7 years ago(refs #7090) Generated Function objects implement equals and hashCode 64/364/1
Hannu Niemistö [Wed, 15 Mar 2017 14:13:46 +0000 (16:13 +0200)]
(refs #7090) Generated Function objects implement equals and hashCode

Change-Id: I93118f7bd0f975bb68e14b7288dad6546a62faa1

7 years ago(refs #7088) Improvements to tail call optimization 63/363/2
Hannu Niemistö [Wed, 15 Mar 2017 08:46:21 +0000 (10:46 +0200)]
(refs #7088) Improvements to tail call optimization

Change-Id: I7e6b914c239b1aa81a06ad9da2cdbf046ac5e0e2

7 years agoSVGNode reference counting breaks with assignments 56/356/4
Antti Villberg [Fri, 10 Mar 2017 09:07:30 +0000 (11:07 +0200)]
SVGNode reference counting breaks with assignments

refs #7078

Change-Id: I72c42302d6ed04d0cd5b95525d2ee68d9fda248b

7 years agoAdded ModuleUpdateContext.getModuleType() 62/362/2
Tuukka Lehtonen [Tue, 14 Mar 2017 09:22:47 +0000 (11:22 +0200)]
Added ModuleUpdateContext.getModuleType()

refs #7087

Change-Id: I90355f8f28cbbd36168375734e3b8e3766edfb48

7 years agoSupport L0.loadString in CompilePGraphs 61/361/2
Antti Villberg [Mon, 13 Mar 2017 09:30:06 +0000 (11:30 +0200)]
Support L0.loadString in CompilePGraphs

refs #7085

Change-Id: Ia386a6b0f654ca26708dec5b2b5b19f4a975cec3

7 years agoNavigate to substructure 58/358/4
Antti Villberg [Fri, 10 Mar 2017 09:17:28 +0000 (11:17 +0200)]
Navigate to substructure

refs #7080

Change-Id: I2b183bf6b2d314577c664c16471c80658ce57450

7 years agoPrefer WorkbenchSelectionUtils when obtaining Resource from selection 55/355/3
Antti Villberg [Fri, 10 Mar 2017 08:57:46 +0000 (10:57 +0200)]
Prefer WorkbenchSelectionUtils when obtaining Resource from selection

refs #7077

Change-Id: I45cfa3940df8e1f4abe016b215843dc083227b2b

7 years agosclAssertion template into MOD 59/359/3
Antti Villberg [Fri, 10 Mar 2017 09:20:29 +0000 (11:20 +0200)]
sclAssertion template into MOD

refs #7081

Change-Id: Iec870d7723cebe17d29e93533b4d80bb78ae9b20

7 years agoUse single available diagram profile by default 57/357/2
Antti Villberg [Fri, 10 Mar 2017 09:12:37 +0000 (11:12 +0200)]
Use single available diagram profile by default

Use single available diagram profile if no other information is
available

refs #7079

Change-Id: Ib195bdacac5a3e25bf62c540e6480b907ff043a0

7 years agoFonts are now embedded in diagram, wiki, etc PDF exports. 60/360/1
Tuukka Lehtonen [Fri, 10 Mar 2017 16:27:03 +0000 (18:27 +0200)]
Fonts are now embedded in diagram, wiki, etc PDF exports.

A lot of general cleanup/refactoring for the old "Diagrams to PDF"
export wizard backend implementation. Consolidated some page numbering
code into org.simantics.export.core.pdf.PageNumbering.

Also consolidated iText FontMapper initialization into
org.simantics.export.core.pdf.FontMapping. It turned out that the key to
getting iText to embed fonts for text rendered into PDFs was that the
FontMapper used needs to have all system fonts registered into it.

Also fixed PDF export page number positioning in the more generic PDF
export wizard.

refs #7084

Change-Id: Ife4f96889659834a780566152f63e9e1ccd4979f

7 years agoSort editor adapters by default 54/354/2
Antti Villberg [Fri, 10 Mar 2017 08:56:00 +0000 (10:56 +0200)]
Sort editor adapters by default

refs #7076

Change-Id: I320fea43416d53bc48ce8044f517815dad4c6952

7 years agoAdded .keep file to org.simantics.views.text.ontology/src 52/352/1
Tuukka Lehtonen [Wed, 8 Mar 2017 15:18:09 +0000 (17:18 +0200)]
Added .keep file to org.simantics.views.text.ontology/src

refs #7066

Change-Id: Idc505dc1beafd74a0af4ffe9763391add56bde1a

7 years agoFix incorrect filtering condition in file deletion 48/348/2
Jussi Koskela [Tue, 7 Mar 2017 13:54:56 +0000 (15:54 +0200)]
Fix incorrect filtering condition in file deletion

refs #7074

Change-Id: I3421b8b27ab8fb27afdf105ade58894e21c5bd71

7 years ago(refs #7071) User Logger instead of System.out/err.println 46/346/4
Hannu Niemistö [Mon, 6 Mar 2017 12:50:54 +0000 (14:50 +0200)]
(refs #7071) User Logger instead of System.out/err.println

Change-Id: I196a529dd7005367863bb937703f2cd581728cdd

7 years agoMerge "Removed javax.vecmath from target definitions."
Tuukka Lehtonen [Tue, 7 Mar 2017 14:12:00 +0000 (16:12 +0200)]
Merge "Removed javax.vecmath from target definitions."

7 years agoRemoved javax.vecmath from target definitions. 50/350/1
Tuukka Lehtonen [Tue, 7 Mar 2017 14:11:37 +0000 (16:11 +0200)]
Removed javax.vecmath from target definitions.

refs #7023

Change-Id: Iea68c7ac42f428882c2e64c9a1c3f4c7dd9a0566

7 years agoFixed JNA version from target platform definitions. 49/349/1
Tuukka Lehtonen [Tue, 7 Mar 2017 13:59:34 +0000 (15:59 +0200)]
Fixed JNA version from target platform definitions.

refs #7023

Change-Id: Ibfb6e5652f44aa7d6e34b13a6acce595e9a76051

7 years agoRemove all dependencies on javax.vecmath. 31/331/5
Tuukka Lehtonen [Tue, 7 Feb 2017 14:11:00 +0000 (16:11 +0200)]
Remove all dependencies on javax.vecmath.

Apache Commons Math3 library can be used to replace the functionality.
The only downside is that Math3 is over 10 times larger than the old
vecmath library (180kB vs. >2MB).

Also removed javax.vecmath entirely from platform external dependencies.

refs #7023

Change-Id: I4b9a3cf25567552b0cc1f35e07615baeaa982269

7 years agoAdded org.simantics.views.text[.ontology] for modelled source viewers 47/347/2
Tuukka Lehtonen [Mon, 6 Mar 2017 21:44:51 +0000 (23:44 +0200)]
Added org.simantics.views.text[.ontology] for modelled source viewers

For now, SWTMarkupSourceViewer is hardcoded for mediawiki markup. The
new plug-ins are included in org.simantics.views.swt.feature.

Also:
* removed useless old code SG loader code from org.simantics.views.swt
* started using SLF4J in org.simantics.document.ui

refs #7066

Change-Id: Id3d058d676072ccff5898c013cf3353a5a54dce9

7 years agoSupport also Resource inputs in standardIssueContexts property function 44/344/1
Tuukka Lehtonen [Fri, 3 Mar 2017 12:43:11 +0000 (14:43 +0200)]
Support also Resource inputs in standardIssueContexts property function

Previous version only supported Variables.

refs #7064

Change-Id: If309d7c3d6c8d0b270a8344d3abaf9061e92da31

7 years agoPrevent NPE when comparing a node that is still without parent. 42/342/1
Tuukka Lehtonen [Fri, 3 Mar 2017 07:33:57 +0000 (09:33 +0200)]
Prevent NPE when comparing a node that is still without parent.

refs #7062

Change-Id: I13990a8db66408c1bc3cab6e4da8ba7997220c1a