include "Simantics/Entity" hiding (nameOf) include "Simantics/Model" include "Simantics/Misc" type ProfileEntry = Resource type RuntimeProfile = Resource importJava "org.simantics.modeling.ModelingUtils" where """ Creates a Profile with given string, returns the created profile. """ createProfile :: String -> [ProfileEntry] -> Resource """ CreateProfileEntry name style group. """ createProfileEntry :: String -> Resource -> Resource -> ProfileEntry """ CreateToplevelProfile model name entries. """ createToplevelProfile :: Model -> String -> [ProfileEntry] -> Resource """ """ activateProfileEntries :: Resource -> [ProfileEntry] -> () """ toggleProfileGroup runtimeProfile profileGroupName value Toggles the given `profileGroupName` in given `runtimeProfile` on or off depending on `value` Example: toggleProfileGroup runtimeProfile "Simulated 1" True """ toggleProfileGroup :: RuntimeProfile -> String -> Boolean -> () importJava "org.simantics.diagram.profile.ElementTranslation" where setProfileMonitorPosition :: Resource -> Double -> Double -> () resetProfileMonitorPosition :: Resource -> ()