You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by hi...@apache.org on 2012/07/15 20:30:23 UTC
svn commit: r1361749 - in /ant/ivy/ivyde/trunk: doc/release-notes.html
org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/IvyPlugin.java
Author: hibou
Date: Sun Jul 15 18:30:22 2012
New Revision: 1361749
URL: http://svn.apache.org/viewvc?rev=1361749&view=rev
Log:
FIX IVYDE-313: SWT resources must be accessed via the UI thread
Modified:
ant/ivy/ivyde/trunk/doc/release-notes.html
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/IvyPlugin.java
Modified: ant/ivy/ivyde/trunk/doc/release-notes.html
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/doc/release-notes.html?rev=1361749&r1=1361748&r2=1361749&view=diff
==============================================================================
--- ant/ivy/ivyde/trunk/doc/release-notes.html (original)
+++ ant/ivy/ivyde/trunk/doc/release-notes.html Sun Jul 15 18:30:22 2012
@@ -117,6 +117,7 @@ long, but Apache IvyDE couldn't be what
List of changes since <a href="/ivy/ivyde/history/2.2.0.beta1/release-notes.html">Apache IvyDE 2.2.0 beta1</a>:
<ul>
+ <li>FIX: org.eclipse.swt.SWTException: Invalid thread access with Eclipse Juno (IVYDE-313)</li>
<!-- samples
<li>NEW: new new new (IVYDE-XXX) (thanks to XXX)</li>
<li>IMPROVE: new new new (IVYDE-XXX) (thanks to XXX)</li>
Modified: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/IvyPlugin.java
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/IvyPlugin.java?rev=1361749&r1=1361748&r2=1361749&view=diff
==============================================================================
--- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/IvyPlugin.java (original)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/IvyPlugin.java Sun Jul 15 18:30:22 2012
@@ -52,6 +52,7 @@ import org.eclipse.jface.dialogs.Message
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.util.IPropertyChangeListener;
import org.eclipse.jface.util.PropertyChangeEvent;
+import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPage;
@@ -119,7 +120,11 @@ public class IvyPlugin extends AbstractU
workspace.addSaveParticipant(this, retrieveSetupManager);
colorManager = new ColorManager();
- colorManager.refreshFromStore(getPreferenceStore());
+ Display.getDefault().asyncExec(new Runnable() {
+ public void run() {
+ colorManager.refreshFromStore(getPreferenceStore());
+ }
+ });
prefStoreHelper = new IvyDEPreferenceStoreHelper(getPreferenceStore());