JDT: How to retrieve the correct IJavaElement to a corresponding RefactoringDescriptor?
Posted
by Chris
on Stack Overflow
See other posts from Stack Overflow
or by Chris
Published on 2010-05-18T10:27:42Z
Indexed on
2010/05/18
10:30 UTC
Read the original article
Hit count: 317
I implement the IRefactoringExecutionListener interface in an Eclipse plug-in to get notified when the user refactors his code, so I can update a visual editor displaying corresponding UML Boxes accordingly.
Now I have a RefactoringDescriptor and cannot manage to map it's information (project name as String, new name as String and resource path as IPath) to my model. My model is basically a Hashmap in which fully qualified names (String) of types are mapped instances of IJavaElement, or more precisely: IType.
How can I "convert" between the two representations so I can update my model?
Regards,
Chris
© Stack Overflow or respective owner