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