ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hi...@apache.org
Subject svn commit: r1088259 - /ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/IvyPlugin.java
Date Sun, 03 Apr 2011 11:55:50 GMT
Author: hibou
Date: Sun Apr  3 11:55:50 2011
New Revision: 1088259

URL: http://svn.apache.org/viewvc?rev=1088259&view=rev
Log:
IVYDE-269:
 - try to be safer about threads being faster than others

Modified:
    ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/IvyPlugin.java

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=1088259&r1=1088258&r2=1088259&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 Apr  3 11:55:50 2011
@@ -71,7 +71,7 @@ public class IvyPlugin extends AbstractU
     public static final String MARKER_ID = ID + ".marker";
 
     // The shared instance.
-    private static IvyPlugin plugin;
+    private volatile static IvyPlugin plugin;
 
     // Resource bundle.
     private ResourceBundle resourceBundle;
@@ -178,7 +178,6 @@ public class IvyPlugin extends AbstractU
      */
     public void stop(BundleContext context) throws Exception {
         super.stop(context);
-        plugin = null;
         resourceBundle = null;
         IWorkspace workspace = ResourcesPlugin.getWorkspace();
         workspace.removeSaveParticipant(this);
@@ -197,6 +196,7 @@ public class IvyPlugin extends AbstractU
         if (console != null) {
             console.destroy();
         }
+        plugin = null;
     }
 
     void prefStoreChanged() throws JavaModelException {



Mime
View raw message