Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

No need to call into java for the path separator.

  • Loading branch information...
commit 67e464c29bed27702322d3f165ef281399b87f37 1 parent 0c9b3f2
@quarnster authored
View
BIN  SublimeJava.class
Binary file not shown
View
5 SublimeJava.java
@@ -408,11 +408,6 @@ public static void main(String... unusedargs)
System.err.println("quitting upon request");
return;
}
- else if (args[0].equals("-separator"))
- {
- System.out.println(System.getProperty("path.separator"));
- continue;
- }
else if (args[0].equals("-findclass"))
{
String line = null;
View
4 package.json
@@ -6,11 +6,11 @@
"description": "Java completions for Sublime Text 2",
"author": "Fredrik Ehnbom (quarnster)",
"homepage": "http://github.com/quarnster/SublimeJava",
- "last_modified": "2012-07-05 17:32:00",
+ "last_modified": "2012-07-05 20:25:00",
"platforms": {
"*": [
{
- "version": "1.1.6",
+ "version": "1.1.7",
"url": "http://cloud.github.com/downloads/quarnster/SublimeJava/SublimeJava.sublime-package"
}
]
View
20 sublimejava.py
@@ -59,8 +59,6 @@ class SublimeJavaDotComplete(completioncommon.CompletionCommonDotComplete):
class SublimeJavaCompletion(completioncommon.CompletionCommon):
def __init__(self):
super(SublimeJavaCompletion, self).__init__("SublimeJava.sublime-settings", os.path.dirname(os.path.abspath(__file__)))
- self.javaseparator = None # just so that get_cmd references it. It's set "for real" later
- self.javaseparator = self.run_completion("-separator").strip()
self.regex = [
(re.compile(r"\[I([,)}]|$)"), r"int[]\1"),
(re.compile(r"\[F([,)}]|$)"), r"float[]\1"),
@@ -96,16 +94,14 @@ def get_packages(self, data, thispackage, type):
return packages
def get_cmd(self):
- classpath = "."
- if self.javaseparator != None:
- classpath = self.get_setting("sublimejava_classpath", ["."])
- newclasspath = []
- window = sublime.active_window()
- for path in classpath:
- newclasspath.append(self.expand_path(path, window))
- classpath = newclasspath
- classpath.insert(0, ".")
- classpath = self.javaseparator.join(classpath)
+ classpath = self.get_setting("sublimejava_classpath", ["."])
+ newclasspath = []
+ window = sublime.active_window()
+ for path in classpath:
+ newclasspath.append(self.expand_path(path, window))
+ classpath = newclasspath
+ classpath.insert(0, ".")
+ classpath = os.pathsep.join(classpath)
return "java -classpath %s SublimeJava" % classpath
def is_supported_language(self, view):
Please sign in to comment.
Something went wrong with that request. Please try again.