Mittwoch, 28. November 2007

Move support finished

Today I finished move support.
There were some smaller enhancements that needed to be done.
But now everthing seems to work fine.
I think this will be the feature-freeze for the next upcoming moreUnit-Release.

Dienstag, 27. November 2007

Misery of move - SOLVED

Today I solved the problem of missing imports and package declaration.
The following method call is the reason

This method instantiates the wrong MoveProcessor (or in more detail the wrong Policy).

is the solution :-)

Montag, 19. November 2007

Misery of move

Today I recognized that the move refactoring doesn't work correctly. Imports and package declarations are missing :-(
I'm wondering how long this will take to solve.
Why aren't there any examples and no documentation :-(

Sonntag, 18. November 2007

Magic of move

Today is move refactoring day ;-)
After a long time, today I have implemented move refactoring via descriptors.
The NPE I had on Friday was a bug which is fixed in 3.4 M 3.
The last thing I have to do now is to get the correct source folder for the refactoring.

Freitag, 16. November 2007

It's working!!!!

After lots of disappointing hours I have made a great progress tonight.
Rename refactorings work now with descriptors.
The problem was the following line:

If I don't get the compilation unit of the type the refactoring processor does not get initialized and the checkFinalConditions crashed with a NPE.

After this I tried to implement the move refactoring.
The move seems not to work fine yet:

at org.eclipse.jdt.internal.corext.refactoring.reorg.DeleteChangeCreator.createDeleteChange(
at org.eclipse.jdt.internal.corext.refactoring.reorg.ReorgPolicyFactory$MoveSubCuElementsPolicy.createChange(
at org.eclipse.jdt.internal.corext.refactoring.reorg.JavaMoveProcessor.createChange(
at org.eclipse.ltk.core.refactoring.participants.ProcessorBasedRefactoring.createChange(
at org.moreunit.refactoring.MoveClassParticipant.createChange(
at org.eclipse.ltk.core.refactoring.participants.ProcessorBasedRefactoring.createChange(
at org.eclipse.jface.operation.ModalContext$

But some more time for coding and this will be solved hopefully.