Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipse-dev] eclipse extension org.eclipse.ltk.core.refactoring.copyParticipants is not working

HI Guys,

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.eclipse.esb.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.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. I couldn't able to get the expected output and 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?

thanks & regards,

Rajeeva.


Back to the top