On Mon, Oct 5, 2009 at 7:59 AM, fantastic_ray <
v.vikas.rao@...> wrote:
> I'm writing a small plugin to add Scala Nature to a Java project, I'm pretty
> much trying to do the same thing the Scala plugin does in the
> scala.tools.eclipse.ToggleScalaNatureAction.scala class:
>
> private void addScalaNature(IProject project)
<snip/>
> But my code doesnt seem to add Scala Nature, the old nature remains... Can
> someone please tell me whats wrong?
I can see a couple of problems: first, you appear to be using the
Scala builder ID as the nature ID, and you're not removing any of the
existing natures, so whatever else happens "the old nature remains"
should be true.
It might also be helpful to report any caught CoreExceptions rather
than silently discarding them?
Can you let us know what you're working on?
Cheers,
Miles
--
Miles Sabin
tel: +44 (0)7813 944 528
skype: milessabin
http://www.chuusai.com/http://twitter.com/milessabin