X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.layer0.utils%2Fsrc%2Forg%2Fsimantics%2Flayer0%2Futils%2Frepresentation%2Frepresentations%2FDefaultStringAdapter2.java;h=c1643935138f20a04570afa42a55cfbb9b1291b9;hp=12eb9b29c85410d993a24f7cd9315b3893dc0fc6;hb=refs%2Fchanges%2F38%2F238%2F2;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.layer0.utils/src/org/simantics/layer0/utils/representation/representations/DefaultStringAdapter2.java b/bundles/org.simantics.layer0.utils/src/org/simantics/layer0/utils/representation/representations/DefaultStringAdapter2.java index 12eb9b29c..c16439351 100644 --- a/bundles/org.simantics.layer0.utils/src/org/simantics/layer0/utils/representation/representations/DefaultStringAdapter2.java +++ b/bundles/org.simantics.layer0.utils/src/org/simantics/layer0/utils/representation/representations/DefaultStringAdapter2.java @@ -1,30 +1,30 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.layer0.utils.representation.representations; - -import org.simantics.db.ReadGraph; -import org.simantics.db.Resource; -import org.simantics.db.common.adaption.SimpleAdapter; -import org.simantics.db.exception.BindingException; -import org.simantics.db.exception.ServiceException; -import org.simantics.db.exception.ValidationException; - -public class DefaultStringAdapter2 extends SimpleAdapter { - - @Override - public String adapt(ReadGraph graph, Resource resource) throws ValidationException, ServiceException, BindingException { - String value = DefaultStringRepresentation2.fullValueToString(graph, resource); - //System.out.println("DefaultStringAdapter2(" + resource + ")=" + value); - return value; - } - -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.layer0.utils.representation.representations; + +import org.simantics.db.ReadGraph; +import org.simantics.db.Resource; +import org.simantics.db.common.adaption.SimpleAdapter; +import org.simantics.db.exception.BindingException; +import org.simantics.db.exception.ServiceException; +import org.simantics.db.exception.ValidationException; + +public class DefaultStringAdapter2 extends SimpleAdapter { + + @Override + public String adapt(ReadGraph graph, Resource resource) throws ValidationException, ServiceException, BindingException { + String value = DefaultStringRepresentation2.fullValueToString(graph, resource); + //System.out.println("DefaultStringAdapter2(" + resource + ")=" + value); + return value; + } + +}