Did this occur when opening an existing Scala IDE project created with a different version of Eclipse? (Trying to consistently reproduce the issue you are seeing)
- Eric
On Monday, 16 April 2012 17:19:27 UTC+1, Rafał Krzewski wrote:
I've tried it but it did not work too well, unfortunately.The project builder seemed to work, but all scala files were opened using Java editor resulting in a flood of red squiggles.I've checked that Open With context menu had both Java editor and Scala editor options present, and Scala editor was selected.I've also checked 2.1.0-M1 with Eclipse 3.7.2 with the same workspace, and it opened the files in Scala edior without a problem.regards,
Rafał
java.lang.Integer
Workaround: Hidden in the plugin export dialog is an option to "use the class files compiled in the workspace" which circumvents this problem and simply packages you bin/* classes into a plugin.
The only problem is that this option only exists for plugins not for products - so in the case of a product (e.g. an editor application generated from an EMF model) you have to export the product with failures first and then each scala dependend plugin seperately (using the option mentioned above), replacing the corrupt ones in the product.
I've managed to follow this advice, but it seems a little awkward. I'd love to use Scala + Java with Eclipse RCP Applications, and not only Java... Help please!