Improve functionality, documentation and usability of Simantics/Profile SCL module functions
-
The documentation Simantics/Profile
is broken and lacking any descriptions. Add some and fix the garbage. -
toggleProfileGroup
would be more usable if it accepted also profile labels (L0.HasLabel
) and not just profile names (L0.HasName
). Profiles should be defined with locally unique labels in addition to locally unique names to simplify how they are shown in the Profiles view. The profile group/entry names may more complex or even random UUIDs in the database while the UI is showing the human-readable labels which could then be copied from the UI for theprofileName
parameter -
Introduce new functions: -
resolveProfileResource :: RuntimeProfile -> [String] -> <ReadGraph,Proc> Resource
- for resolving profile group or entry Resources based on a resource name/label path starting from the specified top-level profile group and traversing the hierarchy visualized by the Profiles view based on the names shown by the view.
-
toggleProfileByResource :: Boolean -> RuntimeProfile -> Resource -> <WriteGraph> ()
- for (de)activating any specified profile group or entry in the specified top-level profile group
-
setProfileMonitorStackGrowDirection :: ProfileMonitorStackGrowDirection -> Resource -> <WriteGraph> ()
- for configuring a diagram element's profile monitor stack growth direction
- added for completeness sake because
setProfileMonitorPosition
andresetProfileMonitorPosition
already exist.
-
Edited by Tuukka Lehtonen