0

これに従って、名前変更プロセスで参加者を作成するには:

Eclipse の名前変更/リファクタリングのオーバーライド

クラスを拡張し、plugin.xml に拡張ポイントを追加して機能させるだけで十分です。

どういうわけか私はそれを機能させることができません.Eclipseは私のカスタム参加者を無視します.

これは、私の plugin.xml で宣言された拡張ポイントです。

   <extension point="org.eclipse.ltk.core.refactoring.renameParticipants">
      <renameParticipant 
        class="MyCustomRenameParticipant" 
        name="MyCustomRenameParticipant" 
        id="MyCustomRenameParticipant">
        <enablement>
          <with variable="affectedNatures">
            <iterate operator="or">
              <equals value="org.eclipse.jdt.core.javanature"/>
            </iterate>
          </with>
          <with variable="element">
             <or>
               <instanceof value="org.eclipse.core.resources.IResource"/>
               <instanceof value="org.eclipse.jdt.core.IJavaElement"/>
             </or>
          </with>
        </enablement>
      </renameParticipant>
    </extension>

何が間違っているかについて何か考えはありますか?

今、私はあらゆる種類の名前変更アクションをキャッチしたいと思っています。私のコードは、私が試したどのケースでも実行されません

4

0 に答える 0