Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353852 - CommandContributionItem - public API missing 'public CommandContributionItemParameter getData()'
Summary: CommandContributionItem - public API missing 'public CommandContributionItemP...
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: Workbench (show other bugs)
Version: 1.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.5 M1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-04 03:38 EDT by Andrei Neshcheret CLA
Modified: 2011-08-04 06:24 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.