Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#152 Handler activation conflicts

Default
open
nobody
Quantum (119)
5
2014-08-20
2007-10-05
Tillmann Seidel
No

Hi,

I'm using the quantum plug-ins versionb 3.0.6 on Eclipse 3.3 and Windows XP.

When opening up the Database Bookmarks view, activation handler conflicts are logged into the PDE log:

!ENTRY org.eclipse.ui.workbench 2 0 2007-09-20 15:38:26.140
!MESSAGE A handler conflict occurred. This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2007-09-20 15:38:26.140
!MESSAGE Conflict for 'AUTOGEN:::com.quantum.view.bookmarkview.menu/com.quantum.action.importbookmarks':
HandlerActivation(commandId=AUTOGEN:::com.quantum.view.bookmarkview.menu/com.quantum.action.importbookmarks,
handler=ActionDelegateHandlerProxy(null,com.quantum.actions.ExportBookmarksAction),
expression=AndExpression(LegacyViewContributionExpression(com.quantum.view.bookmarkview,org.eclipse.ui.internal.WorkbenchWindow@d2bee),WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@d2bee)),sourcePriority=4210688)
HandlerActivation(commandId=AUTOGEN:::com.quantum.view.bookmarkview.menu/com.quantum.action.importbookmarks,
handler=ActionDelegateHandlerProxy(null,com.quantum.actions.ImportBookmarksAction),
expression=AndExpression(LegacyViewContributionExpression(com.quantum.view.bookmarkview,org.eclipse.ui.internal.WorkbenchWindow@d2bee),WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@d2bee)),sourcePriority=4210688)

The reason for this are duplicate ids view actions in
/com.quantum.Quantum/plugin.xml. Both the "Import Bookmark" and "Export Bookmark" actions have the same id "com.quantum.action.importbookmarks", causing the activation conflict.

Solution: Replace the id of the "Export Bookmark" action by "com.quantum.action.exportbookmarks".

Best regards
Tillmann

Discussion