Community
Participate
Working Groups
Build Identifier: 20110916-0149 The openView command (see plugin.xml of org.eclipse.ui) is missing the secondaryID parameter in the RAP version. Besides, the constant VIEWS_SHOW_VIEW_SECONDARY_ID which defines "org.eclipse.ui.views.showView.secondaryId" is missing in the RAP version of the class IWorkbenchCommandConstants. However, the "openView" method on the workbench page handles the secondaryId argument fine (it is even used successfully in the RAP Mail). Reproducible: Always
Actually the command is "showView". Here is a snippet from the original org.eclipse.ui plugin.xml where the optional "org.eclipse.ui.views.showView.secondaryId" parameter is present: <command name="%command.showView.name" description="%command.showView.description" categoryId="org.eclipse.ui.category.views" id="org.eclipse.ui.views.showView" defaultHandler="org.eclipse.ui.handlers.ShowViewHandler"> <commandParameter id="org.eclipse.ui.views.showView.viewId" name="%command.showView.viewIdParameter" values="org.eclipse.ui.internal.registry.ViewParameterValues" /> <commandParameter id="org.eclipse.ui.views.showView.secondaryId" name="%command.showView.secondaryIdParameter" optional="true"/> <commandParameter id="org.eclipse.ui.views.showView.makeFast" name="%command.showView.makeFastParameter" optional="true"/> </command>
Sorry, I meant of course "showView". And the snippet you pasted is the one from RCP. Here's the corresponding one from RAP: <command name="%command.showView.name" description="%command.showView.description" categoryId="org.eclipse.ui.category.views" id="org.eclipse.ui.views.showView" defaultHandler="org.eclipse.ui.handlers.ShowViewHandler"> <commandParameter id="org.eclipse.ui.views.showView.viewId" name="%command.showView.viewIdParameter" values="org.eclipse.ui.internal.registry.ViewParameterValues" /> <commandParameter id="org.eclipse.ui.views.showView.makeFast" name="%command.showView.makeFastParameter" optional="true"> </commandParameter> </command> Note that org.eclipse.ui.views.showView.secondaryId is missing.