[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-6749) org.guvnor.tools.Activator adds ResourceChangeListener, but doesn't remove it
Snjezana Peco (JIRA)
jira-events at lists.jboss.org
Thu Jul 29 19:05:49 EDT 2010
org.guvnor.tools.Activator adds ResourceChangeListener, but doesn't remove it
-----------------------------------------------------------------------------
Key: JBIDE-6749
URL: https://jira.jboss.org/browse/JBIDE-6749
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: drools
Affects Versions: 3.2.0.M1
Reporter: Snjezana Peco
Assignee: Kris Verlaenen
The following exception happens sometimes when exiting Eclipse (when running tests that remove projects on exit, for instance):
org.eclipse.swt.SWTException: Device is disposed
at org.eclipse.swt.SWT.error(SWT.java:4083)
at org.eclipse.swt.SWT.error(SWT.java:3998)
at org.eclipse.swt.SWT.error(SWT.java:3969)
at org.eclipse.swt.widgets.Display.error(Display.java:1249)
at org.eclipse.swt.widgets.Display.asyncExec(Display.java:700)
at org.guvnor.tools.ResourceChangeListener.deleteResources(Unknown Source)
at org.guvnor.tools.ResourceChangeListener.resourceChanged(Unknown Source)
at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:291)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285)
at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149)
at org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:327)
at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1181)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:45)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
The solution would be to add getWorkspace().removeResourceChangeListener(rcListener) to the Activator.stop() method.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list