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

Bug 367793

Summary: Closing and reopening a Specification creates SWTException
Product: [Modeling] MDT.RMF Reporter: Michael Jastram <michael>
Component: ProRAssignee: Michael Jastram <michael>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P4    
Version: unspecified   
Target Milestone: 0.5.0   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Michael Jastram CLA 2012-01-03 15:57:13 EST
Easy to reproduce:

1. Open a ReqIF document
2. Open a Spec
3. Close the Spec
4. Reopen the Spec
5. Try to add a new element.
6. this will result in the following:

Caused by: org.eclipse.swt.SWTException: Widget is disposed
	at org.eclipse.swt.SWT.error(SWT.java:4282)
	at org.eclipse.swt.SWT.error(SWT.java:4197)
	at org.eclipse.swt.SWT.error(SWT.java:4168)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:466)
	at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:403)
	at org.agilemore.agilegrid.AgileGrid.getLayoutAdvisor(AgileGrid.java:3678)
	at org.eclipse.rmf.pror.reqif10.editor.agilegrid.ProrAgileGridViewer.updateRowCount(ProrAgileGridViewer.java:419)
	at org.eclipse.rmf.pror.reqif10.editor.agilegrid.ProrAgileGridViewer.access$7(ProrAgileGridViewer.java:418)
	at org.eclipse.rmf.pror.reqif10.editor.agilegrid.ProrAgileGridViewer$4.notifyChanged(ProrAgileGridViewer.java:325)
	at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:380)
	at org.eclipse.emf.ecore.util.EcoreEList.dispatchNotification(EcoreEList.java:255)
	at org.eclipse.emf.common.notify.impl.NotifyingListImpl.addAllUnique(NotifyingListImpl.java:463)
	at org.eclipse.emf.common.util.AbstractEList.addAll(AbstractEList.java:410)
	at org.eclipse.emf.edit.command.AddCommand.doExecute(AddCommand.java:407)
	at org.eclipse.emf.edit.command.AbstractOverrideableCommand.execute(AbstractOverrideableCommand.java:131)
	at org.eclipse.emf.common.command.CompoundCommand.execute(CompoundCommand.java:267)
	at org.eclipse.emf.common.command.BasicCommandStack.execute(BasicCommandStack.java:84)
	... 42 more

There is a workaround: Close the ReqIF and start all over.
Comment 1 Michael Jastram CLA 2012-01-04 10:50:45 EST
Fixed in f305e2e5f323e85c2a3729a80f5fcf7f818c97b0
Comment 2 Michael Jastram CLA 2012-03-24 07:01:08 EDT
done