[refactoring] questions before implementing my own refactor [message #251630] |
Mon, 25 February 2008 20:26 |
Eclipse User |
|
|
|
Hi, all;
I'm implementing an editor that edits xml-formated configuration files
which binding with a compilationunit respectively, now that there're two
editors: Java Source Editor, and my Xml Editor, so there're two direction of
refactoring:
1. trigger refactoring in java editor, that is JAVA to NON-JAVA refactoring
1.1. refactoring type/package takes my configuration file as
participant by extending org.eclipse.ltk.core.refactoring.renameParticipants
1.2 refactoring fields, how can I take my configuration files as the
participants?
2. trigger refactoring in xml editor, that is NON-JAVA to JAVA refactoring
2.1 refactoring attribute value that maps to the java type, how can I
take java refactor as participant? e.g. <bean class="a.b.c.myclass"> while
attribute "class" value "a.b.c.myclass" maps to the java type a.b.c.myclass.
2.2 refactoring attribute name that maps to the java type's fields,
how can I take java refactor as participant?
Any clues? Thanks in advance.
Thanks & Best Regards!
Nick
|
|
|
Powered by
FUDForum. Page generated in 0.02842 seconds