|
From: <caw...@us...> - 2007-05-10 17:08:05
|
Revision: 2457
http://svn.sourceforge.net/rubyeclipse/?rev=2457&view=rev
Author: cawilliams
Date: 2007-05-10 10:08:02 -0700 (Thu, 10 May 2007)
Log Message:
-----------
wrap showPage() call in an asyncExec
Modified Paths:
--------------
trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/infoviews/RIView.java
Modified: trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/infoviews/RIView.java
===================================================================
--- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/infoviews/RIView.java 2007-05-10 13:10:19 UTC (rev 2456)
+++ trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/infoviews/RIView.java 2007-05-10 17:08:02 UTC (rev 2457)
@@ -36,6 +36,7 @@
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.part.PageBook;
import org.eclipse.ui.part.ViewPart;
import org.rubypeople.rdt.internal.ui.RubyPlugin;
@@ -247,7 +248,11 @@
// If we can't find it ourselves then display an error to the user
if (file == null || !file.exists() || !file.isFile()) {
riFound = false;
- pageBook.showPage(riNotFoundLabel);
+ PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
+ public void run() {
+ pageBook.showPage(riNotFoundLabel);
+ }
+ });
return;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|