Eclipse 插件在 FlashBuilder/FlexBuilder Standalone 中不起作用 [英] Eclipse Plugin does not work in FlashBuilder/FlexBuilder Standalone

查看:15
本文介绍了Eclipse 插件在 FlashBuilder/FlexBuilder Standalone 中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

创建了一个用于 UI 的 Eclipse 插件

created an Eclipse plugin that contributes to the UI by

  • 新项目向导
  • 包资源管理器中项目上下文菜单中的新菜单
  • 一个新的项目性质 + 建设者
  • 插件的新首选项页面

该插件安装在以 Flex/Flashbuilder 作为插件的普通 Eclipse 实例中时工作正常.

The plugin works fine when installed in a normal Eclipse instance with Flex/Flashbuilder as plugin.

现在的问题是,当我将插件安装在 Flex/Flashbuilder Standalone 实例中时,它永远不会被激活.上述功能均不可用.

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.

我什至不知道如何调试这个,错误日志(workspace/.metadata/.log)出现以下消息,(但我认为这与问题无关)

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)

在配置详细信息"中,我的功能没有出现在 *** 功能:部分 中,我的插件没有出现在 *** 插件中注册表:部分.但它们出现在 Configured featuresConfigured plug-ins 下.

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.

使用 -clean 启动 FlashBuilder 并没有解决问题.(启动命令现在是C:\Programme\Adobe\Flash Builder Beta\Gumbo.exe"-clean)

Starting FlashBuilder with -clean didn't solve the problem. (the start command is now "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

在我看来,所有这些都应该可用.(如果不是,应该会产生错误,我希望)

All of these should be available, as i see it. (and an error should be generated if they were not, i hope)

推荐答案

我已经通过编辑文件解决了日志中的!MESSAGE Con​​flict":

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>

此标签导致重复的打开资源..."菜单项.这种重复引发了冲突.评论它(或删除)并使用干净选项启动 Flash Builder:

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

这篇关于Eclipse 插件在 FlashBuilder/FlexBuilder Standalone 中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆