GT-2894 - Key Bindings - fixed bug in Structure Editor that prevented

toolbar action keybinding from working; updated all keybindings to work
with focus in text components when the binding is modified, as long as
the component does itself not have an action registered for that binding
This commit is contained in:
dragonmacher 2019-05-31 17:21:36 -04:00
parent 73f3b83bc3
commit 28c5218f18
2 changed files with 27 additions and 12 deletions

View file

@ -25,16 +25,12 @@ import resources.ResourceManager;
/**
* ApplyAction is an action for applying editor changes.
*/
public class ApplyAction extends CompositeEditorAction {
public class ApplyAction extends CompositeEditorTableAction {
private final static String GROUP_NAME = BASIC_ACTION_GROUP;
private final static ImageIcon APPLY_ICON = ResourceManager.loadImage("images/disk.png");
private final static String[] popupPath = new String[] { "Apply Edits" };
/**
* Constructor
* @param owner the plugin that owns this action
*/
public ApplyAction(CompositeEditorProvider provider) {
super(provider, EDIT_ACTION_PREFIX + "Apply Editor Changes", GROUP_NAME, popupPath, null,
APPLY_ICON);
@ -43,9 +39,6 @@ public class ApplyAction extends CompositeEditorAction {
adjustEnablement();
}
/* (non-Javadoc)
* @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
*/
@Override
public void actionPerformed(ActionContext context) {
if (!model.isValidName()) {