Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 110010 - [KeyBindings] IllegalArgumentException in KeySequenceText
Summary: [KeyBindings] IllegalArgumentException in KeySequenceText
Status: RESOLVED DUPLICATE of bug 89610
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Douglas Pollock CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-20 09:43 EDT by Tom Hofmann CLA
Modified: 2005-09-21 17:01 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Hofmann CLA 2005-09-20 09:43:25 EDT
3.2 M2 test pass

- not sure what exactly I did
- I modified some key bindings on the keys preference page
- found this in the log

!ENTRY org.eclipse.ui 4 0 2005-09-20 15:24:58.080
!MESSAGE All triggers in a trigger sequence must be an instance of Trigger
!STACK 0
java.lang.IllegalArgumentException: All triggers in a trigger sequence must be
an instance of Trigger
	at org.eclipse.jface.bindings.TriggerSequence.<init>(TriggerSequence.java:72)
	at org.eclipse.jface.bindings.keys.KeySequence.<init>(KeySequence.java:190)
	at org.eclipse.jface.bindings.keys.KeySequence.getInstance(KeySequence.java:129)
	at
org.eclipse.jface.bindings.keys.KeySequenceText$KeyTrapListener.handleEvent(KeySequenceText.java:127)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1050)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1074)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1059)
	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1086)
	at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:640)
	at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:1965)
	at org.eclipse.swt.widgets.Text.gtk_key_press_event(Text.java:1188)
	at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1395)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:3490)
	at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
	at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:4891)
	at org.eclipse.swt.widgets.Display.eventProc(Display.java:1059)
	at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
	at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1271)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2603)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
	at org.eclipse.jface.window.Window.open(Window.java:787)
	at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:66)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
	at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
	at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
	at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1050)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2909)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2605)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1755)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1719)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:368)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:106)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:377)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:164)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:338)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
	at org.eclipse.core.launcher.Main.run(Main.java:977)
	at org.eclipse.core.launcher.Main.main(Main.java:952)
Comment 1 Tom Hofmann CLA 2005-09-20 11:52:26 EDT
here are the steps:

- I20050920-0010
- legacy keys preference page
- in the KeySequenceTest, enter a key binding (eg. Ctrl+8)
- using the mouse, place the caret at the beginning of the text field
- press a modifier key (e.g. Ctrl)

> boom with a slightly different error (but probably related):

!ENTRY org.eclipse.ui 4 0 2005-09-20 17:50:22.534
!MESSAGE The triggers cannot be null
!STACK 0
java.lang.NullPointerException: The triggers cannot be null
	at org.eclipse.jface.bindings.TriggerSequence.<init>(TriggerSequence.java:67)
	at org.eclipse.jface.bindings.keys.KeySequence.<init>(KeySequence.java:190)
	at org.eclipse.jface.bindings.keys.KeySequence.getInstance(KeySequence.java:129)
	at
org.eclipse.jface.bindings.keys.KeySequenceText$KeyTrapListener.handleEvent(KeySequenceText.java:127)
[etc.]


> the exception reported in comment 0 can be produced by selecting the previous
key binding with the mouse (as opposed to setting the caret to position 0)
Comment 2 Douglas Pollock CLA 2005-09-21 17:01:36 EDT

*** This bug has been marked as a duplicate of 89610 ***