]> gerrit.simantics Code Review - simantics/platform.git/log
simantics/platform.git
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

7 years agoMerge "Added start level configuration to desktop product"
Tuukka Lehtonen [Wed, 1 Mar 2017 11:09:11 +0000 (13:09 +0200)]
Merge "Added start level configuration to desktop product"

7 years agoAdded start level configuration to desktop product 39/339/2
Hannu Niemistö [Wed, 1 Mar 2017 10:10:23 +0000 (12:10 +0200)]
Added start level configuration to desktop product

refs #7057

Change-Id: Ia6886f9981ee3a66d991972d7d56059c3b2c1a52

7 years agoInclude org.simantics.desktop.product.feature in SDK builds 38/338/1
Tuukka Lehtonen [Wed, 1 Mar 2017 09:27:16 +0000 (11:27 +0200)]
Include org.simantics.desktop.product.feature in SDK builds

refs #7056

Change-Id: I81d84530c1b9f902f0f266eb84c09529d57e8133

7 years agoMerge "SLF2J logging from SCL"
Jani Simomaa [Sun, 26 Feb 2017 07:41:33 +0000 (09:41 +0200)]
Merge "SLF2J logging from SCL"

7 years agoSLF2J logging from SCL 36/336/1
Hannu Niemistö [Fri, 24 Feb 2017 13:43:35 +0000 (15:43 +0200)]
SLF2J logging from SCL

Added a new module Logging with methods trace, debug, warn and error
taking a string as a parameter.

refs #7051

Change-Id: I8b11f82e3c15b56ee2c7fc87c8bf9cff4e315261

7 years agoMisc. changes to support Selection View in modelled documents 35/335/2
Antti Villberg [Fri, 24 Feb 2017 12:47:17 +0000 (14:47 +0200)]
Misc. changes to support Selection View in modelled documents

refs #7050

Change-Id: Ia088db3d75c8d9963d0e513d1e6042a63b13e6c8

7 years agoMerge "(refs #7042) Added a new compiler optimization (eta-reduce)"
Hannu Niemistö [Mon, 20 Feb 2017 10:13:29 +0000 (12:13 +0200)]
Merge "(refs #7042) Added a new compiler optimization (eta-reduce)"

7 years ago(refs #7042) Added a new compiler optimization (eta-reduce) 34/334/1
Hannu Niemistö [Mon, 20 Feb 2017 09:17:31 +0000 (11:17 +0200)]
(refs #7042) Added a new compiler optimization (eta-reduce)

Adds new optimization to SCL compiler that transforms the following code
    \someParameters = f someOtherParameters someParameters'
to
    f someOtherParameters
with the following restrictions:
* someParameters and someParameters' are lists of equal variables
  or the type is ()
* someOtherParameters does not refer to variables in someParameters
  or the lambda expression itself or something depending on it
  recursively

[PRIVATE-13082]

Change-Id: I0e666771c72128ab73b0e46af727236ba4811080

7 years agoAllow bypassing VolatileImage rendering to gain performance 33/333/1
Marko Luukkainen [Wed, 15 Feb 2017 14:14:32 +0000 (16:14 +0200)]
Allow bypassing VolatileImage rendering to gain performance

refs #7034

Change-Id: I3a53175ed86ba9b0705498f8c0652fec69cc1cd1

7 years agoMerge "Some fixes for FileImportService to throw exceptions forward"
Jani Simomaa [Mon, 13 Feb 2017 17:32:45 +0000 (19:32 +0200)]
Merge "Some fixes for FileImportService to throw exceptions forward"

7 years agoMerge "Include jetty and javax.servlet plugins (debug.browser requirement)"
Tuukka Lehtonen [Tue, 7 Feb 2017 14:52:44 +0000 (16:52 +0200)]
Merge "Include jetty and javax.servlet plugins (debug.browser requirement)"

7 years agoUse slf4j logger in ExperimentManager. 30/330/1
Tuukka Lehtonen [Tue, 7 Feb 2017 14:02:55 +0000 (16:02 +0200)]
Use slf4j logger in ExperimentManager.

refs #6938

Change-Id: I6f5d2450e472aab6762bf33c2be94658ce7acc99

7 years agoInclude jetty and javax.servlet plugins (debug.browser requirement) 27/327/2
Tuukka Lehtonen [Tue, 7 Feb 2017 13:57:07 +0000 (15:57 +0200)]
Include jetty and javax.servlet plugins (debug.browser requirement)

refs #7022

Change-Id: Id32f233c6972dc9d138ed55c0b1b48d4dff60f50

7 years agoFilter out CR in resource files generated by graph compiler. 26/326/2
Hannu Niemistö [Mon, 6 Feb 2017 11:01:11 +0000 (13:01 +0200)]
Filter out CR in resource files generated by graph compiler.

Change-Id: I10e0dfe6a0726c001f63dd438c50256f4fc7cfe6

7 years agoMerge "Replace crlf by lf in resource files generated by graph compiler."
Hannu Niemistö [Mon, 6 Feb 2017 09:04:48 +0000 (11:04 +0200)]
Merge "Replace crlf by lf in resource files generated by graph compiler."

7 years agoReplace crlf by lf in resource files generated by graph compiler. 25/325/1
Hannu Niemistö [Mon, 6 Feb 2017 08:39:20 +0000 (10:39 +0200)]
Replace crlf by lf in resource files generated by graph compiler.

Change-Id: I502a5f0c6b9eb1f2ba257ab8dba57302263c658a

7 years agoInitial version of purge 24/324/1
Antti Villberg [Mon, 6 Feb 2017 08:37:54 +0000 (10:37 +0200)]
Initial version of purge

refs #6882

Change-Id: Ica6119ebdb38360390d8f5563d9b5f53b6963107

7 years agoSome fixes for FileImportService to throw exceptions forward 23/323/1
jsimomaa [Thu, 2 Feb 2017 14:59:38 +0000 (16:59 +0200)]
Some fixes for FileImportService to throw exceptions forward

refs #7014

Change-Id: I03350d056b6258e964a990c50973f2597be5080d

7 years agoMerge "Removed logging of PendingVariableExceptions from LabelContribution"
Tuukka Lehtonen [Thu, 2 Feb 2017 14:09:49 +0000 (16:09 +0200)]
Merge "Removed logging of PendingVariableExceptions from LabelContribution"

7 years agoMerge "Added module header feature to SCL language."
Hannu Niemistö [Thu, 2 Feb 2017 12:07:54 +0000 (14:07 +0200)]
Merge "Added module header feature to SCL language."

7 years agoAdded module header feature to SCL language. 15/315/3
Hannu Niemistö [Wed, 1 Feb 2017 14:40:11 +0000 (16:40 +0200)]
Added module header feature to SCL language.

Module header must be in the beginning of the module. However, comments
are allowed before the header. Header has the following form:
    module {
        field = value,
        field = value
    }

Currently field name classLoader is supported. It makes it possible to
specify which classLoader is used to resolve importJava declarations.
    module {
        classLoader = "my.bundle.name.somewhere"
    }

refs #6931

Change-Id: Ibca2152597a738d1e4641cf6262af06069b38af5

7 years agoRemoved logging of PendingVariableExceptions from LabelContribution 22/322/1
Tuukka Lehtonen [Thu, 2 Feb 2017 11:22:03 +0000 (13:22 +0200)]
Removed logging of PendingVariableExceptions from LabelContribution

org.simantics.browsing.ui.model.labels.LabelContribution.getLabel used
to log all DatabaseExceptions which filled logs with very uninformative
PendingVariableException prints in normal operation.
PendingVariableExceptions are expected to happen in this context and
therefore should simply be ignored by returning empty labeling results.

refs #7011

Change-Id: Iec164d65682da038646c9fbfbee074016546095e

7 years agoMerge "Removed stderr logging from CompileSCLMonitorRequest."
Hannu Niemistö [Thu, 2 Feb 2017 11:18:13 +0000 (13:18 +0200)]
Merge "Removed stderr logging from CompileSCLMonitorRequest."

7 years agoIncluded Simantics-Desktop product into the platform build.
Tuukka Lehtonen [Wed, 1 Feb 2017 13:34:24 +0000 (15:34 +0200)]
Included Simantics-Desktop product into the platform build.

refs #6879

7 years agoRemoved stderr logging from CompileSCLMonitorRequest. 06/306/1
Tuukka Lehtonen [Wed, 1 Feb 2017 10:01:15 +0000 (12:01 +0200)]
Removed stderr logging from CompileSCLMonitorRequest.

refs #7008

Change-Id: I28c4cf4068a137679eeb641d0b7e085ac2cc3c63

7 years agoParametrize dump-wikis.sh and backup mediawiki sites in dump-wikis.sh
Tuukka Lehtonen [Thu, 26 Jan 2017 22:05:04 +0000 (00:05 +0200)]
Parametrize dump-wikis.sh and backup mediawiki sites in dump-wikis.sh

refs #6916

7 years agoRewrote line endings for SCLReportingWriter.
Tuukka Lehtonen [Thu, 26 Jan 2017 19:58:53 +0000 (21:58 +0200)]
Rewrote line endings for SCLReportingWriter.

refs #7000

7 years agoBumped target and org.simantics.sdk feature versions to 1.28.0.
Tuukka Lehtonen [Thu, 26 Jan 2017 19:17:40 +0000 (21:17 +0200)]
Bumped target and org.simantics.sdk feature versions to 1.28.0.

refs #6916

7 years agoUpdated missing steps into release engineering branch configuration doc.
Tuukka Lehtonen [Thu, 26 Jan 2017 18:46:24 +0000 (20:46 +0200)]
Updated missing steps into release engineering branch configuration doc.

refs #6916

7 years agoAdded SCLReportingWriter to org.simantics.scl.runtime. (refs #7000) 93/293/1
Reino Ruusu [Wed, 25 Jan 2017 16:28:49 +0000 (18:28 +0200)]
Added SCLReportingWriter to org.simantics.scl.runtime. (refs #7000)

Change-Id: I2e988c0699bf228a3c13f80ac1917b202b2995f6

7 years agoMinor enhancement to Scenegraph attribute dialog 92/292/1
jsimomaa [Wed, 25 Jan 2017 06:28:17 +0000 (08:28 +0200)]
Minor enhancement to Scenegraph attribute dialog

refs #6999

Change-Id: Ibc35e3a74f144893ea25b5bed69294979c070aa3

7 years agoRemoved uses of deprecated functions 91/291/1
Hannu Niemistö [Tue, 24 Jan 2017 13:55:26 +0000 (15:55 +0200)]
Removed uses of deprecated functions

Change-Id: I64fa1d6ce189f24edf33657db81780c3fb83f2ee

7 years agoGraphExplorerComposite now accepts TextTransfer and MOVE/DEFAULT dnd ops 89/289/1
Tuukka Lehtonen [Mon, 23 Jan 2017 18:56:03 +0000 (20:56 +0200)]
GraphExplorerComposite now accepts TextTransfer and MOVE/DEFAULT dnd ops

TextTransfer must be enabled to allow JSON drops into the model browser.
The MOVE and DEFAULT drag operations are allowed to see if this affects
people with problems dragging files from system file explorer to the
model browser.

refs #6997

Change-Id: I740a8b29e7f43c5215748e0a0a193560ccbf600f

7 years agoShowing compilation warnings in SCL issue view and editors 88/288/1
Hannu Niemistö [Sun, 22 Jan 2017 21:45:57 +0000 (23:45 +0200)]
Showing compilation warnings in SCL issue view and editors

refs #6987

Change-Id: I127a72d134789982cb842ae351df5ef8604bae40

7 years agoIgnore instance definitions for Eq and Hashable 84/284/1
Hannu Niemistö [Fri, 20 Jan 2017 17:36:29 +0000 (19:36 +0200)]
Ignore instance definitions for Eq and Hashable

refs #6996

Change-Id: Ieb342aff6cc68b75a259bb34fb62fb46b0bd2c75

7 years agoMoved SCL parser generator to platform repository. 83/283/1
Hannu Niemistö [Fri, 20 Jan 2017 12:03:44 +0000 (14:03 +0200)]
Moved SCL parser generator to platform repository.

In addition, implemented the parser generator's parser with parser
generator itself to remove Antlr-dependency.

refs #6995

Change-Id: I08537c59254ddd6ae49d9c89d36e8596079f0fb2

7 years agoAdded a unit test for bug 6989 and some methods to print expressions 82/282/1
Hannu Niemistö [Fri, 20 Jan 2017 11:47:00 +0000 (13:47 +0200)]
Added a unit test for bug 6989 and some methods to print expressions

refs #6989

Change-Id: Ia79a14ebf9acd9c5d1fb62dbb921db684746f316

7 years agoMerge "Undo did not wait for pending cluster updates to finish."
Tuukka Lehtonen [Fri, 20 Jan 2017 11:19:40 +0000 (13:19 +0200)]
Merge "Undo did not wait for pending cluster updates to finish."

7 years agoAdded org.apache.commons.math3 to target platform 80/280/2
Tuukka Lehtonen [Fri, 20 Jan 2017 10:54:52 +0000 (12:54 +0200)]
Added org.apache.commons.math3 to target platform

This allows org.simantics.db.testing to compile again.
Also fixed ResourceWriteCommand to compile.

refs #6994

Change-Id: Ib44c949c422f0925cca273248383f9deeda7792d

7 years agoUndo did not wait for pending cluster updates to finish. 79/279/3
Antti Villberg [Fri, 20 Jan 2017 07:23:40 +0000 (09:23 +0200)]
Undo did not wait for pending cluster updates to finish.

refs #6918

Change-Id: I60e8858fa09d69f8793cd5a9c1a3cb20b6682362

7 years agoIssues-view menu improvements & Variable-based issue context resolution 78/278/3
Tuukka Lehtonen [Thu, 19 Jan 2017 23:06:09 +0000 (01:06 +0200)]
Issues-view menu improvements & Variable-based issue context resolution

This adds a new [Resource] valued property for Issue instances that is
by default defined to just read the old Issue.HasContexts L0.List
property. The property allows for more specific domains to override the
issue context resource calculations.

To support this calculation a noteworthy change needed to be made to
org.simantics.db.layer0.function.All.getStandardChildDomainPropertyVariable.
It now performs a new final fallback step that resembles how the
standard procedural variables work. If the parent variable has a solver
variable node defined, it will use NodeManager.getClassifications as an
attempt to read the type Resource of the variable. If this is
successful, the asserted properties of the type are searched to find a
property matching name of the the requested property. To support this a
new request was added: UnescapedAssertedPropertyMapOfResource. This
request is also used to optimize the implementation of
All.standardGetValue[12].

These changes also add a Help action for Issues view context menu that
looks for the "contextHelpId" String property from the Variable
describing the issue.

refs #6948

Change-Id: I9655ea3647851fa04fb2420686cb13dd0c6719b6

7 years agoAdded missing org.simantics.modeling.tests plug-ins.
Tuukka Lehtonen [Fri, 20 Jan 2017 09:21:37 +0000 (11:21 +0200)]
Added missing org.simantics.modeling.tests plug-ins.

This was previously only in SVN trunk which is now locked
and is needed by tests in other projects.

refs #6994

7 years agoAdded missing org.simantics.db.{tests,testing} plug-ins.
Tuukka Lehtonen [Fri, 20 Jan 2017 08:59:51 +0000 (10:59 +0200)]
Added missing org.simantics.db.{tests,testing} plug-ins.

These were previously only in SVN trunk which is now locked
and they failed to compile after the recent changes.

refs #6994

7 years agoSupport for () type in CHR relations 77/277/2
Hannu Niemistö [Thu, 19 Jan 2017 11:05:19 +0000 (13:05 +0200)]
Support for () type in CHR relations

refs #6901

Change-Id: I95e8e71a30a5fee500a66c95a39ddc3ec9907692

7 years agoMerge "Implemented GraphPropertyRelation with the new CHR implementation"
Jani Simomaa [Thu, 19 Jan 2017 10:21:01 +0000 (12:21 +0200)]
Merge "Implemented GraphPropertyRelation with the new CHR implementation"

7 years agoImplemented GraphPropertyRelation with the new CHR implementation 75/275/2
Hannu Niemistö [Thu, 19 Jan 2017 08:34:54 +0000 (10:34 +0200)]
Implemented GraphPropertyRelation with the new CHR implementation

This change adds type constraints to SCLRelations, a feature that is
needed because GraphPropertyRelation requires Serializable type
constraint.

There are also minor improvement to the locations of the compilation
errors caused by exceptions the compiler throws.

refs #6984

Change-Id: I6c1070af3a7129ae21e2cc01a5675412b32b4960

7 years agoLog an exception in ModuleSourceRepository 76/276/1
Hannu Niemistö [Thu, 19 Jan 2017 08:55:04 +0000 (10:55 +0200)]
Log an exception in ModuleSourceRepository

The previous implementation just printed exception to console.

refs #5920

Change-Id: Icd317b670403db0987c740a216c2f69f72427d09

7 years agoFixed memory leaks of SCL module listening systems 74/274/2
Hannu Niemistö [Wed, 18 Jan 2017 15:55:14 +0000 (17:55 +0200)]
Fixed memory leaks of SCL module listening systems

The main addition in this change are backlinks from UpdateListeners to
Observables. They make it possible to implement
UpdateListener.stopListening that removes the listener from all
Observables. This method is called automatically before the listener is
notified about the change, but client code can also call it when it
becames disinterested about changes.

Because now the client code is reposible for signaling when the
listening stops, the listeners are no more store to WeakHashMap in
ModuleEntry.

This change also contains a change in the default imports of some graph
based modules (Prelude -> StandardLibrary).

refs #6943

Change-Id: I7cf8d12b610ab22a70300d9491b645fa34dce620

7 years agoFixed PossibleVariable request to perform correct request 73/273/2
Tuukka Lehtonen [Tue, 17 Jan 2017 15:04:55 +0000 (17:04 +0200)]
Fixed PossibleVariable request to perform correct request

Previously the request performed getVariable while it should have been
invoking getPossibleVariable.

refs #6982

Change-Id: I79578e621228f5dc473faddd277c34a8d639de25

7 years agoRemoved unwanted and broken toolbar contributions 72/272/2
Tuukka Lehtonen [Tue, 17 Jan 2017 14:59:42 +0000 (16:59 +0200)]
Removed unwanted and broken toolbar contributions

These innocent toolbar menuContribution extensions seem to have been the
cause of the ConcurrentModificationException that came from inside
Eclipse code when this plug-in was in use and the Eclipse platform
version used was 4.5.2. It didn't happen on 4.5.1.

refs #6980

Change-Id: I279c1693ffa6bed1cec1400b3d9ec0f6f7189e3f

7 years agoPreliminary support for purely Variable based dynamic issue sources 70/270/5
Tuukka Lehtonen [Fri, 13 Jan 2017 06:56:18 +0000 (08:56 +0200)]
Preliminary support for purely Variable based dynamic issue sources

refs #6948

Change-Id: I7da7446a57a3da7836b59eb2e2c3dc60858818bf

7 years agoTesting small changes to SCL console view drop target handling. 71/271/2
Tuukka Lehtonen [Mon, 16 Jan 2017 12:32:22 +0000 (14:32 +0200)]
Testing small changes to SCL console view drop target handling.

For some users file drops on SCL console view do not work. This is an
attempt to allow as much as possible to be dropped.

refs #6979
[PRIVATE-12561]

Change-Id: I91fcdca9e71bdaaa10c32915ef3900d055658f0d

7 years agoDeprecate BinaryFunction in favor of BiFunction functional interface 69/269/2
jsimomaa [Sat, 14 Jan 2017 07:29:15 +0000 (09:29 +0200)]
Deprecate BinaryFunction in favor of BiFunction functional interface

refs #6960

Change-Id: I1b543a6781239a4da3da6baab741e66717f01485

7 years agoFixed adapters.xml line endings to standard LF. 66/266/1
Tuukka Lehtonen [Fri, 13 Jan 2017 12:56:41 +0000 (14:56 +0200)]
Fixed adapters.xml line endings to standard LF.

For some reason one of the original adapters.xml files had gotten a
macintosh-style CR line ending on its first line which started the
proliferation of CR line endings in all the adapters.xml files.

refs #6959

Change-Id: Ia4f41ffb38a02ddb6d25e37b12a49450a40dcf5a

7 years agoAdd SCL support for exporting subscription data as CSV 65/265/11
jsimomaa [Thu, 12 Jan 2017 11:21:57 +0000 (13:21 +0200)]
Add SCL support for exporting subscription data as CSV

* Providing more user friendly SCL API and also documentation for the
  functions and required parameters
* Renaming models -> items

refs #6952

Change-Id: I9a20ac30403a93824683baa73747731009db2e5d

7 years agoSome enhancements to GraphLayer-related utilities for Diagram layers 64/264/4
jsimomaa [Thu, 12 Jan 2017 11:21:00 +0000 (13:21 +0200)]
Some enhancements to GraphLayer-related utilities for Diagram layers

* Fixes suggested by Tuukka
* Use forEachTag-functional method
* getPossibleAdapter -> adapt

refs #6953

Change-Id: I322ab90fbb228e4540414fd175582466d4ccb9d3

7 years agoAdd stack trace to document server event handler error messages 57/257/4
Jussi Koskela [Mon, 9 Jan 2017 15:36:45 +0000 (17:36 +0200)]
Add stack trace to document server event handler error messages

refs #6944
Change-Id: I0a757d6b65ad1e8a5690ed9106f7f112303d3e34

7 years agoFixed component type editor Lift Properties domain setting. 63/263/1
Tuukka Lehtonen [Tue, 10 Jan 2017 20:32:38 +0000 (22:32 +0200)]
Fixed component type editor Lift Properties domain setting.

Previously Lift Properties would copy the lifted property relation over
to the user component type as-is which would also leave all the existing
L0.HasDomain relations of the relation in the copy. This can cause
totally unwanted HasDomain definitions in the property relations which
in turn can cause unexpected export-import problems later because of
those unexpected dependencies.

This changes the code to first remove all the existing HasDomain
definitions from the copied property relation and then add the HasDomain
relation to the target component type.

refs #6947

Change-Id: I10090db57ab343abcd35fe93e54265668ecb7e72

7 years agoRemoved rubbish included in previous commit 59/259/2
Tuukka Lehtonen [Mon, 9 Jan 2017 20:08:20 +0000 (22:08 +0200)]
Removed rubbish included in previous commit

org.simantics.msvc.runtime.x86_64 contained copies of other plug-ins,
sorry I missed it in the review for some reason.

Also put latest versions of Gnuplot and GnuplotSession in since I
imported old versions of both on the first try.

refs #6945

Change-Id: I7a703e4d76364efb4a5f2bddd568c6064b5d677a

7 years agoAdded missing plug-ins from old SVN repository trunk 58/258/4
Tuukka Lehtonen [Mon, 9 Jan 2017 16:55:23 +0000 (18:55 +0200)]
Added missing plug-ins from old SVN repository trunk

Included the following plug-ins in bundles/:
* org.simantics.gnuplot
* org.simantics.msvc.runtime{,x86,x86_64}

refs #6945

Change-Id: Ibf8709f4cb22945dce4925897ee7de684a46675b

7 years agoMerge "Save cluster sets only when creating DB snapshots"
Tuukka Lehtonen [Mon, 9 Jan 2017 09:17:02 +0000 (11:17 +0200)]
Merge "Save cluster sets only when creating DB snapshots"

7 years agoMerge "Cluster sets are written to wrong directory until first snapshot is made"
Tuukka Lehtonen [Mon, 9 Jan 2017 09:16:21 +0000 (11:16 +0200)]
Merge "Cluster sets are written to wrong directory until first snapshot is made"

7 years agoRemoval prevention of different types of resources disabled 56/256/2
Tuukka Lehtonen [Thu, 5 Jan 2017 14:09:37 +0000 (16:09 +0200)]
Removal prevention of different types of resources disabled

This "safety feature" has been in the model browser for a long time but
it feels like its time to remove it as it is really basically only an
annoyance and seldom saves the user from any real peril.

refs #6942

Change-Id: I5081cc764c9fee068ddcd187d550f84f1870c7a1

7 years agoFixed SWT font resource leak from MultiLineInputDialog. 55/255/3
Tuukka Lehtonen [Thu, 5 Jan 2017 13:50:55 +0000 (15:50 +0200)]
Fixed SWT font resource leak from MultiLineInputDialog.

refs #6941

Change-Id: I5b884a30c98a495aeb0d74e1c57b7540c3352003

7 years agoDisabling display scaling code.
Marko Luukkainen [Thu, 5 Jan 2017 14:45:59 +0000 (16:45 +0200)]
Disabling display scaling code.

refs #6940

Change-Id: If563e24f8a48f9bb85491721a662184fe5d5fa82

7 years agoDisabled debug prints from ResourceEditorInput2 53/253/3
Tuukka Lehtonen [Thu, 5 Jan 2017 12:12:45 +0000 (14:12 +0200)]
Disabled debug prints from ResourceEditorInput2

refs #6936

Change-Id: I92531d321fa753922c9fe126091adba91636db62

7 years agoDon't add repeated commands to SCL Console command history 52/252/1
Hannu Niemistö [Thu, 5 Jan 2017 07:17:47 +0000 (09:17 +0200)]
Don't add repeated commands to SCL Console command history

refs #6939
[PRIVATE-12942]

Change-Id: Ic432851620701a53227b0b76c2e2ac74160bfbbe

7 years agoReplaces stdout/stderr by logging in certain places 51/251/1
Hannu Niemistö [Tue, 3 Jan 2017 11:13:34 +0000 (13:13 +0200)]
Replaces stdout/stderr by logging in certain places

refs #6938

Change-Id: I88f7b5459884d2eddb2624e45d4e1fddedbd5b0c

7 years agoSupport for typed subprocesses 50/250/1
Hannu Niemistö [Mon, 2 Jan 2017 15:14:57 +0000 (17:14 +0200)]
Support for typed subprocesses

Added a method to test if there are pending removals.

[PRIVATE-12928]

Change-Id: I5bf94202209714af0163ef95b61b874a14db0aa8

7 years agoFixed index query and ontology search request behavior 49/249/1
Tuukka Lehtonen [Wed, 4 Jan 2017 13:40:04 +0000 (15:40 +0200)]
Fixed index query and ontology search request behavior

EntityInstances.QueryIndex request did not return proper information
from its isImmutable(ReadGraph) method.

OntologiesFromLibrary in turn did not stop browsing primarily at
L0.IndexRoot instances like it should have to find ontologies.

refs #6937

Change-Id: I262684fdeeee97913308a5aa096a9ea254dbd607

7 years agoFixed IEditorPart reference (memory) leaks from ResourceEditorSupport 48/248/3
Tuukka Lehtonen [Wed, 4 Jan 2017 12:38:06 +0000 (14:38 +0200)]
Fixed IEditorPart reference (memory) leaks from ResourceEditorSupport

ResourceEditorSupport.validationRequest gave IEditorPart as an argument
to UnaryRequest which caused the reference to remain in the DB client's
caches for very long times. This consumed the JVM heap rather quickly
with editors that require a lot of memory and never explicitly free
(nullify) it.

refs #6936

Change-Id: I46bfd107d57dea0493653afdb378dc089fa508a2