1 include "Simantics/Entity" hiding (nameOf)
2 include "Simantics/Model"
3 include "Simantics/Misc"
5 type ProfileEntry = Resource
6 type RuntimeProfile = Resource
8 importJava "org.simantics.modeling.ModelingUtils" where
10 Creates a Profile with given string, returns the created profile.
12 createProfile :: String -> [ProfileEntry] -> <WriteGraph> Resource
15 CreateProfileEntry name style group.
17 createProfileEntry :: String -> Resource -> Resource -> <WriteGraph> ProfileEntry
20 CreateToplevelProfile model name entries.
22 createToplevelProfile :: Model -> String -> [ProfileEntry] -> <WriteGraph> Resource
27 activateProfileEntries :: Resource -> [ProfileEntry] -> <WriteGraph> ()
30 toggleProfileGroup runtimeProfile profileGroupName value
32 Toggles the given `profileGroupName` in given `runtimeProfile` on or off
37 toggleProfileGroup runtimeProfile "Simulated 1" True
39 toggleProfileGroup :: RuntimeProfile -> String -> Boolean -> <WriteGraph> ()
41 importJava "org.simantics.diagram.profile.ElementTranslation" where
42 setProfileMonitorPosition :: Resource -> Double -> Double -> <WriteGraph> ()
43 resetProfileMonitorPosition :: Resource -> <WriteGraph> ()