Commit 68551e1a authored by Reiner Jung's avatar Reiner Jung

Minor fixes.

parent 93b319c2
......@@ -5,7 +5,6 @@
<classpathentry kind="src" path="xtend-gen"/>
<classpathentry kind="src" path="model"/>
<classpathentry kind="src" path="model-gen"/>
<classpathentry kind="src" path="xsemantics-gen"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="bin"/>
......
......@@ -16,8 +16,7 @@ Require-Bundle: org.eclipse.xtext;visibility:=reexport,
org.eclipse.emf.ecore,
org.eclipse.emf.common,
org.antlr.runtime,
org.eclipse.xtext.common.types,
it.xsemantics.runtime;bundle-version="1.2.0"
org.eclipse.xtext.common.types
Import-Package: org.apache.log4j,
org.eclipse.xtext.xbase.lib
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
......
......@@ -57,7 +57,7 @@ class UnitExpressionGenerator {
«FOR subunit : unit.units SEPARATOR ' '»«subunit.composeUnitString»«ENDFOR»'''
def private dispatch String composeUnitString(SIUnit unit) '''
«unit.prefix.decode»«unit.kind.decode»«IF unit.dimension != null»^«unit.dimension»«ENDIF»'''
«unit.prefix.decode»«unit.kind.decode»«IF unit.dimension != 0 »^«unit.dimension»«ENDIF»'''
/**
* convert base units to its symbols (http://en.wikipedia.org/wiki/SI_unit)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment