gpt4 book ai didi

eclipse - 在 eclipse project explorer 上下文菜单中添加 "Project"以上的项目

转载 作者:行者123 更新时间:2023-12-02 04:48:26 25 4
gpt4 key购买 nike

我正在为我们的开发环境开发基于 eclipse 的定制 IDE。
在我的新视角中,我包含了一个“Project Explorer”,因为我能够在上下文菜单中添加命令,但是当我在“new”类型中包含一个新向导(A project Wizard)时,它显示在“项目”向导

The CARD file should be above "Project..."

我希望它高于它。

"Plugin-in Project" comes before "Project..."

已附加此代码段的 plugin.xml

<extension point="org.eclipse.ui.navigator.navigatorContent">
<commonWizard
type="new"
wizardId="dev.xxx.wizard.XXXProject">
<enablement></enablement>
</commonWizard>
</extension>

当我从 Toolbar 或 MenuBar 访问 New 时显示(在我将它添加为布局中的快捷方式之后,在 IPerspectiveFactory

的实现中)

enter image description here

但出于某种原因,它没有出现在“Project Explorer”下。但它在“导航器 View ”下工作正常

enter image description here

最佳答案

使用 org.eclipse.ui.perspectiveExtensions 扩展点为您的新项目向导定义一个 newWizardShortcut 条目。

类似于:

<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.jdt.ui.JavaPerspective">
<newWizardShortcut
id="org.eclipse.jdt.junit.wizards.NewTestCaseCreationWizard">
</newWizardShortcut>
</perspectiveExtension>

您可能必须进行“重置透视”才能使更改生效。

您还可以在“快捷方式”选项卡的“窗口 > 自定义透视”对话框中设置这些快捷方式。

关于eclipse - 在 eclipse project explorer 上下文菜单中添加 "Project"以上的项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30910813/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com