Community
Participate
Working Groups
Xtend was moved to a separate project tools.xtend. We have to fix xcore dependencies to e.g. xtend2.lib
Created attachment 210505 [details] patch proposal Please review this patch. It fixes the build and some compile/xtend errors.
I'm curious why the explicit null pointer guards like this? It's not possible for eAllContents to be null so just letting a normal null pointer happen seems fine. if(eObject == null) { throw new NullPointerException("eObject") } return eObject.eAllContents.toIterable Otherwise it looks fine. As soon as you commit this, I'll need to set up my installation to use the next xtend packaging. Is that installable from somewhere already? I don't want to be stuck in a state where I can't work.
(In reply to comment #2) > I'm curious why the explicit null pointer guards like this? It's not possible > for eAllContents to be null so just letting a normal null pointer happen seems > fine. > > if(eObject == null) { > throw new NullPointerException("eObject") > } > return eObject.eAllContents.toIterable It's for more readable exception message, if you have an NPE in Line: xyz which then looks like this: return eObject.eAllContents.toIterable You can't see where it's exactly comes from eObject or eAllContents. But maybe you are right, the most people knows that eAllContents is nonnull. I will change it as you suggested. > > Otherwise it looks fine. As soon as you commit this, I'll need to set up my > installation to use the next xtend packaging. Is that installable from > somewhere already? I don't want to be stuck in a state where I can't work. The best way to install new stuff is to uninstall Xtext/Xtend first. Then install Xtext SDK and Xtend SDK (not Xtend2 SDK) from http://download.eclipse.org/modeling/tmf/xtext/updates/composite/nightly/
Pushed to master. Build: successful Tests: passed.
The changes are available in the M6 build.