]> Dogcows Code - chaz/vimcoder/blobdiff - src/com/dogcows/Editor.java
compressing types with multiple identifiers is bad for C++
[chaz/vimcoder] / src / com / dogcows / Editor.java
index 57e1b779a2a74aedb9f71aa5b1ac26e60d3c1e16..ff38a0ff4df175efde211fe7dd050fa3be86cd91 100644 (file)
@@ -89,7 +89,7 @@ public class Editor
 
                // Set up the terms used for the template expansion.
                HashMap<String,String> terms = new HashMap<String,String>();
-               terms.put("RETURNTYPE",   component.getReturnType().getDescriptor(language).replaceAll("\\s+", ""));
+               terms.put("RETURNTYPE",   component.getReturnType().getDescriptor(language));
                terms.put("CLASSNAME",    name);
                terms.put("METHODNAME",   component.getMethodName());
                terms.put("METHODPARAMS", getMethodParams(component.getParamTypes(),
@@ -97,7 +97,7 @@ public class Editor
                                                                                                  language));
                terms.put("METHODPARAMNAMES",     Util.join(component.getParamNames(), ", "));
                terms.put("METHODPARAMSTREAMIN",  Util.join(component.getParamNames(), " >> "));
-               terms.put("METHODPARAMSTREAMOUT", Util.join(component.getParamNames(), " << "));
+               terms.put("METHODPARAMSTREAMOUT", Util.join(component.getParamNames(), " << \", \" << "));
                terms.put("METHODPARAMDECLARES",  getMethodParamDeclarations(component.getParamTypes(),
                                                                                                                                         component.getParamNames(),
                                                                                                                                         language));
@@ -243,7 +243,7 @@ public class Editor
                 * before the timeout, we will assume it is not backgrounding and
                 * that everything worked.  This works as long as the Vim server is
                 * able to start within the stall period. */
-               long expire = System.currentTimeMillis() + 250;
+               long expire = System.currentTimeMillis() + 1000;
                while (System.currentTimeMillis() < expire)
                {
                        Thread.yield();
@@ -295,7 +295,7 @@ public class Editor
                String[] strings = new String[types.length];
                for (int i = 0; i < types.length; ++i)
                {
-                       strings[i] = types[i].getDescriptor(language).replaceAll("\\s+", "");
+                       strings[i] = types[i].getDescriptor(language);
                }
                return strings;
        }
This page took 0.022565 seconds and 4 git commands to generate.