Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » org.eclipse.ltk.core.refactoring.copyParticipants extension is not working
org.eclipse.ltk.core.refactoring.copyParticipants extension is not working [message #1722036] Tue, 02 February 2016 11:55
Rajeeva Uthayasangar is currently offline Rajeeva UthayasangarFriend
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?
Previous Topic:Save state of multiple views in perspective
Next Topic:Why can't I create a new Launch Configuration from a product file??
Goto Forum:
  


Current Time: Sat Apr 21 08:05:11 GMT 2018

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

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