Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2013-12-18 08:13:58 -0500
committerTom Schindl2013-12-18 08:13:58 -0500
commit0845456ea139fb6423eddabcd76f47a110c705a8 (patch)
tree49f84c5816ecad9c416aa6df446e2774b520b225
parent96c9ecab9c8ceb5f746f9f9c8d3c4585e3de7a74 (diff)
downloadorg.eclipse.efxclipse-0845456ea139fb6423eddabcd76f47a110c705a8.tar.gz
org.eclipse.efxclipse-0845456ea139fb6423eddabcd76f47a110c705a8.tar.xz
org.eclipse.efxclipse-0845456ea139fb6423eddabcd76f47a110c705a8.zip
fixed Xtend 2.5.0
-rwxr-xr-xbundles/tooling/org.eclipse.fx.ide.fxgraph/src/org/eclipse/fx/ide/fxgraph/converter/FXGraphConverter.xtend6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/tooling/org.eclipse.fx.ide.fxgraph/src/org/eclipse/fx/ide/fxgraph/converter/FXGraphConverter.xtend b/bundles/tooling/org.eclipse.fx.ide.fxgraph/src/org/eclipse/fx/ide/fxgraph/converter/FXGraphConverter.xtend
index 8275d4411..cd0cf7067 100755
--- a/bundles/tooling/org.eclipse.fx.ide.fxgraph/src/org/eclipse/fx/ide/fxgraph/converter/FXGraphConverter.xtend
+++ b/bundles/tooling/org.eclipse.fx.ide.fxgraph/src/org/eclipse/fx/ide/fxgraph/converter/FXGraphConverter.xtend
@@ -91,7 +91,7 @@ class FXGraphConverter {
«IF element.factory!=null»«element.type.simpleName» createdby «element.factory» {
«var Boolean comma = false»
«FOR FactoryValueElement e : element.values»
- «IF comma»,«ENDIF»«IF e instanceof Element»«generateElement(new CastHelper().castToElement(e))»«ELSE»«IF e instanceof SimpleValueProperty»«ENDIF»«new ValuePropertyFormatter(e).formattedValue»«ENDIF»
+ «IF comma»,«ENDIF»«IF e instanceof Element»«generateElement(e as Element)»«ELSE»«IF e instanceof SimpleValueProperty»«ENDIF»«new ValuePropertyFormatter(e).formattedValue»«ENDIF»
«val nix = comma = true»
«ENDFOR»
}«ELSE»
@@ -141,7 +141,7 @@ class FXGraphConverter {
«var Boolean comma = false»
«FOR ListValueElement e : list.value»
«IF comma»,«ENDIF»
- «IF e instanceof Element»«generateElement(new CastHelper().castToElement(e))»«ELSE»«new ValuePropertyFormatter(e).formattedValue»«ENDIF»
+ «IF e instanceof Element»«generateElement(e as Element)»«ELSE»«new ValuePropertyFormatter(e).formattedValue»«ENDIF»
«val nix = comma = true»
«ENDFOR»
]'''
@@ -154,7 +154,7 @@ class FXGraphConverter {
«var Boolean comma = false»
«FOR FactoryValueElement e : element.values»
«IF comma»,«ENDIF»
- «IF e instanceof Element»«generateElement(new CastHelper().castToElement(e))»
+ «IF e instanceof Element»«generateElement(e as Element)»
«ELSE»
«IF e instanceof SimpleValueProperty»«new ValuePropertyFormatter(e).formattedValue»«ENDIF»
«ENDIF»

Back to the top