]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.document.base.ontology/graph/Properties.pgraph
Fixing wrong value types
[simantics/platform.git] / bundles / org.simantics.document.base.ontology / graph / Properties.pgraph
index 9093ebe9476de4d0364bec1059bc6d861ec08bf3..d502e3d2f2e860ed22dbdc56340c9e44954a643d 100644 (file)
@@ -5,7 +5,9 @@ SEL = <http://www.simantics.org/SelectionView-1.2>
 
 PROPERTIES = DOC.Properties : L0.Library
   @L0.new
-    
+
+DOC.Document.definesAttributeRelation --> DOC.Document.AttributeRelation <R L0.IsRelatedTo : L0.FunctionalRelation
+
 DOC.Document.AttributeRelation <T L0.Relation
   @L0.assert L0.domainProperties L0.Functions.standardPropertyDomainProperties
   @L0.assert L0.domainChildren L0.Functions.standardPropertyDomainChildren
@@ -48,53 +50,56 @@ PROPERTIES.experiment <R L0.HasProperty : L0.FunctionalRelation
 
 PROPERTIES.model <R L0.HasProperty : L0.FunctionalRelation
     ==> "Variable"
-    
+
+PROPERTIES.primitiveProperties <R L0.HasProperty : L0.FunctionalRelation
+    ==> "String"
+
 PROPERTIES.exists
-    @defAttribute L0.Boolean    
+    @defAttribute L0.Value
     L0.RequiresValueType "Boolean" 
 
 PROPERTIES.pathExists
-    @defAttribute L0.Boolean    
+    @defAttribute L0.Value
     L0.RequiresValueType "Boolean" 
 
 PROPERTIES.commands
-    @defAttribute L0.String    
-    L0.RequiresValueType "String" 
+    @defAttribute L0.Value
+    L0.RequiresValueType "[Command]"
     L0.HasLabel "Commands"
     
 PROPERTIES.dataDefinitions
-    @defAttribute L0.String    
-    L0.RequiresValueType "String" 
+    @defAttribute L0.Value
+    L0.RequiresValueType "[DataDefinition]"
     L0.HasLabel "Data Definitions"
 
 PROPERTIES.SCLFunction : PROPERTIES.ParameterType
     @PROPERTIES.defAttribute L0.Value
-    ==> "EventHandler"   
+    ==> "AbstractEventHandler"   
     L0.HasLabel "SCL Function"
     
 PROPERTIES.target : PROPERTIES.ParameterType
-    @PROPERTIES.defAttribute L0.String    
+    @PROPERTIES.defAttribute L0.Value
     L0.RequiresValueType "String"
     L0.HasLabel "Target"
 
 PROPERTIES.hyperlinkTarget : PROPERTIES.ParameterType
-    @PROPERTIES.defAttribute L0.String    
+    @PROPERTIES.defAttribute L0.Value
     L0.RequiresValueType "String"
     L0.HasLabel "Target type (optional)"
 
 PROPERTIES.targets : PROPERTIES.ParameterType
-    @PROPERTIES.defAttribute L0.StringArray  
-    L0.RequiresValueType "Array String"
+    @PROPERTIES.defAttribute L0.Value
+    L0.RequiresValueType "[String]"
     L0.HasLabel "Targets"
     
 PROPERTIES.source : PROPERTIES.ParameterType
-    @PROPERTIES.defAttribute L0.String    
+    @PROPERTIES.defAttribute L0.Value
     L0.RequiresValueType "String"
     L0.HasLabel "Source"
 
 PROPERTIES.sources : PROPERTIES.ParameterType
-    @PROPERTIES.defAttribute L0.StringArray  
-    L0.RequiresValueType "Array String"
+    @PROPERTIES.defAttribute L0.Value
+    L0.RequiresValueType "[String]"
     L0.HasLabel "Sources"
 
 PROPERTIES.ParameterType <T SEL.GenericParameterType