]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Changed back to Redeclaration_replacedEnumeration_Inverse to avoid name conflicts...
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 25 Jan 2012 11:55:44 +0000 (11:55 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 25 Jan 2012 11:55:44 +0000 (11:55 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@24027 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ontology/graph.tg
org.simantics.sysdyn.ontology/graph/Sysdyn.pgraph
org.simantics.sysdyn.ontology/src/org/simantics/sysdyn/SysdynResource.java
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/nodes/EnumerationNode.java
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/exports/ExportModuleHandler.java
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/wizards/modules/WizardModulesExportPage.java
org.simantics.sysdyn/src/org/simantics/sysdyn/representation/Enumeration.java

index ee7e7de2b987f268df7a5bea00ee2c3f68028d0d..1e2dacfad1528742c3d431336efaaf899626c997 100644 (file)
Binary files a/org.simantics.sysdyn.ontology/graph.tg and b/org.simantics.sysdyn.ontology/graph.tg differ
index 750b47ebbbddc4bb0e544e39aa6067e25fc285b4..803aea0515d36b7d9a40722c546020235ccd243f 100644 (file)
@@ -230,9 +230,9 @@ SYSDYN.EnumerationIndex <T L0.Entity
         
 SYSDYN.Redeclaration <T L0.Entity
     >-- SYSDYN.Redeclaration.replacedEnumeration --> SYSDYN.Enumeration <R L0.IsRelatedTo : L0.TotalFunction
-        L0.InverseOf SYSDYN.Redeclaration.replacedIn <R L0.DependsOn : L0.FunctionalRelation 
+        L0.InverseOf SYSDYN.Redeclaration.replacedEnumeration.Inverse <R L0.DependsOn : L0.FunctionalRelation 
     >-- SYSDYN.Redeclaration.replacingEnumeration --> SYSDYN.Enumeration <R L0.IsRelatedTo : L0.TotalFunction    
-        L0.InverseOf SYSDYN.Redeclaration.replacesEnumerationIn <R L0.DependsOn : L0.FunctionalRelation 
+        L0.InverseOf SYSDYN.Redeclaration.replacingEnumeration.Inverse <R L0.DependsOn : L0.FunctionalRelation 
             
 //#####################################################################
 // Functions
index f2ec58c33d3066f0f291b4f8e806e6ebdf451405..5ebf3f1de3b7541f1a41b76a89c1982eae5f69b2 100644 (file)
@@ -201,9 +201,9 @@ public class SysdynResource {
     public final Resource ProjectBrowseContext_SharedFunctionsFolder;\r
     public final Resource Redeclaration;\r
     public final Resource Redeclaration_replacedEnumeration;\r
-    public final Resource Redeclaration_replacedIn;\r
-    public final Resource Redeclaration_replacesEnumerationIn;\r
+    public final Resource Redeclaration_replacedEnumeration_Inverse;\r
     public final Resource Redeclaration_replacingEnumeration;\r
+    public final Resource Redeclaration_replacingEnumeration_Inverse;\r
     public final Resource Result;\r
     public final Resource Result_parameterFile;\r
     public final Resource Result_parameterFile_Inverse;\r
@@ -497,9 +497,9 @@ public class SysdynResource {
         public static final String ProjectBrowseContext_SharedFunctionsFolder = "http://www.simantics.org/Sysdyn-1.1/ProjectBrowseContext/SharedFunctionsFolder";\r
         public static final String Redeclaration = "http://www.simantics.org/Sysdyn-1.1/Redeclaration";\r
         public static final String Redeclaration_replacedEnumeration = "http://www.simantics.org/Sysdyn-1.1/Redeclaration/replacedEnumeration";\r
-        public static final String Redeclaration_replacedIn = "http://www.simantics.org/Sysdyn-1.1/Redeclaration/replacedIn";\r
-        public static final String Redeclaration_replacesEnumerationIn = "http://www.simantics.org/Sysdyn-1.1/Redeclaration/replacesEnumerationIn";\r
+        public static final String Redeclaration_replacedEnumeration_Inverse = "http://www.simantics.org/Sysdyn-1.1/Redeclaration/replacedEnumeration/Inverse";\r
         public static final String Redeclaration_replacingEnumeration = "http://www.simantics.org/Sysdyn-1.1/Redeclaration/replacingEnumeration";\r
+        public static final String Redeclaration_replacingEnumeration_Inverse = "http://www.simantics.org/Sysdyn-1.1/Redeclaration/replacingEnumeration/Inverse";\r
         public static final String Result = "http://www.simantics.org/Sysdyn-1.1/Result";\r
         public static final String Result_parameterFile = "http://www.simantics.org/Sysdyn-1.1/Result/parameterFile";\r
         public static final String Result_parameterFile_Inverse = "http://www.simantics.org/Sysdyn-1.1/Result/parameterFile/Inverse";\r
@@ -803,9 +803,9 @@ public class SysdynResource {
         ProjectBrowseContext_SharedFunctionsFolder = getResourceOrNull(graph, URIs.ProjectBrowseContext_SharedFunctionsFolder);\r
         Redeclaration = getResourceOrNull(graph, URIs.Redeclaration);\r
         Redeclaration_replacedEnumeration = getResourceOrNull(graph, URIs.Redeclaration_replacedEnumeration);\r
-        Redeclaration_replacedIn = getResourceOrNull(graph, URIs.Redeclaration_replacedIn);\r
-        Redeclaration_replacesEnumerationIn = getResourceOrNull(graph, URIs.Redeclaration_replacesEnumerationIn);\r
+        Redeclaration_replacedEnumeration_Inverse = getResourceOrNull(graph, URIs.Redeclaration_replacedEnumeration_Inverse);\r
         Redeclaration_replacingEnumeration = getResourceOrNull(graph, URIs.Redeclaration_replacingEnumeration);\r
+        Redeclaration_replacingEnumeration_Inverse = getResourceOrNull(graph, URIs.Redeclaration_replacingEnumeration_Inverse);\r
         Result = getResourceOrNull(graph, URIs.Result);\r
         Result_parameterFile = getResourceOrNull(graph, URIs.Result_parameterFile);\r
         Result_parameterFile_Inverse = getResourceOrNull(graph, URIs.Result_parameterFile_Inverse);\r
index 6c370b0c1f3eb283e7f44e21a64150701e93fad0..4194c0b022305cdb4e6d2422ee84e9eb8f3a9ba3 100644 (file)
@@ -31,11 +31,11 @@ public class EnumerationNode extends VariableNode<Resource> implements IDeletabl
                 @Override\r
                 public void perform(WriteGraph graph) throws DatabaseException, CancelTransactionException {\r
                     SysdynResource sr = SysdynResource.getInstance(graph);\r
-                    for(Resource redeclaration : graph.getObjects(data, sr.Redeclaration_replacedIn)) {\r
+                    for(Resource redeclaration : graph.getObjects(data, sr.Redeclaration_replacedEnumeration_Inverse)) {\r
                        graph.deny(redeclaration, sr.Module_redeclaration_Inverse);\r
                     }\r
                     \r
-                    for(Resource redeclaration : graph.getObjects(data, sr.Redeclaration_replacedIn)) {\r
+                    for(Resource redeclaration : graph.getObjects(data, sr.Redeclaration_replacedEnumeration_Inverse)) {\r
                        graph.deny(redeclaration, sr.Module_redeclaration_Inverse);\r
                     }\r
                     \r
index b7ca5c457f04a4b7278b493ae6b8acac7d0db832..7b12325e14b17408ecf437ab3ba6e9d5fad37db7 100644 (file)
@@ -235,21 +235,21 @@ public class ExportModuleHandler extends AbstractHandler {
                        ArrayList<Pair<Resource, Resource>> replacements = new ArrayList<Pair<Resource, Resource>>();\r
 \r
                        for(Resource enumeration : graph.syncRequest(new ObjectsWithType(configuration, l0.ConsistsOf, sr.Enumeration))) {\r
-                               if(graph.hasStatement(enumeration, sr.Redeclaration_replacedIn)) {\r
-                                       for(Resource replacement : graph.getObjects(enumeration, sr.Redeclaration_replacedIn)) {\r
+                               if(graph.hasStatement(enumeration, sr.Redeclaration_replacedEnumeration_Inverse)) {\r
+                                       for(Resource replacement : graph.getObjects(enumeration, sr.Redeclaration_replacedEnumeration_Inverse)) {\r
                                                replacements.add(new Pair<Resource, Resource>(enumeration, replacement));\r
                                        }\r
                                }\r
                        }\r
                        \r
                        for(Pair<Resource,Resource> replacement : replacements)\r
-                               graph.deny(replacement.first, sr.Redeclaration_replacedIn, replacement.second);\r
+                               graph.deny(replacement.first, sr.Redeclaration_replacedEnumeration_Inverse, replacement.second);\r
                        \r
                        TransferableGraph1 tg = graph.syncRequest(new TransferableGraphRequest2(roots, component));\r
                        Files.createFile(new File(path), Bindings.getBindingUnchecked(TransferableGraph1.class), tg);\r
                        \r
                        for(Pair<Resource,Resource> replacement : replacements)\r
-                               graph.claim(replacement.first, sr.Redeclaration_replacedIn, replacement.second);\r
+                               graph.claim(replacement.first, sr.Redeclaration_replacedEnumeration_Inverse, replacement.second);\r
 \r
                } catch (RuntimeBindingConstructionException e) {\r
                        e.printStackTrace();\r
index 91d6036d6a0eeae25951031722e852068a74392a..d14135a9a039f24eff5638f6fa6c555359ee6340 100644 (file)
@@ -392,21 +392,21 @@ public class WizardModulesExportPage extends WizardPage {
                        ArrayList<Pair<Resource, Resource>> replacements = new ArrayList<Pair<Resource, Resource>>();\r
 \r
                        for(Resource enumeration : graph.syncRequest(new ObjectsWithType(configuration, l0.ConsistsOf, sr.Enumeration))) {\r
-                               if(graph.hasStatement(enumeration, sr.Redeclaration_replacedIn)) {\r
-                                       for(Resource replacement : graph.getObjects(enumeration, sr.Redeclaration_replacedIn)) {\r
+                               if(graph.hasStatement(enumeration, sr.Redeclaration_replacedEnumeration_Inverse)) {\r
+                                       for(Resource replacement : graph.getObjects(enumeration, sr.Redeclaration_replacedEnumeration_Inverse)) {\r
                                                replacements.add(new Pair<Resource, Resource>(enumeration, replacement));\r
                                        }\r
                                }\r
                        }\r
                        \r
                        for(Pair<Resource,Resource> replacement : replacements)\r
-                               graph.deny(replacement.first, sr.Redeclaration_replacedIn, replacement.second);\r
+                               graph.deny(replacement.first, sr.Redeclaration_replacedEnumeration_Inverse, replacement.second);\r
                        \r
                        TransferableGraph1 tg = graph.syncRequest(new TransferableGraphRequest2(roots, component));\r
                        Files.createFile(new File(path), Bindings.getBindingUnchecked(TransferableGraph1.class), tg);\r
                        \r
                        for(Pair<Resource,Resource> replacement : replacements)\r
-                               graph.claim(replacement.first, sr.Redeclaration_replacedIn, replacement.second);\r
+                               graph.claim(replacement.first, sr.Redeclaration_replacedEnumeration_Inverse, replacement.second);\r
 \r
                } catch (RuntimeBindingConstructionException e) {\r
                        e.printStackTrace();\r
index c8a49888f7de6154246668a905cc1a029d3365ed..51996a197f2657531652f7f46537e75944532a1f 100644 (file)
@@ -30,7 +30,7 @@ public class Enumeration extends Variable {
     private Boolean isReplaceable;\r
     \r
     @RelatedElements(\r
-            value = SysdynResource.URIs.Redeclaration_replacedIn,\r
+            value = SysdynResource.URIs.Redeclaration_replacedEnumeration_Inverse,\r
             composition = true)\r
             private ArrayList<Redeclaration> redeclarations = new ArrayList<Redeclaration>();\r
 \r