Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » JDT Refactoring Participants?
JDT Refactoring Participants? [message #253149] Sun, 04 May 2008 19:26 Go to next message
Eclipse UserFriend
Hello,

I was wondering if there is a way to add participants to the JDT specific
refactorings similar to the mechanism available for the standard ones in
the LTK? I'm working on a utility that maintains an index of items
associated with not only the base resource/file but also items that are
associated with the members and functions of classes. In the case of a
function/member rename, i'd need to update the name in the index. Any
advise or direction would be appreciated.

Trip
Re: JDT Refactoring Participants? [message #253174 is a reply to message #253149] Mon, 05 May 2008 12:39 Go to previous message
Eclipse UserFriend
> I was wondering if there is a way to add participants to the JDT
> specific refactorings similar to the mechanism available for the
> standard ones in the LTK?

See IRefactoringProcessorIds for supported participants.

An example can be found in org.eclipse.jdt.ui/plugin.xml:

<extension
point="org.eclipse.ltk.core.refactoring.renameParticipants" >
<renameParticipant

class=" org.eclipse.jdt.internal.corext.refactoring.nls.NLSAccessorF ieldRenameParticipant "
id="org.eclipse.jdt.ui.NLSFieldRenameParticipant"
name="%Refactoring.NLSFieldRenameParticipant">
<enablement>
<with variable="affectedNatures">
<iterate operator="or">
<equals value="org.eclipse.jdt.core.javanature"/>
</iterate>
</with>
<with variable="element">
<instanceof value="org.eclipse.jdt.core.IField"/>
</with>
</enablement>
</renameParticipant>
</extension>

HTH,
Markus
Previous Topic:RenameParticipant (for refactoring) -- can I remove edits?
Next Topic:Project Creation Requires Restart
Goto Forum:
  


Current Time: Tue May 13 15:16:19 EDT 2025

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

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

Back to the top