Eclipse 插件无法在 FlashBuilder/FlexBuilder Standalone 中工作

发布于 2024-07-27 00:21:59 字数 1942 浏览 1 评论 0原文

为 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

你没皮卡萌 2024-08-03 00:21:59

我通过编辑文件解决了日志中的“!消息冲突”:

 Adobe Flash Builder 4\plugins\com.adobe.flexbuilder.standalone_4.0.1.277662\plugin.xml

在此文件中,下一个标签是不必要的:

<actionSet
    description="%standaloneDescriptionNavigationActions"
    id="com.adobe.flexbuilder.standalone.navigate"
    label="%standalone.navigate.flex.navigation"
    visible="true">
     <action
           definitionId="org.eclipse.ui.navigate.openResource"
           label="%OpenWorkspaceFileAction.label"
           helpContextId="org.eclipse.ui.open_workspace_file_action_context"
           class="org.eclipse.ui.internal.ide.handlers.OpenResourceHandler"
           menubarPath="navigate/open.ext2"
           id="com.adobe.flexbuilder.standalone.navigate.OpenWorkspaceFile">
     </action>
  </actionSet>

此标签导致重复的“打开资源...”菜单项。 这种重复引起了冲突。
注释它(或删除)并使用 clean 选项启动 flash 构建器:

FlashBUilder.exe -clean

I've solved "!MESSAGE Conflict" in log by editing file:

 Adobe Flash Builder 4\plugins\com.adobe.flexbuilder.standalone_4.0.1.277662\plugin.xml

In this file next tag is unnecessary:

<actionSet
    description="%standaloneDescriptionNavigationActions"
    id="com.adobe.flexbuilder.standalone.navigate"
    label="%standalone.navigate.flex.navigation"
    visible="true">
     <action
           definitionId="org.eclipse.ui.navigate.openResource"
           label="%OpenWorkspaceFileAction.label"
           helpContextId="org.eclipse.ui.open_workspace_file_action_context"
           class="org.eclipse.ui.internal.ide.handlers.OpenResourceHandler"
           menubarPath="navigate/open.ext2"
           id="com.adobe.flexbuilder.standalone.navigate.OpenWorkspaceFile">
     </action>
  </actionSet>

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:

FlashBUilder.exe -clean
另类 2024-08-03 00:21:59

这可能是独立的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文