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)