Author: snjeza
Date: 2011-11-10 09:56:30 -0500 (Thu, 10 Nov 2011)
New Revision: 36277
Modified:
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/RefreshIndicator.java
Log:
JBIDE-10153 org.eclipse.swt.SWTException when closing JBoss Central editor
Modified:
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/RefreshIndicator.java
===================================================================
---
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/RefreshIndicator.java 2011-11-10
13:30:08 UTC (rev 36276)
+++
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/RefreshIndicator.java 2011-11-10
14:56:30 UTC (rev 36277)
@@ -108,6 +108,10 @@
while (!stop) {
Display.getDefault().syncExec(new Runnable() {
public void run() {
+ if (isDisposed() || getParent() == null || getParent().isDisposed()) {
+ setBusy(false);
+ return;
+ }
if (!getParent().isVisible()) {
return;
}