Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341886

Summary: [win] "Report bug or enhancement" opens two tasks when using the keyboard
Product: z_Archived Reporter: Eckart Liemke <eckart.liemke>
Component: MylynAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: robert.elves, steffen.pingel
Version: unspecified   
Target Milestone: 3.6   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
fix
none
mylyn/context/zip none

Description Eckart Liemke CLA 2011-04-05 06:41:58 EDT
When reporting a bug using "Report bug or enhancement", the wizard opens two new tasks if I use the keyboard (press enter on the selection).


-- Configuration Details --
Product: Eclipse 1.3.2.20110218-0812 (org.eclipse.epp.package.java.product)
Installed Features:
 org.eclipse.mylyn_feature 3.4.3.v20110131-0100-e3x-7Z7f7AFBBoPbVQ7iNFebXJDypa
Comment 1 Steffen Pingel CLA 2011-04-05 08:26:11 EDT
Thanks for the report. We'll look into it.
Comment 2 Steffen Pingel CLA 2011-04-15 06:10:35 EDT
For some reason the event from the button is processed twice on Windows. I have added a guard to work around that.

Thread [main] (Suspended (breakpoint at line 153 in ReportBugOrEnhancementWizard))	
	ReportBugOrEnhancementWizard.performFinish() line: 153	
	WizardDialog.finishPressed() line: 811	
	WizardDialog.buttonPressed(int) line: 430	
	Dialog$2.widgetSelected(SelectionEvent) line: 624	
	TypedListener.handleEvent(Event) line: 234	
	EventTable.sendEvent(Event) line: 84	
	Button(Widget).sendEvent(Event) line: 1053	
	Display.runDeferredEvents() line: 4066	
	Display.readAndDispatch() line: 3657	
	ModalContext$ModalContextThread.block() line: 173	
	ModalContext.run(IRunnableWithProgress, boolean, IProgressMonitor, Display) line: 388	
	WizardDialog.run(boolean, boolean, IRunnableWithProgress) line: 1008	
	CommonUiUtil.run(IRunnableContext, ICoreRunnable) line: 85	
	TaskErrorReporter.process(ITaskContribution, IRunnableContext) line: 73	
	ReportBugOrEnhancementWizard.performFinish() line: 166	
	WizardDialog.finishPressed() line: 811	
	WizardDialog.buttonPressed(int) line: 430	
	Dialog$2.widgetSelected(SelectionEvent) line: 624	
	TypedListener.handleEvent(Event) line: 234	
	EventTable.sendEvent(Event) line: 84	
	Button(Widget).sendEvent(Event) line: 1053	
	Display.runDeferredEvents() line: 4066	
	Display.readAndDispatch() line: 3657	
	WizardDialog(Window).runEventLoop(Shell) line: 825	
	WizardDialog(Window).open() line: 801	
	ReportBugAction.run(IAction) line: 37	
	WWinPluginAction(PluginAction).runWithEvent(Event) line: 251	
	WWinPluginAction.runWithEvent(Event) line: 229	
	PluginActionContributionItem(ActionContributionItem).handleWidgetSelection(Event, boolean) line: 584	
	ActionContributionItem.access$2(ActionContributionItem, Event, boolean) line: 501	
	ActionContributionItem$5.handleEvent(Event) line: 411	
	EventTable.sendEvent(Event) line: 84	
	MenuItem(Widget).sendEvent(Event) line: 1053	
	Display.runDeferredEvents() line: 4066	
	Display.readAndDispatch() line: 3657	
	Workbench.runEventLoop(Window$IExceptionHandler, Display) line: 2640	
	Workbench.runUI() line: 2604	
	Workbench.access$4(Workbench) line: 2438	
	Workbench$7.run() line: 671	
	Realm.runWithDefault(Realm, Runnable) line: 332	
	Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 664	
	PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 149	
	IDEApplication.start(IApplicationContext) line: 115	
	EclipseAppHandle.run(Object) line: 196	
	EclipseAppLauncher.runApplication(Object) line: 110	
	EclipseAppLauncher.start(Object) line: 79	
	EclipseStarter.run(Object) line: 369	
	EclipseStarter.run(String[], Runnable) line: 179	
	NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]	
	NativeMethodAccessorImpl.invoke(Object, Object[]) line: not available	
	DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: not available	
	Method.invoke(Object, Object...) line: not available	
	Main.invokeFramework(String[], URL[]) line: 620	
	Main.basicRun(String[]) line: 575	
	Main.run(String[]) line: 1408	
	Main.main(String[]) line: 1384
Comment 3 Steffen Pingel CLA 2011-04-15 06:11:24 EDT
Created attachment 193343 [details]
fix
Comment 4 Steffen Pingel CLA 2011-04-15 06:11:28 EDT
Created attachment 193344 [details]
mylyn/context/zip