Eclipse 插件无法在 FlashBuilder/FlexBuilder Standalone 中工作
为 UI 做出贡献
- 创建了一个 Eclipse 插件,该插件通过新项目向导
- Package Explorer 中项目上下文菜单中的新菜单
- 新项目性质 + 构建器
- 插件的新首选项页面
安装在普通 Eclipse 中时,插件可以正常工作以 Flex/Flashbuilder 作为插件的实例。
现在的问题是,当我将插件安装在 Flex/Flashbuilder Standalone 实例中时,该插件永远不会被激活。 上述功能均不可用。
我什至不知道如何调试这个,错误日志(workspace/.metadata/.log)出现以下消息,(但我不认为它与问题相关)
!ENTRY org.eclipse.ui.workbench 2 0 2009-07-20 17:51:17.984
!MESSAGE A handler conflict occurred. This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2009-07-20 17:51:17.984
!MESSAGE Conflict for 'org.eclipse.ui.navigate.openResource':
HandlerActivation(commandId=org.eclipse.ui.navigate.openResource, handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.internal.ide.handlers.OpenResourceHandler),
expression=AndExpression(ActionSetExpression(org.eclipse.ui.NavigateActionSet,org.eclipse.ui.internal.WorkbenchWindow@1c45731),WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@1c45731)),sourcePriority=16640)
HandlerActivation(commandId=org.eclipse.ui.navigate.openResource,
handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.internal.ide.handlers.OpenResourceHandler),
expression=AndExpression(ActionSetExpression(com.adobe.flexbuilder.standalone.navigate,org.eclipse.ui.internal.WorkbenchWindow@1c45731),WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@1c45731)),sourcePriority=16640)
在“配置详细信息”中我的功能没有显示在 *** 功能:部分
中,而我的插件未显示在 *** 插件注册表:部分
中。 但它们出现在配置的功能
和配置的插件
下。
使用 -clean 启动 FlashBuilder 并没有解决问题。 (启动命令现在是“C:\Programme\Adobe\Flash Builder Beta\Gumbo.exe”-clean)
我的插件依赖于
org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.core.resources,
com.adobe.flexbuilder.project
com.adobe.flexbuilder.project.ui
com.adobe.flexbuilder.ui
所有这些都应该可用,正如我所见。 (如果不是的话,应该会生成一个错误,我希望)
created an Eclipse plugin that contributes to the UI by
- a new project wizard
- a new menu in the context menu of projects in the Package Explorer
- a new project nature + builder
- a new preference page for the plugin
The plugin works fine when installed in a normal Eclipse instance with Flex/Flashbuilder as plugin.
The problem now is, that the plugin never gets activated when i install it in a Flex/Flashbuilder Standalone instance. Neither of the features described above is available.
I even have no idea how to debug this, error-log (workspace/.metadata/.log) the following message appears, (but i dont think it is related to the problem)
!ENTRY org.eclipse.ui.workbench 2 0 2009-07-20 17:51:17.984
!MESSAGE A handler conflict occurred. This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2009-07-20 17:51:17.984
!MESSAGE Conflict for 'org.eclipse.ui.navigate.openResource':
HandlerActivation(commandId=org.eclipse.ui.navigate.openResource, handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.internal.ide.handlers.OpenResourceHandler),
expression=AndExpression(ActionSetExpression(org.eclipse.ui.NavigateActionSet,org.eclipse.ui.internal.WorkbenchWindow@1c45731),WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@1c45731)),sourcePriority=16640)
HandlerActivation(commandId=org.eclipse.ui.navigate.openResource,
handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.internal.ide.handlers.OpenResourceHandler),
expression=AndExpression(ActionSetExpression(com.adobe.flexbuilder.standalone.navigate,org.eclipse.ui.internal.WorkbenchWindow@1c45731),WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@1c45731)),sourcePriority=16640)
In the "Configuration Details" my feature doesn't show up in the *** Features: section
and my plugin doesn't show up in the *** Plugin-in Registry: section
.
But they appear under Configured features
and Configured plug-ins
.
Starting FlashBuilder with -clean didn't solve the problem.
(the start command is now "C:\Programme\Adobe\Flash Builder Beta\Gumbo.exe" -clean)
My plugin depends on
org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.core.resources,
com.adobe.flexbuilder.project
com.adobe.flexbuilder.project.ui
com.adobe.flexbuilder.ui
All of these should be available, as i see it. (and an error should be generated if they were not, i hope)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我通过编辑文件解决了日志中的“!消息冲突”:
在此文件中,下一个标签是不必要的:
此标签导致重复的“打开资源...”菜单项。 这种重复引起了冲突。
注释它(或删除)并使用 clean 选项启动 flash 构建器:
I've solved "!MESSAGE Conflict" in log by editing file:
In this file next tag is unnecessary:
This tag leads to duplicated "Open resource..." menu item. This duplication raises a conflict.
Comment it (or remove) and start flash builder with clean option:
这可能是独立的 flexbuilder 版本的问题。 我们尝试在 flexbuilder 中安装 subversive,但它也无法正常工作。
It could be a problem of the standalone flexbuilder version. We tried to install subversive in flexbuilder and it also didn't work correct.