[Subclipse-users] Extract Interface scenario: Subversion thinks it should delete my interface
From: Daniel Meyer <Daniel.Meyer_at_OntarioSystems.com>
Date: Mon, 13 Oct 2008 10:12:21 -0400
There is a refactoring I do in Eclipse (with Subclipse) where I feel like I'm fighting Subversion to accomplish what I'm trying to do, and I'm wondering if there's a better way to do it.
Suppose I have a class named Foo that does not implement an interface; it just does the work itself. Now after Foo.java has been committed to Subversion, I decide I want Foo to be an interface and move the work from Foo to FooImpl. To accomplish this change, I:
At this point, Foo.java's icon shows red X, signifying that it will be deleted when I commit the project to Subversion. What I would like is to be able to commit my Foo.java renamed to FooImpl.java, AND my new Foo.java interface. I would also like the revision history of the former Foo.java to be attached to it under its new name at FooImpl.java.
I get the same results when I press Shift+Alt+T, N instead of F2 to rename Foo class to FooImpl.
I can get to a state where I can commit everything by performing the following on Foo.java before committing:
But is there a more graceful way of accomplishing this?
-Daniel-
Attention: This message and all attachments are private and may contain
|
This is an archived mail posted to the Subclipse Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.