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.
Tuukka Lehtonen [Wed, 21 Jun 2017 20:57:13 +0000 (23:57 +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.
Tuukka Lehtonen [Tue, 20 Jun 2017 06:29:08 +0000 (09:29 +0300)]
RouteGraphUtils.readConnectionStyle returns default value if necessary
Previously the code would crash with NPE if the ontology/model was not
created to contain STR.HasConnectionType information accordingly. Now it
will just return ExampleConnectionStyle if there is no modelled
information available.
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.
Reason: If user has set the value of a property to X, he expects it to stay as X until all eternity instead of the value changing when the assertions in the ontology change.
jsimomaa [Thu, 15 Jun 2017 06:30:44 +0000 (09:30 +0300)]
Lots of fixes for PrettyPrintTG
* Ordering predicates alphanumerically for deterministic ordering
between two databases
* Filtering L0.identifier statements
* Hash-based naming for blanks for ordering output print
Still needs some optimiziations to improve performance lost with these
changes..
Tuukka Lehtonen [Wed, 14 Jun 2017 16:45:36 +0000 (19:45 +0300)]
Improved PDF diagram export wizard user experience
* Page number addition is now an option in the wizard page
* The diagram selection tree no longer automatically expands itself
fully when any node is (un)checked. Automatic expansion is only done
up to the second node level only.
* The diagram filter now works with a 500ms quiet time delay which means
writing in the filter shouldn't slow down the UI like it used to.
* Initial selection is more properly taken into account when
initializing the wizard page. The containing model/index root is
always sought based on the selection and the diagrams contained by the
selected resource are then initially selected for that model in the
diagram list.
* The Select/Deselect Visible buttons have been removed and Expand and
Collapse buttons have been added instead for expanding and collapsing
the selected tree nodes.
* The Select All and Deselect All buttons now work differently. If any
filter is applied to the current tree view, only the diagrams shown in
the tree are selected/deselected when either button is pressed. If no
filter is applied, all diagrams will be selected/deselected.
Tuukka Lehtonen [Wed, 14 Jun 2017 16:22:30 +0000 (19:22 +0300)]
Added URIUtil.encodeFilename2 which encodes only necessary characters.
The new method uses the same '%' URI style encoding as
URIUtil.encodeFilename but encodes only characters that cannot be
present in Windows file names, i.e. the following: <>:"/\|?*
This method can be used to convert arbitrary user-given names to valid
file names in wizards etc.
Jussi Koskela [Wed, 14 Jun 2017 13:01:51 +0000 (16:01 +0300)]
Use proper URI encoding/decoding in fail-safe import
Earlier implementation didn't handle correctly cases where missing
resources had slashes in their names. Also fixed error reporting logic
to not remove error messages from sibling resources with matching
prefix.
Jussi Koskela [Wed, 14 Jun 2017 12:08:03 +0000 (15:08 +0300)]
Fixed URI of the root resource in fail-safe import
URIStringUtils.splitURI returns root URI in non-standard format, so fix
it manually as a workaround. Otherwise ExternalEntities cannot be
created under the root resource.
jsimomaa [Mon, 5 Jun 2017 12:14:49 +0000 (15:14 +0300)]
Enhancements to modelled tests
* Single test has now an isolated and own SCL CommandSession
* Tests can depend on one another and the SCL variables are available
for the depenent tests
* Added support for declaring SCL variables under the test definition
(suitable e.g. for large literals for comparison)
Hannu Niemistö [Thu, 1 Jun 2017 10:04:26 +0000 (13:04 +0300)]
(refs #7250) CHR rules modularization (first working version)
This change adds a complete implementation of CHR modularization. New
top level declaration ruleset allows to define rulesets that can be
included into other rulesets (see CHR{5,6}.scl).
Hannu Niemistö [Wed, 31 May 2017 12:47:17 +0000 (15:47 +0300)]
(refs #7260) Added a new DerivedProperty to SCLValues
DerivedProperty prevents certain optimizations applied for private
values. This is needed because mechanisms deriving values are assuming
that certain Java methods will be generated.
Hannu Niemistö [Tue, 30 May 2017 07:49:26 +0000 (10:49 +0300)]
(refs #7250) Refactoring CHR implementation
This change is preparation for the modularization of the CHR rule
systems. The main change is moving the major rule execution code from
fact classes to priority level classes.
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