Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 353852

Summary: CommandContributionItem - public API missing 'public CommandContributionItemParameter getData()'
Product: [RT] RAP Reporter: Andrei Neshcheret <a.nesheret>
Component: WorkbenchAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.4   
Target Milestone: 1.5 M1   
Hardware: All   
OS: All   
Whiteboard:

Description Andrei Neshcheret CLA 2011-08-04 03:38:40 EDT
Build Identifier: I20110613-1736

I have a custom 
'FormTextManager extends org.eclipse.jface.action.ContributionManager'
like ToolBarManager
with support for CommandContributionItem and IAction in RCP this works wery well.
In RAP compile problems due to public API missing.


	/**
	 * Provide info on the rendering data contained in this item.
	 * 
	 * @return a {@link CommandContributionItemParameter}. Valid fields are
	 *         serviceLocator, id, style, icon, disabledIcon, hoverIcon, label,
	 *         helpContextId, mnemonic, tooltip. The Object will never be
	 *         <code>null</code>, although any of the fields may be
	 *         <code>null</code>.
	 * @since 3.7
	 */
	public CommandContributionItemParameter getData() {
		CommandContributionItemParameter data = new CommandContributionItemParameter(
				serviceLocator, getId(), null, style);
		data.icon = contributedIcon;
		data.disabledIcon = contributedDisabledIcon;
		data.hoverIcon = contributedHoverIcon;
		data.label = contributedLabel;
		data.helpContextId = helpContextId;
		data.mnemonic = mnemonic;
		data.tooltip = tooltip;
		return data;
	}


Reproducible: Always
Comment 1 Ivan Furnadjiev CLA 2011-08-04 06:24:01 EDT
Synchronized the CommandContributionItem class with Workbench 3.7 release. Changes are in CVS HEAD.