org.eclipse.ltk.core.refactoring.copyParticipants extension is not working [message #1722036] |
Tue, 02 February 2016 11:55 |
Rajeeva Uthayasangar Messages: 3 Registered: March 2013 |
Junior Member |
|
|
I have a requirement to get the new name given for the file while doing copy and paste from right click inside a project. Have to replace some content inside the newly created file with the new name given for the file.
So i thought to use the org.eclipse.ltk.core.refactoring.copyParticipants in my plugin project. Below is the defined extension:
<extension
point="org.eclipse.ltk.core.refactoring.copyParticipants">
<copyParticipant
id="ESBArtifactCopyParticipant"
name="ESBArtifactCopyParticipantRefactor"
class="org.wso2.developerstudio.eclipse.esb.project.refactoring.copy.ESBArtifactCopyParticipant">
<enablement>
<and>
<instanceof
value="org.eclipse.core.resources.IFile">
</instanceof>
<adapt type="org.eclipse.core.resources.IResource">
<test
property="org.eclipse.core.resources.projectNature"
value="org.wso2.developerstudio.eclipse.esb.project.nature">
</test>
</adapt>
</and>
</enablement>
</copyParticipant>
</extension>
The class ESBArtifactCopyParticipant extends the CopyParticipant class and implemented the initialize, checkConditions, createChange and getName methods. While I'm debugging for testing purpose, initialize method is not hit when i copy and paste the new file.
Can some one provide some insights to figure out issue?
|
|
|
Powered by
FUDForum. Page generated in 0.02629 seconds