]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.modeling/scl/Simantics/Profile.scl
Support for creating shared ontology dump to git
[simantics/platform.git] / bundles / org.simantics.modeling / scl / Simantics / Profile.scl
1 include "Simantics/Entity" hiding (nameOf)
2 include "Simantics/Model"
3 include "Simantics/Misc"
4
5 type ProfileEntry = Resource
6 type RuntimeProfile = Resource
7
8 importJava "org.simantics.modeling.ModelingUtils" where
9     """
10     Creates a Profile with given string, returns the created profile.
11     """
12     createProfile :: String -> [ProfileEntry] -> <WriteGraph> Resource
13     
14     """
15     CreateProfileEntry name style group.
16     """
17     createProfileEntry :: String -> Resource -> Resource -> <WriteGraph> ProfileEntry
18
19     """
20     CreateToplevelProfile model name entries.
21     """
22     createToplevelProfile :: Model -> String -> [ProfileEntry] -> <WriteGraph> Resource
23     
24     """
25     
26     """
27     activateProfileEntries :: Resource -> [ProfileEntry] -> <WriteGraph> ()
28     
29     """
30         toggleProfileGroup runtimeProfile profileGroupName value
31         
32     Toggles the given `profileGroupName` in given `runtimeProfile` on or off
33     depending on `value`
34     
35     Example:
36     
37         toggleProfileGroup runtimeProfile "Simulated 1" True
38     """
39     toggleProfileGroup :: RuntimeProfile -> String -> Boolean -> <WriteGraph> ()
40     
41 importJava "org.simantics.diagram.profile.ElementTranslation" where
42     setProfileMonitorPosition :: Resource -> Double -> Double -> <WriteGraph> ()
43     resetProfileMonitorPosition :: Resource -> <WriteGraph> ()