This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Picking up Java refactors in Scala code

1 reply
Samuel Robert Reid
Joined: 2008-12-17,
User offline. Last seen 1 year 22 weeks ago.

Scala Tool Developers,

My team and I need to refactor some Java interfaces upon which several
of our Scala projects depend. I have seen that IntelliJ's plugin has
some support for this (e.g. renaming classes or methods in Java
correctly renames usages in Scala), but I haven't seen any support for
this in the Eclipse Scala Plugin using the normal Eclipse renaming
tools. Is there another way to do this in Eclipse, or is this currently
a missing feature? If it's a missing feature, are there plans for its
implementation for the Eclipse plugin? Are there other tools that
provide support for Java->Scala refactoring?

Thanks,
Sam Reid

milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
Re: Picking up Java refactors in Scala code

On Fri, Jul 3, 2009 at 5:42 PM, Samuel Robert Reid wrote:
> My team and I need to refactor some Java interfaces upon which several of
> our Scala projects depend.  I have seen that IntelliJ's plugin has some
> support for this (e.g. renaming classes or methods in Java correctly renames
> usages in Scala), but I haven't seen any support for this in the Eclipse
> Scala Plugin using the normal Eclipse renaming tools.  Is there another way
> to do this in Eclipse, or is this currently a missing feature?

It's a missing feature.

> If it's a missing feature, are there plans for its implementation for the Eclipse
> plugin?  Are there other tools that provide support for Java->Scala
> refactoring?

Very much so. Possibly for 2.8.0, but most likely in a release soon after that.

Cheers,

Miles

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland