开发者

Eclipse + Flex Builder: keyboard shortcuts for “open resource” stopped working?

I upgraded from Eclipse 3.4.2 + Flex Builder 3.5 to Eclipse Eclise 3.5.1 + Flash Builder 4.1, and for some reason keyboard shortcuts for “open resource” just stopped working.

I can click “Navigate -> Open Resource” without any problems, but no matter what I change it to, the keyboard shortcut doesn't work.

The only strange thing is that there are two “Open Resource” entries in the “Navigate” menu (see below)… But both open up the correct window when I click them.

Eclipse + Flex Builder: keyboard shortcuts for “open resource” stopped working?

Also note: I only have one plugin, viPlugin, installed… But I still get this problem after removing it.

So, how can I fix this?

Edit: Checking the log, I see this:

!ENTRY org.eclipse.ui.workbench 2 0 2011-02-03 15:15:01.970
!MESSAGE A handler conflict occurred.  This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2011-02-03 15:15:01.970
!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@1540a77),WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@1540a77)),sourcePriority=16640)
H开发者_运维知识库andlerActivation(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@1540a77),WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@1540a77)),sourcePriority=16640)


It looks like two parties are registering a command under the same key binding. I would guess that the problem is in the new Flash Builder plugin and you should report this to Adobe. In the meantime, here are some things to try...

  1. Switch to another perspective. These sort of problems can be specific to the perspective you are in.

  2. Under Preferences -> General Key, type "Open Resource" in the filter box. You should see the two commands listed. Remove the key binding from one of them. Close the dialog and try. If nothing happens, you probably removed the key binding from the wrong one. Go back to the dialog and swap the one that you leave.


there's a walkaround.

edit {eclipse}\plugins\com.adobe.flexbuilder.standalone_{VERSION}\plugin.xml

Comment out this part:

  <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>

then restart eclipse with clean:

eclipse.exe - clean

please refer to this post: Eclipse Plugin does not work in FlashBuilder/FlexBuilder Standalone

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜