Bug 53571 IAction.setAccelerator(int) deprecated, any other method instead?
Hi, I only use SWT & JFACE(not RCP), and I want assign the accelerator keycode to the action. Is there another way to assign the accelerator keycode? Regards, Eric
bundles/org.eclipse.jface/src/org/eclipse/jface/action/IAction.java
* @param text the text, or <code>null</code> if none
 * @see #TEXT
 * @see Action#findModifier
 * @see Action#findKeyCode
 */
public void setText(String text);
/**
 * Sets the tool tip text for this action.
 * <p>
 * Fires a property change event for the <code>TOOL_TIP_TEXT</code> property
 * if the tool tip text actually changes as a consequence.
 * </p>
 *
 * @param text the tool tip text, or <code>null</code> if none
 * @see #TOOL_TIP_TEXT
 */
public void setToolTipText(String text);
/**
 * Sets the accelerator keycode that this action maps to.
 * This is a bitwise OR of zero or more SWT key modifier masks
 * (i.e. SWT.CTRL or SWT.ALT) and a character code.
 * For example, for Ctrl+Z, use <code>SWT.CTRL | 'Z'</code>.
 * Use 0 for no accelerator.
 * 
 * @param int the keycode to be accepted.
 * @deprecated
 */
public void setAccelerator(int keycode);
}