public void actionPerformed(final ActionEvent e) { final boolean newAcceleratorOnNextClickEnabled = AccelerateableAction.isNewAcceleratorOnNextClickEnabled(); final KeyStroke newAccelerator = acceleratorForNextClickedAction; if (newAcceleratorOnNextClickEnabled) { getAcceleratorOnNextClickActionDialog().setVisible(false); } final Object source = e.getSource(); if ((newAcceleratorOnNextClickEnabled || 0 != (e.getModifiers() & ActionEvent.CTRL_MASK)) && source instanceof IKeyBindingManager && !((IKeyBindingManager) source).isKeyBindingProcessed() && source instanceof JMenuItem) { final JMenuItem item = (JMenuItem) source; newAccelerator(item, newAccelerator); return; } originalAction.actionPerformed(e); }
public String getIconKey() { return originalAction.getIconKey(); }
public void setEnabled(final boolean b) { originalAction.setEnabled(b); }
public void removePropertyChangeListener(final PropertyChangeListener listener) { originalAction.removePropertyChangeListener(listener); }
public void putValue(final String key, final Object value) { originalAction.putValue(key, value); }
public void setSelected(boolean newValue) { originalAction.setSelected(newValue); }
public boolean isSelected() { return originalAction.isSelected(); }
public boolean isEnabled() { return originalAction.isEnabled(); }
public Object getValue(final String key) { return originalAction.getValue(key); }
public void afterMapChange(final Object newMap) { originalAction.afterMapChange(newMap); }
public void addPropertyChangeListener(final PropertyChangeListener listener) { originalAction.addPropertyChangeListener(listener); }