@@ -59,8 +59,6 @@ class SublimeJavaDotComplete(completioncommon.CompletionCommonDotComplete):
5959class SublimeJavaCompletion (completioncommon .CompletionCommon ):
6060 def __init__ (self ):
6161 super (SublimeJavaCompletion , self ).__init__ ("SublimeJava.sublime-settings" , os .path .dirname (os .path .abspath (__file__ )))
62- self .javaseparator = None # just so that get_cmd references it. It's set "for real" later
63- self .javaseparator = self .run_completion ("-separator" ).strip ()
6462 self .regex = [
6563 (re .compile (r"\[I([,)}]|$)" ), r"int[]\1" ),
6664 (re .compile (r"\[F([,)}]|$)" ), r"float[]\1" ),
@@ -96,16 +94,14 @@ def get_packages(self, data, thispackage, type):
9694 return packages
9795
9896 def get_cmd (self ):
99- classpath = "."
100- if self .javaseparator != None :
101- classpath = self .get_setting ("sublimejava_classpath" , ["." ])
102- newclasspath = []
103- window = sublime .active_window ()
104- for path in classpath :
105- newclasspath .append (self .expand_path (path , window ))
106- classpath = newclasspath
107- classpath .insert (0 , "." )
108- classpath = self .javaseparator .join (classpath )
97+ classpath = self .get_setting ("sublimejava_classpath" , ["." ])
98+ newclasspath = []
99+ window = sublime .active_window ()
100+ for path in classpath :
101+ newclasspath .append (self .expand_path (path , window ))
102+ classpath = newclasspath
103+ classpath .insert (0 , "." )
104+ classpath = os .pathsep .join (classpath )
109105 return "java -classpath %s SublimeJava" % classpath
110106
111107 def is_supported_language (self , view ):
0 commit comments