]> gerrit.simantics Code Review - simantics/platform.git/log
simantics/platform.git
7 years agoAdd possibility to substitute ElementClass instance in NodeRequest 11/311/1
jsimomaa [Wed, 1 Feb 2017 09:58:21 +0000 (11:58 +0200)]
Add possibility to substitute ElementClass instance in NodeRequest

refs #6958

Change-Id: Ifab1b37b35c13a441b2fc6d3270d7d4706b481c3

7 years agoAWTImage, ImageNode and E4WorkbenchUtils fixes 10/310/1
jsimomaa [Tue, 24 Jan 2017 12:32:46 +0000 (14:32 +0200)]
AWTImage, ImageNode and E4WorkbenchUtils fixes

Change-Id: Idff447816036a07df4324be130dc1078b331ba0e

7 years agoAdding missing HasTypes for background compatibility 09/309/1
jsimomaa [Fri, 20 Jan 2017 11:44:23 +0000 (13:44 +0200)]
Adding missing HasTypes for background compatibility

Change-Id: If1903c1fca4f14ecbc99797001f9d752c24c7787

7 years agoAdd getActiveIEditorPart to E4WorkbenchUtils 08/308/1
jsimomaa [Thu, 19 Jan 2017 11:17:33 +0000 (13:17 +0200)]
Add getActiveIEditorPart to E4WorkbenchUtils

Change-Id: Ie800b8da7a219e5c361620a1005a2a7428d760a5

7 years agoEnhancements to TabContributions 07/307/1
jsimomaa [Thu, 12 Jan 2017 13:59:41 +0000 (15:59 +0200)]
Enhancements to TabContributions

Change-Id: I4df883661c0836a2b19288e7c9fd9456f16988fa

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

7 years agoAllow specification of Locale to FormattingUtils.significantDigitFormat 45/245/3
Tuukka Lehtonen [Tue, 3 Jan 2017 08:35:48 +0000 (10:35 +0200)]
Allow specification of Locale to FormattingUtils.significantDigitFormat

refs #6929

Change-Id: I67b9192ebe8113e44fdbee6d089dbef58b59bc39

7 years agoFixed NPE caused by previous change. 44/244/1
Tuukka Lehtonen [Mon, 2 Jan 2017 20:17:38 +0000 (22:17 +0200)]
Fixed NPE caused by previous change.

refs #6926

Change-Id: I43da3f39957c5832f1ebef32fa18f52adf8c1737

7 years agoUpdateComponentUids creates a map from old uids to new uids 43/243/2
Hannu Niemistö [Mon, 2 Jan 2017 13:48:49 +0000 (15:48 +0200)]
UpdateComponentUids creates a map from old uids to new uids

The map can be used to migrate also some other structures containing
uids.
[PRIVATE-12930]

Change-Id: I9b621eb83a86dcf424b56010249e170cc4bc8741

7 years agoSave cluster sets only when creating DB snapshots 40/240/3
Jussi Koskela [Thu, 29 Dec 2016 15:54:25 +0000 (17:54 +0200)]
Save cluster sets only when creating DB snapshots

Performance improvement. Also fix the order of saving cluster sets and
persisting head state. This (luckily) worked correctly earlier as well,
since the cluster sets were saved after each change.

refs #6904
Change-Id: I67f238f8060672a99160a85bdbd2703d94fa275b

7 years agoCluster sets are written to wrong directory until first snapshot is made 39/239/1
Jussi Koskela [Thu, 29 Dec 2016 15:52:05 +0000 (17:52 +0200)]
Cluster sets are written to wrong directory until first snapshot is made

Initialize write directory in GraphClientImpl2 constructor.

refs #6906
Change-Id: I8b985db54ee080a981f2db1543ef1f027127c2ad

7 years agoFixed all line endings of the repository 38/238/2
Hannu Niemistö [Thu, 29 Dec 2016 13:21:27 +0000 (15:21 +0200)]
Fixed all line endings of the repository

I followed the instructions in http://stackoverflow.com/a/1511273

git rm --cached -r .
git config core.autocrlf true
git diff --cached --name-only -z | xargs -0 git add
git commit -m "..."

Change-Id: I4920748df8f53c221fc2f643e991b66aea5697e0

7 years agoImproved error handling in shared library import wizard 37/237/2
Tuukka Lehtonen [Thu, 29 Dec 2016 11:05:27 +0000 (13:05 +0200)]
Improved error handling in shared library import wizard

Previously the wizard catched all exceptions in the wrong place causing
the UI to never show any errors to the user and just close the wizard as
if everything was successful. The problems were only printed to the
console and in selected cases also to the workspace error log.

This changes the import code to not catch any exceptions and let the UI
side deal with the thrown exceptions by logging them, showing them to
the user as the wizard's error message and in a separate error dialog.

refs #6903
[PRIVATE-12918]

Change-Id: I5014c86abb61e097b610d7f62e849d1737a4a92b

7 years agoFixed databoard Files.writeFile to not open file twice for writing 36/236/1
Tuukka Lehtonen [Thu, 29 Dec 2016 09:05:07 +0000 (11:05 +0200)]
Fixed databoard Files.writeFile to not open file twice for writing

refs #6902

Change-Id: I543afb745922391f7a9a9ca8150f24cd3092b359

7 years agoProper error message, when pattern compilation fails 35/235/1
Hannu Niemistö [Thu, 29 Dec 2016 07:44:00 +0000 (09:44 +0200)]
Proper error message, when pattern compilation fails

Also, added CHR regression tests to regression test suite.

refs #6900

Change-Id: Idac2dc44b9afa74b5ea48e53d1f317a3497bd2bb

7 years agoAdd EditorAdapterDescriptorImpl.toString implementation for debug 34/234/2
jsimomaa [Wed, 28 Dec 2016 14:06:29 +0000 (16:06 +0200)]
Add EditorAdapterDescriptorImpl.toString implementation for debug

refs #6898

Change-Id: I6754db48ea760777ffdf86b78e384e26bcb9ba66

7 years agoReflectionAdapter2 does not handle all Throwables 33/233/2
jsimomaa [Wed, 28 Dec 2016 14:05:48 +0000 (16:05 +0200)]
ReflectionAdapter2 does not handle all Throwables

ReflectionAdapter2.adapt() does not catch all throwables (e.g.
NoClassDefFoundError) enabling the possibility that the throwable is not
shown to the developer in any manner (console or log)

refs #6898

Change-Id: I32388ebcb23233210c2e54f8530f7e8c626f28de

7 years agoMerge "Ensure GetElementClassRequest is not constructed without elementFactory"
Tuukka Lehtonen [Wed, 28 Dec 2016 14:52:39 +0000 (16:52 +0200)]
Merge "Ensure GetElementClassRequest is not constructed without elementFactory"

7 years agoMerge "Remove unused import in DeleteHandler"
Tuukka Lehtonen [Wed, 28 Dec 2016 14:52:02 +0000 (16:52 +0200)]
Merge "Remove unused import in DeleteHandler"

7 years agoMerge "List the unsatisfied dependencies in CanvasContext"
Jani Simomaa [Wed, 28 Dec 2016 14:17:03 +0000 (16:17 +0200)]
Merge "List the unsatisfied dependencies in CanvasContext"

7 years agoMerge "Adding more detailed message to thrown exceptions in SyncElementFactory"
Jani Simomaa [Wed, 28 Dec 2016 14:16:34 +0000 (16:16 +0200)]
Merge "Adding more detailed message to thrown exceptions in SyncElementFactory"

7 years agoRemove unused import in DeleteHandler 31/231/1
jsimomaa [Wed, 28 Dec 2016 14:01:51 +0000 (16:01 +0200)]
Remove unused import in DeleteHandler

refs #6898

Change-Id: I555641ab201e50e35a17e6e3d3b68d97638f701d

7 years agoList the unsatisfied dependencies in CanvasContext 30/230/1
jsimomaa [Wed, 28 Dec 2016 14:01:24 +0000 (16:01 +0200)]
List the unsatisfied dependencies in CanvasContext

refs #6898

Change-Id: I07de49394e871d27f6df172c02cfdff05cde44b1

7 years agoEnsure GetElementClassRequest is not constructed without elementFactory 32/232/2
jsimomaa [Wed, 28 Dec 2016 14:03:13 +0000 (16:03 +0200)]
Ensure GetElementClassRequest is not constructed without elementFactory

refs #6898

Change-Id: I905188f352bbaeae7787d817e7b0835a36138abf

7 years agoAdding more detailed message to thrown exceptions in SyncElementFactory 29/229/1
jsimomaa [Wed, 28 Dec 2016 14:00:09 +0000 (16:00 +0200)]
Adding more detailed message to thrown exceptions in SyncElementFactory

refs #6898

Change-Id: I7d9c2b175f25d06b84fbda8938875bb8ab824f81

7 years agoImprovements to SCL compiler error messages 28/228/3
Hannu Niemistö [Wed, 28 Dec 2016 10:46:48 +0000 (12:46 +0200)]
Improvements to SCL compiler error messages

Better error message if type annotation has different number of
parameters than the function definition.

Refactored method names, we have now getSyntacticFunctionArity for
estimating function arity without type information and
getFunctionDefinitionPatternArity for arity calculations of patterns.

refs #6897

Change-Id: I032ee0e5da416f232517d1e03c7a7cb0208c4d45

8 years agoReverted if-without-else feature in SCL 27/227/1
Hannu Niemistö [Tue, 27 Dec 2016 14:30:02 +0000 (16:30 +0200)]
Reverted if-without-else feature in SCL

Removed possibility to have if-then -construct without else, because the
implementation changed parsing rules and some existing code was broken.
The feature might be added in future, if better implementation is found.

refs #6894
related to change (refs #6888)

Change-Id: I1c729c4176cfaf867ba3dbf13fd73fbc14f41e61

8 years agoFixing a deadlock. Some improvements to ModuleSourceRepository API 26/226/2
Hannu Niemistö [Fri, 23 Dec 2016 14:09:58 +0000 (16:09 +0200)]
Fixing a deadlock. Some improvements to ModuleSourceRepository API

refs #6851

Change-Id: I4328ab825ae1bb9f9ab529c947f6b02a8d90be83

8 years agoSet default database driver to acorn. 25/225/2
Tuukka Lehtonen [Fri, 23 Dec 2016 07:56:57 +0000 (09:56 +0200)]
Set default database driver to acorn.

This change was made possible by change
I844171225284cb7a9d28b6ab5f00c4db88e2afa0.

refs #6887

Change-Id: Ib61f88b8759be4aec1f65887ca17847dc4e5201f

8 years agoMerge "Re-enabled Acorn transaction cancellation support for testing"
Tuukka Lehtonen [Fri, 23 Dec 2016 07:51:30 +0000 (09:51 +0200)]
Merge "Re-enabled Acorn transaction cancellation support for testing"

8 years agoRe-enabled Acorn transaction cancellation support for testing 17/217/2
Antti Villberg [Tue, 20 Dec 2016 05:07:06 +0000 (07:07 +0200)]
Re-enabled Acorn transaction cancellation support for testing

refs #6887

Change-Id: I844171225284cb7a9d28b6ab5f00c4db88e2afa0

8 years agoRemoved unnecessary external jar procyon-decompiler 24/224/1
Hannu Niemistö [Tue, 20 Dec 2016 14:26:35 +0000 (16:26 +0200)]
Removed unnecessary external jar procyon-decompiler

Change-Id: I84d92daf56f5dbbec67d412c4548b3a98462e939

8 years agoMerge changes Ib86a41bb,I4fed12d3
Tuukka Lehtonen [Tue, 20 Dec 2016 12:41:08 +0000 (14:41 +0200)]
Merge changes Ib86a41bb,I4fed12d3

* changes:
  Show modelled STS tests in model browser in execution order
  Run modelled STS tests in alphanumeric order

8 years agoMerged changes from feature/scl to master. 21/221/6
Hannu Niemistö [Tue, 20 Dec 2016 10:09:30 +0000 (12:09 +0200)]
Merged changes from feature/scl to master.

This commit contains lots of SCL compiler and runtime changes:
* New CHR-rule based sublanguage. This change alters meaning of
when-keyword and so some code using when may break.
* Removed type classes Eq and Hashable. Compiler now generates and uses
Java methods equals and hashCode. This change is needed for better
interoperability with Java code.
* Type based overloading for symbols imported from different modules
* Some expressions ignore their return value (statements in
do/let/where, if and match cases if the return value of if/match is
ignored). These expressions can have any type and if/match expression
branches may have different types. Also if-expressions may have only
else branch. If the return value of apply-experssion is ignored, the
expression cannot be partial application that does not have
side-effects.
* View pattern support
(https://ghc.haskell.org/trac/ghc/wiki/ViewPatterns)
* Lambda-match support
(https://ghc.haskell.org/trac/ghc/wiki/LambdasVsPatternMatching)
* String interpolation can be used also in patterns
* SCL compiler regression test suite has been moved to a new bundle
org.simantics.scl.compiler.tests
* Improvements to SCL module editor syntax coloring
* SCL compiler refactorings, for example all name constants are now in a
dedicated class Names and CompilationContext merging old context classes
* Improved byte code for comparisons
* Improved code generation from string interpolation
* Anonymous object support in SCL backend (not yet frontend support)
* Bugfixes and new regression tests

refs #6888

Change-Id: I9d4c001d0323069d3b86a83369fa3581f02ee305

8 years agoShow modelled STS tests in model browser in execution order 23/223/1
Jussi Koskela [Tue, 20 Dec 2016 12:13:57 +0000 (14:13 +0200)]
Show modelled STS tests in model browser in execution order

refs #6890
Change-Id: Ib86a41bb738cf9fab476ce062811deeeccc3f317

8 years agoRun modelled STS tests in alphanumeric order 22/222/1
Jussi Koskela [Tue, 20 Dec 2016 10:07:41 +0000 (12:07 +0200)]
Run modelled STS tests in alphanumeric order

Run modelled STS tests in alphanumeric order in case of equal execution
priority

refs #6889
Change-Id: I4fed12d34de943ea9f950d209754c9465b2ce9b4

8 years agoAdded info on backup location to documentation backup.
Tuukka Lehtonen [Tue, 20 Dec 2016 08:51:27 +0000 (10:51 +0200)]
Added info on backup location to documentation backup.

refs #6848
refs #6881

8 years agoMerge "Bump master versions from 1.25.0 to 1.26.0."
Tuukka Lehtonen [Tue, 20 Dec 2016 06:16:54 +0000 (08:16 +0200)]
Merge "Bump master versions from 1.25.0 to 1.26.0."

8 years agoImport/export menuitems missing from Simantics Desktop product 15/215/2
Jussi Koskela [Mon, 19 Dec 2016 15:24:01 +0000 (17:24 +0200)]
Import/export menuitems missing from Simantics Desktop product

Import/export were moved to separate feature
(org.simantics.modeling.ui.workbench.feature) in #6856, but this feature
was not included to Simantics Desktop product.

refs #6885
Change-Id: Ibfecb1974c15387298661842f133ecb7f5984355

8 years agoFixing modelled STS tests to not include nested JUnit suites 14/214/1
jsimomaa [Mon, 19 Dec 2016 15:03:40 +0000 (17:03 +0200)]
Fixing modelled STS tests to not include nested JUnit suites

refs #6884

Change-Id: Ia86e62bae10e6ef12922e168231917bda40fc002

8 years agoFixing modelled STS tests to not include nested JUnit suites 13/213/1
jsimomaa [Mon, 19 Dec 2016 14:48:34 +0000 (16:48 +0200)]
Fixing modelled STS tests to not include nested JUnit suites

refs #6884

Change-Id: I314f591d33bb06504f875b14041f12edc4dedb71

8 years agoAdded release schedule and produced artifact documentation
Tuukka Lehtonen [Mon, 19 Dec 2016 14:05:01 +0000 (16:05 +0200)]
Added release schedule and produced artifact documentation

Also removed the -semantum.target file since
it is not really useful anymore.

refs #6881

8 years agoBump master versions from 1.25.0 to 1.26.0. 10/210/2
Tuukka Lehtonen [Mon, 19 Dec 2016 07:17:56 +0000 (09:17 +0200)]
Bump master versions from 1.25.0 to 1.26.0.

refs #6879

Change-Id: I3bdfa773562033d3dcc1d72a359cf61d7f35dfee

8 years agoFix desktop product configuration 11/211/1
Tuukka Lehtonen [Mon, 19 Dec 2016 07:55:48 +0000 (09:55 +0200)]
Fix desktop product configuration

Removed -Djava.net.preferIPv4Stack=true which is totally out of date. It
was an early day procore hack.

Added -Djava.util.Arrays.useLegacyMergeSort=true because the G2D scene
graph comparator for some still unknown reason runs into problems with
Java's TimSort implementation.

refs #6621

Change-Id: If931e8bfe60525015166813ac479f0aadeac8f90

8 years agoFixed documentation dumping scripts.
Tuukka Lehtonen [Sun, 18 Dec 2016 22:37:50 +0000 (00:37 +0200)]
Fixed documentation dumping scripts.

Dumped documentation is not stored in the repository, it would just bloat it.

refs #6848

8 years agoFixed release engineering target platform preparation instructions 09/209/1
Tuukka Lehtonen [Sun, 18 Dec 2016 22:26:54 +0000 (00:26 +0200)]
Fixed release engineering target platform preparation instructions

refs #6621
refs #6848

Change-Id: I4d4b0b62ac1e87a841c6f9807d60ed3998fd2ede

8 years agoInclude SDK source in simantics.target 06/206/1
Tuukka Lehtonen [Sun, 18 Dec 2016 19:57:08 +0000 (21:57 +0200)]
Include SDK source in simantics.target

refs #6621

Change-Id: Ic8748eaeff962c5a21e660791c6c034c561b81f1

8 years agoInclude source features in generated SDK P2 repository 05/205/1
Tuukka Lehtonen [Sun, 18 Dec 2016 19:25:07 +0000 (21:25 +0200)]
Include source features in generated SDK P2 repository

The problem was that the generated org.simantics.sdk.source feature was
missing from org.simantics.sdk.repository/category.xml and thus the
build would not include any sources.

Also bumped used tycho version to 0.26.0 from 0.25.0.

refs #6621

Change-Id: I10e63a77b414f67bb32168d93d0c612ac1bc0b56

8 years agoInitial draft of Simantics release engineering instructions 04/204/2
Tuukka Lehtonen [Sun, 18 Dec 2016 17:31:21 +0000 (19:31 +0200)]
Initial draft of Simantics release engineering instructions

refs #6621
refs #6848

Change-Id: Id726c100944fd4f1df7c54d9a2eed16a2ca88e6c

8 years agoTarget platform release work for 1.25.0. 03/203/1
Tuukka Lehtonen [Sun, 18 Dec 2016 15:53:43 +0000 (17:53 +0200)]
Target platform release work for 1.25.0.

Removed useless releng/org.simantics.target.
Moved releng/org.simantics.target/simantics.target to
org.simantics.sdk.build.targetdefinition/simantics.target and changed
its contents to match what shall be published on the web as
http://www.simantics.org/download/<refspec>/simantics.target.

refs #6621

Change-Id: I8e430cc9a724dd992f88abe8328606672f0de29f

8 years agoMerge "Set tycho-packaging-plugin qualifier format to 'v'yyyyMMdd-HHmmss"
Tuukka Lehtonen [Thu, 15 Dec 2016 12:44:35 +0000 (14:44 +0200)]
Merge "Set tycho-packaging-plugin qualifier format to 'v'yyyyMMdd-HHmmss"

8 years agoSet tycho-packaging-plugin qualifier format to 'v'yyyyMMdd-HHmmss 02/202/1
Tuukka Lehtonen [Thu, 15 Dec 2016 12:37:31 +0000 (14:37 +0200)]
Set tycho-packaging-plugin qualifier format to 'v'yyyyMMdd-HHmmss

refs #6621

Change-Id: I0ebfcf451f2f7a909bb888d62e772f223a205379

8 years agoDocument server should use variable value request with binding 01/201/2
Antti Villberg [Wed, 14 Dec 2016 07:19:47 +0000 (09:19 +0200)]
Document server should use variable value request with binding

refs #6876

Change-Id: I772b301b7b66f60e2834d01e9a1a7b1d300adb26

8 years agoAdd VariableValueWithBinding request into db.layer0 00/200/3
Antti Villberg [Wed, 14 Dec 2016 06:07:24 +0000 (08:07 +0200)]
Add VariableValueWithBinding request into db.layer0

refs #6875

Change-Id: If71e9d082473bfcf54314e376a39d610df05c987

8 years agoAn attempt to resolve this issue for good 97/197/1
Antti Villberg [Mon, 12 Dec 2016 09:56:51 +0000 (11:56 +0200)]
An attempt to resolve this issue for good

refs #6169

Change-Id: Ia06d08568fa37b9a575f924dc35be5fe3fa1a941