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

Bug 300181

Summary: [design] SWTException on perspective close
Product: [RT] RAP Reporter: Erdal Karaca <erdal.karaca.de>
Component: DemoAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 1.3 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patched CoolBarManager none

Description Erdal Karaca CLA 2010-01-20 08:11:10 EST
org.eclipse.rap.internal.design.example.managers.CoolBarManager.StylingSelectionAdapter.widgetSelected(SelectionEvent) causes a swt exception:

org.eclipse.swt.SWTException: Widget is disposed
	at org.eclipse.swt.SWT.error(SWT.java:2695)
	at org.eclipse.swt.SWT.error(SWT.java:2615)
	at org.eclipse.swt.SWT.error(SWT.java:2586)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:898)
	at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:834)
	at org.eclipse.swt.widgets.Widget.getData(Widget.java:214)
	at org.eclipse.rap.internal.design.example.managers.CoolBarManager$StylingSelectionAdapter.widgetSelected(CoolBarManager.java:107)
	at org.eclipse.swt.events.SelectionEvent.dispatchToObserver(SelectionEvent.java:194)
	[...]
	
	
Reproduce:
- open a perspective and close it using a toolbar command
Comment 1 Erdal Karaca CLA 2010-01-21 05:59:51 EST
Created attachment 156767 [details]
patched CoolBarManager

i think you just forgot to check if the widget is disposed
Comment 2 Holger Staudacher CLA 2010-01-28 08:59:56 EST
Not longer an issue. It was fixed with the solution for bug 300184.