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
/**
 * Removes the given listener from this action.
 * Has no effect if an identical listener is not registered.
 *
 * @param listener a property change listener
 */
public void removePropertyChangeListener(IPropertyChangeListener listener);
/**
 * Runs this action.
 * Each action implementation must define the steps needed to carry out this action.
 * The default implementation of this method in <code>Action</code>
 * does nothing.
 */
public void run();
/**
 * Runs this action, passing the triggering SWT event.
 * As of 2.0, <code>ActionContributionItem</code> calls this method
 * instead of <code>run()</code>.  
 * The default implementation of this method in <code>Action</code>
 * simply calls <code>run()</code> for backwards compatibility.
 * 
 * @param event the SWT event which triggered this action being run 
 * @since 2.0
 */
public void runWithEvent(Event event);
/**
 * Sets the action definition id of this action.
 * 
 * @param id the action definition id
 * @since 2.0