File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/main/java/de/itemis/xtend/auto/gwt Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,13 @@ class JsNativeProcessor extends AbstractMethodProcessor {
58
58
val startIndex = contents. substring(0 , markerStart). lastIndexOf(' {' )
59
59
val endIndex = contents. substring(markerStart). indexOf(' }' ) + markerStart
60
60
val jsCode = annotatedMethod. body. toString. trimTripleQuotes
61
- path. contents = contents. substring(0 , startIndex)+ " /*-{" + jsCode+ " }-*/;" + contents. substring(endIndex+ 1 )
61
+
62
+ val newContents = contents. substring(0 , startIndex) + " /*-{" + jsCode + " }-*/;" +
63
+ contents. substring(endIndex + 1 )
64
+ path. contents = newContents
65
+ do {
66
+ Thread . sleep(100 );
67
+ } while (path. contents. toString != newContents)
62
68
}
63
69
64
70
private def String trimTripleQuotes (String s ) {
You can’t perform that action at this time.
0 commit comments