Merged changes from r27124 through r27280 from trunk to branches/simantics-1.10
in preparation for the Simantics 1.10 release.
refs #4189
The merged changes include fixes for the following issues:
<pre>
2013-07 (22)
#4219 Transferable graph with resource literals can only be imported once
#4223 Remove stdout printing option from issues to CSV export action
#4231 Wordwrap/Horizontal scrollbar for document editor StyledText widget
#4233 FileUtils.copyFile/copy do not close file descriptors properly
#4234 File handle leakage in PDF export
#4246 Problems in FastLZ stream implementations
#4248 Query collector fails to collect some discarded parents
#4249 Subscription collection initialization fails if a subscription item is broken (has no name)
#4250 ContextualHelp should attempt help context resolution on diagrams even when selected element is not mapped
#4224 Allow GraphExplorer item selection by keys / labels to use other than primary column for matching.
#4189 Branch and release Simantics 1.10
#4235 Drawing template changes
#4065 Fix annotation user interfaces
#4218 Color edit support for DnD monitors
#4220 Change EntityRemover to not remove L0.HasProperty objects as composed properties if they are an L0.PartOf something else
#4225 Show resource ID in issue view if there's nothing else to show for the issue context
#4226 Make low level Layer0 validation produce fatal issues so that they don't go unnoticed.
#4228 Allow CSV export number format specification through preferences
#4229 Customizable clipboard logic in CopyPasteHandler
#4230 Prevent RouteGraphNode from starting connection rerouting if there are more than one other elements selected
#4247 Primarily look for workbench search function from active model, resort to project only secondarily.
#4251 Allow tree columns in TreeDialog
2013-06 (28)
#4113 ResourceBinding cleanup
#4181 Caching prevents some valid renames
#4182 Dependency index gets out of sync
#4185 undo(int numberOfOperations)
#4186 PDF export leaks memory
#4190 Do not allow entity names to be modified to begin with one or more dots ('.')
#4191 AdaptationUtils.adaptToCollection fails to adapt, if class implements IAdaptable
#4193 Selection view input throttling produces wrong tabs for user
#4195 Deleting terminal element in symbol editor fails to remove diagram connection points from symbol
#4202 SWTKeyEventAdapter produces wrong modifier state mask for key event when AltGr is pressed
#4210 Simulation time HMS mode viewing fails to show time beyond 5 965 hours
#4211 Problems with session reconnect
#4212 setImmutable failed if cluster was not resident
#4215 Safety fixes for monitor formatting
#2897 As a developer, I want to use GraphExplorer as non-virtual
#3219 Lazy updating of model browser and graph explorer are problematic
#3994 Get Resource -> Resource map in SCL based mapping
#4184 TreeViewer based GraphExplorer
#4206 Save work done for team feature movie.
#3984 Import sources for SimanticsExcel.dll
#4197 If mouse doesn't move between subsequent diagram copy-paste operations, offset the pasted elements as when using Edit / Paste main menu
#4203 Migration framework enhancement
#4204 Temp file management in Simantics facade
#4205 Refactor issues to allow reporting of L0 issues
#4213 Make recovery work silently.
#4214 GraphExplorerImpl image decorations should be offloaded from the UI thread into the image loader job
#4216 BoxSelectionMode should be cancelable by pressing ESC
#4217 Extend BasicExpression lexer to support 8-bit ASCII characters in quoted strings
2013-05 (29)
#4114 Flag type not verified for newly created flags
#4132 Workspace persistent virtual graph loading robustness / safety enhancements
#4144 Spreadsheet loses selection while editing cell
#4145 Useless error messages when pasting PNG image on top of image node in a drawing template
#4151 Issues are not updated in some removal cases
#4157 Diagram loading can cause weird exceptions if editor is disposed during loading
#4158 Manual activation of mapping messes up undo
#4159 Removal of connected diagram reference elements corrupts database
#4161 RouteGraph.makePersistent behaves incorrectly when the connection is simple
#4163 Minor bug in connect tool
#4164 Component modification metadata missing for some removed connections
#4166 Session does not close properly
#4169 Modelled views fail to show content at startup
#4173 Random access values can corrupt the database session
#4174 AwtFocusHandler.hidePopups race condition
#4178 Move tryRemover from DeleteNodeHandler to RemoverUtil
#4153 Exporting GraphFiles
#4160 Minor modifications to SCL documentation
#4165 Support session reconnect in SimanticsPlatform
#3519 Change Sysdyn jenkins builds to bundle JRE 6
#4142 Simantics 1.9 release
#4147 Store SCL console command history into preferences
#4148 Add undo into DB.scl
#4150 Batch issue validation performance enhancements
#4155 Allow overriding oleEditor's title.
#4162 runTest command for SCL console
#4167 Remove resources from index updates
#4170 Set exported PDF Application metadata based on IProduct information
#4179 Support multiple tg roots in migration framework
</pre>
Fixed broken variable shortcuts. The participant was using kpe.stateMask != SHIFT_DOWN_MASK, which did not work anymore, since SHIFT_MASK has also been added to stateMask. Switched to use !kpe.isShiftDown(). (fixes #4221)
lempinen [Tue, 26 Mar 2013 07:00:24 +0000 (07:00 +0000)]
Fixed deadlock issues when game experiment is active and variable name has been changed: better handling of exceptions in external reads . (fixes #4209)
lempinen [Mon, 18 Mar 2013 08:13:19 +0000 (08:13 +0000)]
Removed accessor from a regular simulation result: divided SysdynResult into MemoryResult (without accessor, saveable to a file) and FileResult (read from a file and used with an accessor) (refs #4180)
miettinen [Fri, 15 Mar 2013 07:02:42 +0000 (07:02 +0000)]
Initial version of the user interface for the sensitivity analysis simulation (refs #4171). Currently there is little functionality under the interface.
lempinen [Thu, 28 Feb 2013 09:31:45 +0000 (09:31 +0000)]
Replaced "(" output_expression_list() ")" with "(" expression() ")". This allows equations like (1+2)^(1+1) but does not allow tuples (1,2,3)^(,,,). (fixes #3942)
miettinen [Thu, 28 Feb 2013 07:16:22 +0000 (07:16 +0000)]
ModelParser parses the inputs and outputs of user defined and shared functions. The inputs and outputs are written to the database to allow the completion processor and the function list in equation tab to show these functions and provide information of their parameters (refs #4064).
lempinen [Tue, 26 Feb 2013 12:53:52 +0000 (12:53 +0000)]
A HUGE improvement for fmu simulation. Instead of asking getRealValue(variable) for each variable, now we ask getRealValue(variable[]), which is very fast. (fixes #4123)
lempinen [Mon, 25 Feb 2013 09:48:37 +0000 (09:48 +0000)]
Updated Font dialog to not use SWT graphics when possible. If SWT graphics are used, they are disposed correctly using LocalResourceManager. (fixes #4104)
miettinen [Wed, 20 Feb 2013 11:19:53 +0000 (11:19 +0000)]
Added additionalProposalInfo to CompeltionProposals; in assistive text feed, when a function with a description is selected, a popup window will pop up on the right of the text feed assistant and print the description of the function. (refs #3965)
lempinen [Wed, 20 Feb 2013 10:26:03 +0000 (10:26 +0000)]
ExportModule and ExportFunction used old transferable graph requests that did not work properly. Migrated them to using new ModelTransferableGraphRequest. (fixes #4081)
miettinen [Tue, 19 Feb 2013 14:25:17 +0000 (14:25 +0000)]
A huge commit for Functions in equation tab (refs #4030) and expecially for Expression parser: built-in function arguments assistive text feed (refs #3965):
* Function parameters are shown in the text feed assistant and printed to the expression when the function is selected or when a function is selected in ShortcutTabWidget.
* Added almost all Modelica functions under the model browser, that is, those which seem to work correctly or might be useful. All functions have their interface variables defined in the database as well. Updated also the definitions of the built-in functions.
* Added the interfaces of built-in Modelica functions to be shown similarly to the Modelica codes of all other function.
* Created another representation for a Modelica function in another Function.java: it is used to store and provide with the name, the type, and the parameterlist of a modelica function, and can easily be expanded to do more such stuff as well.
* Added fun icons for different types of functions to the ShortcutTabWidget and the text feed assistant.
* In parsing modelica (user defined) functions, the interface variables are recognized. They are not yet used, though.
* Size of the modelica code viewer (or modelica interface) of a function in user defined or built-in functions is limited to the minimum of 150 px; otherwise the long lines in the description make the code / interface viewer disappear.
* Added auto-generated doc of ModelicaParser.
lempinen [Fri, 15 Feb 2013 14:59:51 +0000 (14:59 +0000)]
Fixed Stock initialization with single number fill(number, size) to use dynamic EnumerationName.size instead of getting the size from the number of indexes defined to enumeration. This way it works also with overridden enumerations (fixes #4073)
lempinen [Mon, 11 Feb 2013 08:25:48 +0000 (08:25 +0000)]
Preference pages for selecting OM version. This is difficult to use since preference pages are UI components and Modelica should be headless. There needs to be changes in the Modelica interface. (refs #4061)
lempinen [Fri, 8 Feb 2013 12:50:49 +0000 (12:50 +0000)]
Enabled parameter overrides for normal experiments. A flattened model is created with OpenModelica 1.9 to find parameters, so also module instance parameters work automatically. (fixes #4060)
miettinen [Fri, 8 Feb 2013 06:19:24 +0000 (06:19 +0000)]
* The sorting of variables in shortcut tab lost the data field. Now the data field is added in addition to the text field (refs #4048).
* Added polarity signs for dependencies whose one end is connected to a module, similarly to those that were connected to variables (refs #3940).
* Validating names of variables and module instances now checks also that there are no similarly named modules within the current model (or current module instance). Such invalid names are not accepted (#refs #3040).
* Validating names of variables and module instances now checks also that there are no similarly named module types defined in the model. Such invalid names are not accepted (#refs #680).
miettinen [Wed, 30 Jan 2013 08:17:32 +0000 (08:17 +0000)]
* Add the name of the item itself to the text feed assistant and the variable list in the equation tab. (refs #4037)
* Reference to self in equation does not get the yellow underlining anymore ("No link to this variable"). (refs #4024)
* Sort items in shortcut tab
* Color time and self gray
miettinen [Mon, 28 Jan 2013 11:53:32 +0000 (11:53 +0000)]
* Added "time" variable to text feed assistants: in expression editor, shortcut tab, and charts (refs #3990)
* Refactoring the deselecting in shortcutTabWidget: listeners changed to style definitions
miettinen [Fri, 25 Jan 2013 10:31:02 +0000 (10:31 +0000)]
Shortcut tab in equation tab doesn't update the variable colors if there are syntax errors in the expression. That is, when the equation is being written, the list doesn't constantly go yellow and back to normal again (refs #3961).
miettinen [Thu, 24 Jan 2013 12:17:59 +0000 (12:17 +0000)]
Changed the 'save equation when running simulation' feature implementation: The EquationTab no longer uses keyboard focus to determine, if one of the simulate buttons are pressed. Instead, such simulation buttons that are desired to activate the saving are explicitly calling the save function of the EquationTab (refs #4009).
miettinen [Tue, 22 Jan 2013 14:13:17 +0000 (14:13 +0000)]
* Add the saved simulation results under the experiment _after_ the respective RecordAccessors have been saved to file (refs #3958).
* Catching NPEs that are thrown if any "repeat" button is pressed consecutively (refs #4007).
miettinen [Tue, 22 Jan 2013 07:11:22 +0000 (07:11 +0000)]
Simulate buttons save changes made in the model (refs #3960).
When pressing certain simulation buttons in toolbar, they acquire the focus which in turn causes focus listeners to save changes, e.g. in EquationTab. All buttons do not cause this effect.
lempinen [Fri, 18 Jan 2013 08:22:44 +0000 (08:22 +0000)]
Separated fmu instantiation from initialization. Initial values can be changed after instantiation and before initialization with normal setRealValue, setBooleanValue, etc. If initialization has not been run after instantiation, and user tries to simulate steps, initialiation is run. (fixes #3909)
lempinen [Fri, 11 Jan 2013 10:42:09 +0000 (10:42 +0000)]
Dependency node is a text node and it requires a string as text. Updated the string to be empty instead of null, if polarity has not been set. (fixes #3975)