MenuItem.setAccelerator

Sets the widget accelerator. An accelerator is the bit-wise OR of zero or more modifier masks and a key. Examples: <code>SWT.MOD1 | SWT.MOD2 | 'T', SWT.MOD3 | SWT.F2</code>. <code>SWT.CONTROL | SWT.SHIFT | 'T', SWT.ALT | SWT.F2</code>. The default value is zero, indicating that the menu item does not have an accelerator.

@param accelerator an integer that is the bit-wise OR of masks and a key

</ul> @exception SWTException <ul> <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> </ul>

class MenuItem
void
setAccelerator

Meta