From: kalajainen Date: Mon, 28 Jun 2010 15:39:56 +0000 (+0000) Subject: Databoard rename fix X-Git-Tag: simantics-1.2.0~194 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=c8006fc4c9d235656437160204d64d1d97cd6a7c;p=simantics%2Fsysdyn.git Databoard rename fix git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@16357 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements2/ComponentNameSynchronizer.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements2/ComponentNameSynchronizer.java index 29b118f3..a1f14b32 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements2/ComponentNameSynchronizer.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements2/ComponentNameSynchronizer.java @@ -11,7 +11,7 @@ *******************************************************************************/ package org.simantics.sysdyn.ui.elements2; -import org.simantics.databoard.binding.java.StringJavaBinding; +import org.simantics.databoard.binding.java.StringBindingDefault; import org.simantics.db.Builtins; import org.simantics.db.Resource; import org.simantics.db.Session; @@ -47,7 +47,7 @@ public class ComponentNameSynchronizer extends ResourceSynchronizer { Session session = context.get(GraphSynchronizationHints.SESSION); Builtins b = session.getBuiltins(); ModelingResources mr = session.getService(ModelingResources.class); - return queue.offer(new RelatedPropertyModification(object, mr.ElementToComponent, b.HasName, b.String, newValue, StringJavaBinding.INSTANCE), null); + return queue.offer(new RelatedPropertyModification(object, mr.ElementToComponent, b.HasName, b.String, newValue, StringBindingDefault.INSTANCE), null); } return false; } diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/NewModelHandler.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/NewModelHandler.java index 06c34c2a..6b1a9a25 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/NewModelHandler.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/NewModelHandler.java @@ -3,7 +3,7 @@ package org.simantics.sysdyn.ui.handlers; import org.eclipse.core.commands.AbstractHandler; import org.eclipse.core.commands.ExecutionEvent; import org.eclipse.core.commands.ExecutionException; -import org.simantics.databoard.binding.java.StringJavaBinding; +import org.simantics.databoard.binding.java.StringBindingDefault; import org.simantics.db.Builtins; import org.simantics.db.Resource; import org.simantics.db.WriteGraph; @@ -43,7 +43,7 @@ public class NewModelHandler extends AbstractHandler { Resource diagram = OrderedSetUtils.create(g, sr.ConfigurationDiagram); GraphLayer l = new GraphLayerUtil(g).createLayer(DiagramConstants.DEFAULT_LAYER_NAME, true); g.claim(diagram, mu.dr.HasLayer, l.getLayer()); - g.claimValue(diagram, b.HasName, "Diagrammi", StringJavaBinding.INSTANCE); + g.claimValue(diagram, b.HasName, "Diagrammi", StringBindingDefault.INSTANCE); Resource conf = GraphUtils.create2(g, sr.Configuration, diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProject.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProject.java index 8a4a8a0c..2b371a0d 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProject.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProject.java @@ -13,7 +13,7 @@ package org.simantics.sysdyn.ui.project; import org.eclipse.swt.widgets.Shell; import org.eclipse.ui.PartInitException; -import org.simantics.databoard.binding.java.StringJavaBinding; +import org.simantics.databoard.binding.java.StringBindingDefault; import org.simantics.db.Builtins; import org.simantics.db.Resource; import org.simantics.db.Session; @@ -98,7 +98,7 @@ public class SysdynProject extends AbstractProjectFeature { Resource diagram = OrderedSetUtils.create(g, sr.ConfigurationDiagram); GraphLayer l = new GraphLayerUtil(g).createLayer(DiagramConstants.DEFAULT_LAYER_NAME, true); g.claim(diagram, mu.dr.HasLayer, l.getLayer()); - g.claimValue(diagram, b.HasName, "Diagrammi", StringJavaBinding.INSTANCE); + g.claimValue(diagram, b.HasName, "Diagrammi", StringBindingDefault.INSTANCE); Resource conf = g.newResource(); diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/factories/DoublePropertyModifier.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/factories/DoublePropertyModifier.java index 7b800942..5a2f5a72 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/factories/DoublePropertyModifier.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/factories/DoublePropertyModifier.java @@ -1,7 +1,7 @@ package org.simantics.sysdyn.ui.properties.widgets.factories; import org.simantics.browsing.ui.swt.widgets.impl.TextModifyListenerImpl; -import org.simantics.databoard.binding.java.DoubleJavaBinding; +import org.simantics.databoard.binding.java.DoubleBindingDefault; import org.simantics.db.Resource; import org.simantics.db.WriteGraph; import org.simantics.db.exception.DatabaseException; @@ -17,7 +17,7 @@ public class DoublePropertyModifier extends TextModifyListenerImpl { @Override public void applyText(WriteGraph graph, Resource input, String text) throws DatabaseException { - graph.claimValue(input, graph.getResource(propertyURI), Double.parseDouble(text), DoubleJavaBinding.INSTANCE); + graph.claimValue(input, graph.getResource(propertyURI), Double.parseDouble(text), DoubleBindingDefault.INSTANCE); } }