10
10
import java .util .HashMap ;
11
11
import java .util .Map ;
12
12
import org .eclipse .lsp4j .DidChangeConfigurationParams ;
13
- import org .netbeans .api .java .classpath .ClassPath ;
14
- import org .netbeans .api .java .classpath .GlobalPathRegistry ;
15
13
import org .netbeans .api .project .Project ;
16
14
import org .netbeans .api .project .ui .ProjectProblems ;
17
15
import org .netbeans .modules .lsp .client .LSPBindings ;
18
16
import org .netbeans .modules .parsing .api .indexing .IndexingManager ;
19
17
import org .netbeans .modules .python .PythonUtility ;
20
- import org .netbeans .spi .java .classpath .support .ClassPathSupport ;
21
18
import org .netbeans .spi .project .ui .ProjectOpenedHook ;
22
19
import org .openide .filesystems .FileObject ;
23
20
import org .openide .util .Exceptions ;
@@ -32,12 +29,11 @@ public class PythonProjectOpenedHook extends ProjectOpenedHook {
32
29
private final Project project ;
33
30
private final FileObject projectDir ;
34
31
35
- private final ClassPath source ;
36
-
32
+ // private final ClassPath source;
37
33
public PythonProjectOpenedHook (Project project ) {
38
34
this .project = project ;
39
35
this .projectDir = project .getProjectDirectory ();
40
- this .source = ClassPathSupport .createClassPath (project .getProjectDirectory ());
36
+ // this.source = ClassPathSupport.createClassPath(project.getProjectDirectory());
41
37
}
42
38
43
39
@ Override
@@ -76,7 +72,7 @@ protected void projectOpened() {
76
72
} catch (IOException ex ) {
77
73
Exceptions .printStackTrace (ex );
78
74
}
79
- GlobalPathRegistry .getDefault ().register (ClassPath .SOURCE , new ClassPath []{source });
75
+ // GlobalPathRegistry.getDefault().register(ClassPath.SOURCE, new ClassPath[]{source});
80
76
if (ProjectProblems .isBroken (project )) {
81
77
ProjectProblems .showAlert (project );
82
78
}
@@ -85,6 +81,6 @@ protected void projectOpened() {
85
81
86
82
@ Override
87
83
protected void projectClosed () {
88
- GlobalPathRegistry .getDefault ().unregister (ClassPath .SOURCE , new ClassPath []{source });
84
+ // GlobalPathRegistry.getDefault().unregister(ClassPath.SOURCE, new ClassPath[]{source});
89
85
}
90
86
}
0 commit comments