putValue(Action.ACCELERATOR_KEY, UISupport.getKeyStroke(mapping.getKeyStroke()));
}
setEnabled(mapping.getAction().isEnabled());
mapping.getAction().addPropertyChangeListener(new WeakPropertyChangeListener(this, mapping.getAction()));
String name = mapping.getName();
int ix = name.indexOf('&');
if (ix >= 0) {
putValue(Action.NAME, name.substring(0, ix) + name.substring(ix + 1));