Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 66297
Collapse All | Expand All

(-)KeysPreferencePage.java (-14 / +14 lines)
Lines 759-778 Link Here
759
            }
759
            }
760
        });
760
        });
761
761
762
        // Arrow buttons aren't normally added to the tab list. Let's fix that.
763
        Control[] tabStops = groupKeySequence.getTabList();
764
        ArrayList newTabStops = new ArrayList();
765
        for (int i = 0; i < tabStops.length; i++) {
766
            Control tabStop = tabStops[i];
767
            newTabStops.add(tabStop);
768
            if (textKeySequence.equals(tabStop)) {
769
                newTabStops.add(buttonAddKey);
770
            }
771
        }
772
        Control[] newTabStopArray = (Control[]) newTabStops
773
                .toArray(new Control[newTabStops.size()]);
774
        groupKeySequence.setTabList(newTabStopArray);
775
776
        // Construct the menu to attach to the above button.
762
        // Construct the menu to attach to the above button.
777
        menuButtonAddKey = new Menu(buttonAddKey);
763
        menuButtonAddKey = new Menu(buttonAddKey);
778
        Iterator trappedKeyItr = KeySequenceText.TRAPPED_KEYS.iterator();
764
        Iterator trappedKeyItr = KeySequenceText.TRAPPED_KEYS.iterator();
Lines 839-844 Link Here
839
                        selectedTableAssignmentsForKeySequence();
825
                        selectedTableAssignmentsForKeySequence();
840
                    }
826
                    }
841
                });
827
                });
828
829
        // Arrow buttons aren't normally added to the tab list. Let's fix that.
830
        Control[] tabStops = groupKeySequence.getTabList();
831
        ArrayList newTabStops = new ArrayList();
832
        for (int i = 0; i < tabStops.length; i++) {
833
            Control tabStop = tabStops[i];
834
            newTabStops.add(tabStop);
835
            if (textKeySequence.equals(tabStop)) {
836
                newTabStops.add(buttonAddKey);
837
            }
838
        }
839
        Control[] newTabStopArray = (Control[]) newTabStops
840
                .toArray(new Control[newTabStops.size()]);
841
        groupKeySequence.setTabList(newTabStopArray);
842
842
843
        Composite compositeContext = new Composite(composite, SWT.NULL);
843
        Composite compositeContext = new Composite(composite, SWT.NULL);
844
        gridLayout = new GridLayout();
844
        gridLayout = new GridLayout();

Return to bug 66297