Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Eclipse RCP-ltk rename命令的冲突处理程序_Eclipse_Eclipse Plugin_Eclipse Rcp_Automated Refactoring - Fatal编程技术网

Eclipse RCP-ltk rename命令的冲突处理程序

Eclipse RCP-ltk rename命令的冲突处理程序,eclipse,eclipse-plugin,eclipse-rcp,automated-refactoring,Eclipse,Eclipse Plugin,Eclipse Rcp,Automated Refactoring,我正在开发一个EclipseRCP应用程序,在其中我正在编写自己的重构代码。我压倒一切 org.eclipse.ltk.ui.refactoring.commands.renameResource命令如下: <extension point="org.eclipse.ui.commands"> <command defaultHandler="com.rename.command.CustomRenameHandler" id="org.eclips

我正在开发一个EclipseRCP应用程序,在其中我正在编写自己的重构代码。我压倒一切
org.eclipse.ltk.ui.refactoring.commands.renameResource
命令如下:

<extension point="org.eclipse.ui.commands">
  <command
      defaultHandler="com.rename.command.CustomRenameHandler"
      id="org.eclipse.ltk.ui.refactoring.commands.renameResource"
      name="Rename">
  </command>
</extension>
因此,有时调用my处理程序,有时调用RenameResourceHandler


任何指针都会有帮助。

您不能覆盖已经有活动或默认处理程序的命令


对于重构重命名,您应该使用
org.eclipse.ltk.core.refactoring.renameParticipants
扩展点编写重命名参与者。您的参与者将与需要在重命名过程中运行的所有其他参与者一起被调用。

Hi Greg,在我的项目中,我必须显示一个不同于默认Eclipse的重命名向导。如何实现这一点?您必须编写自己的命令、菜单项和处理程序。
!MESSAGE Conflicting handlers for org.eclipse.ltk.ui.refactoring.commands.renameResource