Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How to map info from RefactoringDescriptor to corresponding IJavaElement?
How to map info from RefactoringDescriptor to corresponding IJavaElement? [message #534199] Tue, 18 May 2010 06:48 Go to next message
Eclipse UserFriend
Hi,

I'm doing a UML-like class diagram editor for Eclipse. To keep the editor view in sync with the visualized Java Elements, I need to listen to changes to Refactorings in my controller.

I do this implementing the IRefactoringListener. Now I'm a bit stuck, since I do not manage to map the information stored in the Descriptor (currently I'm looking at the RenameResourceDescriptor) to my model. Here is what I have:

  1. Descriptor

    • Project name (String)
    • New name (String)
    • Resource Path (IPath)

  2. Model

    • Fully qualified name of visualized type (String)



First of all: How can I check that this refactoring process will change any of the visualized elements (i.e. a type or a method). Closely related question: Hhow to map between the two representations to update my model elements?

Thanks a lot for your help,
Chris

[Updated on: Tue, 18 May 2010 08:36] by Moderator

Re: How to map info from RefactoringDescriptor to corresponding IJavaElement? [message #534233 is a reply to message #534199] Tue, 18 May 2010 08:41 Go to previous message
Eclipse UserFriend
The problem even goes further, as the RefactoringDescriptor I get from renaming a Java-File does not produce a RenameResourceDescriptor in the event that is handed to executionNotification. Sad

Help pls.
Chris
Previous Topic:How to print a whole big Tree widget
Next Topic:How to get the user library and its jars defined in PreferencePage with code?
Goto Forum:
  


Current Time: Thu Mar 27 02:37:26 EDT 2025

Powered by FUDForum. Page generated in 0.03820 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top