Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-ui-dev] Specify the order of refactoring participants

Hi Gunnar,

Have a look at the classes
'org.eclipse.jdt.core.refactoring.IJavaElementMapper' and
'org.eclipse.ltk.core.refactoring.IResourceMapper' on how to get the
updated state of the Java Model after the refactoring processor has been
executed. Refactoring participants are supposed to use this mechanism to
define their input.

Cheers,

Tobias

Montag, 17. April 2006 23:42
To: jdt-ui-dev@xxxxxxxxxxx
cc:
From: Gunnar Wagenknecht <gunnar@xxxxxxxxxxxxxxx>
Subject: [jdt-ui-dev] Specify the order of refactoring participants


Hi!

I wrote a refactoring rename participant that adds an annotation and
it's import statement to a type that is renamed. Unfortunately, the
rename participant is executed _after_ the the file was renamed on disc.
Thus, I end up having to files on disc after refactoring. The new one
without my modifications and the old one with my modifications.

Additionally, the Java Model seems to be in a stale state because the
Package Explorer only contains the new type but not the old one. After a
restart it shows both types.

Any ideas? Do I have access to the new type in
MyRenameParticipant#createChange?

Cu, Gunnar


--
Gunnar Wagenknecht
gunnar@xxxxxxxxxxxxxxx
http://wagenknecht.org/
_______________________________________________
jdt-ui-dev mailing list
jdt-ui-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jdt-ui-dev



Back to the top