#239131 Resolve the going from readAccess to writeAccess exception
authorJulien Enselme <jenselme@netbeans.org>
Wed, 08 Jul 2015 15:32:47 +0200
changeset 18285b047cef8879f
parent 18284 046ea62c1af4
child 18286 b0eed920d5f0
#239131 Resolve the going from readAccess to writeAccess exception
python.core/src/org/netbeans/modules/python/api/PythonPlatformManager.java
python.project2/src/org/netbeans/modules/python/project2/ui/actions/RunSingleCommand.java
     1.1 --- a/python.core/src/org/netbeans/modules/python/api/PythonPlatformManager.java	Sun Jul 05 00:01:18 2015 +0200
     1.2 +++ b/python.core/src/org/netbeans/modules/python/api/PythonPlatformManager.java	Wed Jul 08 15:32:47 2015 +0200
     1.3 @@ -93,12 +93,6 @@
     1.4             jythonInstallDir + File.separator + "Lib" + File.separator + "site-packages" });
     1.5          List<String> list = discoverJythonClasspath(platform.getInterpreterCommand());
     1.6          platform.setJavaPath(list.toArray(new String[list.size()]));
     1.7 -        try {
     1.8 -            //platform.setDirty(false);
     1.9 -            storePlatform(platform);
    1.10 -        } catch (IOException ex) {
    1.11 -            Exceptions.printStackTrace(ex);
    1.12 -        }
    1.13  
    1.14          return platform;
    1.15      }
     2.1 --- a/python.project2/src/org/netbeans/modules/python/project2/ui/actions/RunSingleCommand.java	Sun Jul 05 00:01:18 2015 +0200
     2.2 +++ b/python.project2/src/org/netbeans/modules/python/project2/ui/actions/RunSingleCommand.java	Wed Jul 08 15:32:47 2015 +0200
     2.3 @@ -5,8 +5,6 @@
     2.4  import org.netbeans.modules.python.api.PythonMIMEResolver;
     2.5  import org.netbeans.modules.python.api.PythonOptions;
     2.6  import org.netbeans.modules.python.api.PythonPlatform;
     2.7 -import org.netbeans.modules.python.api.PythonPlatformManager;
     2.8 -import org.netbeans.modules.python.editor.codecoverage.PythonCoverageProvider;
     2.9  import org.netbeans.modules.python.project2.PythonProject2;
    2.10  import org.netbeans.spi.project.ActionProvider;
    2.11  import org.openide.filesystems.FileObject;
    2.12 @@ -21,7 +19,6 @@
    2.13   */
    2.14  public class RunSingleCommand extends Command {
    2.15  
    2.16 -    PythonPlatformManager manager = PythonPlatformManager.getInstance();
    2.17      protected boolean isTest;
    2.18  
    2.19      public RunSingleCommand(PythonProject2 project, boolean isTest) {