xtext rename participant [message #1143511] |
Fri, 18 October 2013 08:27 |
Benoit Ries Messages: 86 Registered: May 2013 |
Member |
|
|
Hi,
I wish to create a rename participant in order to perform some custom changes after an EObject of my semantic model is renamed using Refactor->Rename.
I created a class RenameMsrEObjectsParticipant which extends AbstractProcessorBasedRenameParticipant
I also added the LTK extension description in my plugin.xml, see code below.
My problem is that none of the methods of the participant class are executed.
I'm not quite sure on what to put for enablement, this might be the cause of my problem ?
I put EObject so that the participant react to changes in any of my DSL's objects, would that be correct ?
----
<renameParticipant class="lu.uni.lassy.excalibur.textualeditor.ui.refactoring.participants.RenameMsrEObjectsParticipant"
id="lu.uni.lassy.excalibur.ui.renameParticipant.msrfile"
name="Msr eobjects renaming">
<enablement>
<with variable="element">
<instanceof value="org.eclipse.emf.ecore.EObject">
</instanceof>
</with>
</enablement>
</renameParticipant>
[Updated on: Fri, 18 October 2013 09:08] Report message to a moderator
|
|
|
|
|
Re: xtext rename participant [message #1143617 is a reply to message #1143611] |
Fri, 18 October 2013 10:00 |
|
Here ius what xtend
<extension
point="org.eclipse.ltk.core.refactoring.renameParticipants">
<renameParticipant
class="org.eclipse.xtend.ide.XtendExecutableExtensionFactory:org.eclipse.xtend.ide.refactoring.XtendFileRenameParticipant"
id="org.eclipse.xtend.ide.resourceRenameParticipant"
name="Xtend File Rename Participant">
<enablement>
<adapt
type="org.eclipse.core.resources.IFile">
<test
property="org.eclipse.core.resources.extension"
value="xtend">
</test>
</adapt>
</enablement>
</renameParticipant>
</extension>
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03518 seconds