]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Databoard rename fix
authorkalajainen <kalajainen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 28 Jun 2010 15:39:56 +0000 (15:39 +0000)
committerkalajainen <kalajainen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 28 Jun 2010 15:39:56 +0000 (15:39 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@16357 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements2/ComponentNameSynchronizer.java
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/NewModelHandler.java
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProject.java
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/factories/DoublePropertyModifier.java

index 29b118f35dd859af09e8fd5f1a189f06db288da4..a1f14b321907d8722bab827998090b5ed6c75db4 100644 (file)
@@ -11,7 +11,7 @@
  *******************************************************************************/\r
 package org.simantics.sysdyn.ui.elements2;\r
 \r
-import org.simantics.databoard.binding.java.StringJavaBinding;\r
+import org.simantics.databoard.binding.java.StringBindingDefault;\r
 import org.simantics.db.Builtins;\r
 import org.simantics.db.Resource;\r
 import org.simantics.db.Session;\r
@@ -47,7 +47,7 @@ public class ComponentNameSynchronizer extends ResourceSynchronizer {
             Session session = context.get(GraphSynchronizationHints.SESSION);\r
             Builtins b = session.getBuiltins();\r
             ModelingResources mr = session.getService(ModelingResources.class);\r
-            return queue.offer(new RelatedPropertyModification(object, mr.ElementToComponent, b.HasName, b.String, newValue, StringJavaBinding.INSTANCE), null);\r
+            return queue.offer(new RelatedPropertyModification(object, mr.ElementToComponent, b.HasName, b.String, newValue, StringBindingDefault.INSTANCE), null);\r
         }\r
         return false;\r
     }\r
index 06c34c2ae5531e6e377e3673a4ad8b9d8f333a6d..6b1a9a2522634f20345379953360306f53716f7d 100644 (file)
@@ -3,7 +3,7 @@ package org.simantics.sysdyn.ui.handlers;
 import org.eclipse.core.commands.AbstractHandler;\r
 import org.eclipse.core.commands.ExecutionEvent;\r
 import org.eclipse.core.commands.ExecutionException; \r
-import org.simantics.databoard.binding.java.StringJavaBinding;\r
+import org.simantics.databoard.binding.java.StringBindingDefault;\r
 import org.simantics.db.Builtins;\r
 import org.simantics.db.Resource;\r
 import org.simantics.db.WriteGraph;\r
@@ -43,7 +43,7 @@ public class NewModelHandler extends AbstractHandler {
                 Resource diagram = OrderedSetUtils.create(g, sr.ConfigurationDiagram);\r
                 GraphLayer l = new GraphLayerUtil(g).createLayer(DiagramConstants.DEFAULT_LAYER_NAME, true);\r
                 g.claim(diagram, mu.dr.HasLayer, l.getLayer());\r
-                g.claimValue(diagram, b.HasName, "Diagrammi", StringJavaBinding.INSTANCE);\r
+                g.claimValue(diagram, b.HasName, "Diagrammi", StringBindingDefault.INSTANCE);\r
                 \r
                 Resource conf = GraphUtils.create2(g, \r
                         sr.Configuration,\r
index 8a4a8a0ce393106f8d500449f7c9b34dd2e4d8d9..2b371a0d1dceb9d5d82e7ad3d63922df10646759 100644 (file)
@@ -13,7 +13,7 @@ package org.simantics.sysdyn.ui.project;
 \r
 import org.eclipse.swt.widgets.Shell;\r
 import org.eclipse.ui.PartInitException;\r
-import org.simantics.databoard.binding.java.StringJavaBinding;\r
+import org.simantics.databoard.binding.java.StringBindingDefault;\r
 import org.simantics.db.Builtins;\r
 import org.simantics.db.Resource;\r
 import org.simantics.db.Session;\r
@@ -98,7 +98,7 @@ public class SysdynProject extends AbstractProjectFeature {
                 Resource diagram = OrderedSetUtils.create(g, sr.ConfigurationDiagram);\r
                 GraphLayer l = new GraphLayerUtil(g).createLayer(DiagramConstants.DEFAULT_LAYER_NAME, true);\r
                 g.claim(diagram, mu.dr.HasLayer, l.getLayer());\r
-                g.claimValue(diagram, b.HasName, "Diagrammi", StringJavaBinding.INSTANCE);\r
+                g.claimValue(diagram, b.HasName, "Diagrammi", StringBindingDefault.INSTANCE);\r
 \r
 \r
                 Resource conf = g.newResource();\r
index 7b8009426f0c8073885945683cc58784f6ad7ce6..5a2f5a72f7f796a632aec61dab93bb1ea34b297b 100644 (file)
@@ -1,7 +1,7 @@
 package org.simantics.sysdyn.ui.properties.widgets.factories;\r
 \r
 import org.simantics.browsing.ui.swt.widgets.impl.TextModifyListenerImpl;\r
-import org.simantics.databoard.binding.java.DoubleJavaBinding;\r
+import org.simantics.databoard.binding.java.DoubleBindingDefault;\r
 import org.simantics.db.Resource;\r
 import org.simantics.db.WriteGraph;\r
 import org.simantics.db.exception.DatabaseException;\r
@@ -17,7 +17,7 @@ public class DoublePropertyModifier extends TextModifyListenerImpl<Resource> {
 \r
     @Override\r
     public void applyText(WriteGraph graph, Resource input, String text) throws DatabaseException {\r
-        graph.claimValue(input, graph.getResource(propertyURI), Double.parseDouble(text), DoubleJavaBinding.INSTANCE);\r
+        graph.claimValue(input, graph.getResource(propertyURI), Double.parseDouble(text), DoubleBindingDefault.INSTANCE);\r
     }\r
 \r
 }\r