- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
[netbeans] Netbeans Platform and Scala
Mon, 2009-12-28, 22:26
hi,
are there any existing / recommended projects that build on the netbeans platform (RCP) using scala? any tutorials?
thanks, -sciss-
Tue, 2009-12-29, 05:37
#2
Re: [netbeans] Netbeans Platform and Scala
I did this a few months ago for my 'Educational' App - Kojo. You can browse
the current source at:
http://code.google.com/p/kojo/
If I remember correctly, here are the steps that you need to follow:
- Create a Netbeans platform App using the Netbeans Wizard. This is the
Module Suite for your application
- Create a new Module within this Suite that will house your Scala code
- Swap out the build.xml within this new Module with a new one that knows
how to compile/build Scala (and Java) code (I looked at the Netbeans Scala
plugin to figure this one out)
- Add inter-mixed Scala and Java code within this module as needed (the Java
code could include stuff like Netbeans Wizard generated TopComponents etc)
Cheers,
- Lalit
PS. The build script for the Scala based module in my project needs
improvement. The main drawback right now is that it needs to do a clean
build (because the Netbeans build script clobbers previously generated
classfiles) every time I recompile the module; I have not been able to
summon the energy to try to figure this one out ;(. But it does get the job
done.
Sciss-3 wrote:
>
> that is to say, if i create a new "NetBeans Platform Application" project
> using the netbeans wizard, how can i transform that project to use scala
> instead of java? like the equivalent of adding the scala-nature to an
> eclipse project...? or do i go the opposite way, starting with a scala
> project and then somehow telling it that it becomes a platform app?
>
> thanks, -sciss-
>
>
that is to say, if i create a new "NetBeans Platform Application" project using the netbeans wizard, how can i transform that project to use scala instead of java? like the equivalent of adding the scala-nature to an eclipse project...? or do i go the opposite way, starting with a scala project and then somehow telling it that it becomes a platform app?
thanks, -sciss-
Am 28.12.2009 um 21:26 schrieb Sciss:
> hi,
>
> are there any existing / recommended projects that build on the netbeans platform (RCP) using scala? any tutorials?
>
> thanks, -sciss-