首页 文章

如何在项目资源管理器中显示Eclipse Move上下文菜单

提问于
浏览
0

我注意到默认情况下,当一次选择多个文件夹和文件时,不会显示Eclipse“Move”上下文菜单 .

我的场景是我想显示我的上下文菜单 - 在多选时移动某些类型的文件和文件夹 .

<and>
                  <iterate
                      operator="or">
                <with
                   variable="org.eclipse.ui.selection">

                   <adapt
                         type="org.eclipse.core.resources.IResource">
                      <or>
                         <test    property="com.sap.ndb.studio.dwb.team.ui.expressions.isContainedInSharedProject" value = "true"/>
                         <test property="com.sap.ndb.studio.dwb.team.ui.expressions.isFile"  value="true"/>
                         <test property="com.sap.ndb.studio.dwb.team.ui.expressions.isFolder"  value="true"/>
                      </or>
                   </adapt>

                 </with>
              </iterate>
</and>

如何启用类型文件夹和多选文件的上下文菜单?

此致,帕维特拉

1 回答

  • 0

    Project explorer 中,选择要移动的文件,

    右键单击其中一个,选择 Refactor ,默认情况下 Move... 选项可用 . 或者只是你可以使用快捷方式移动: Alt+Shift+V .

    enter image description here

    if it wasn't enabled or doesn't exist ,在eclipse中转到 Window 菜单,选择 Customize perspective...

    enter image description here

    将出现带有标签的窗口 . 选择 Menu visibility 选项卡,然后展开 Refactor ,然后选中 Move... 复选框 .

    enter image description here

相关问题