1) Fixed calculation of the new indentation method of splitted strings.
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / ui / CodeGeneration.java
index 05dacb0..274f574 100644 (file)
@@ -47,12 +47,12 @@ public class CodeGeneration {
         * @throws CoreException
         *             Thrown when the evaluation of the code template fails.
         */
-       public static String getCompilationUnitContent(ICompilationUnit cu,
-                       String typeComment, String typeContent, String lineDelimiter)
-                       throws CoreException {
-               return StubUtility.getCompilationUnitContent(cu, typeComment,
-                               typeContent, lineDelimiter);
-       }
+//     public static String getCompilationUnitContent(ICompilationUnit cu,
+//                     String typeComment, String typeContent, String lineDelimiter)
+//                     throws CoreException {
+//             return StubUtility.getCompilationUnitContent(cu, typeComment,
+//                             typeContent, lineDelimiter);
+//     }
 
        /**
         * Returns the content for a new type comment using the 'type comment' code
@@ -100,11 +100,11 @@ public class CodeGeneration {
         *             Thrown when the evaluation of the code template fails.
         * @since 3.0
         */
-       public static String getFieldComment(ICompilationUnit cu, String typeName,
-                       String fieldName, String lineDelimiter) throws CoreException {
-               return StubUtility.getFieldComment(cu, typeName, fieldName,
-                               lineDelimiter);
-       }
+//     public static String getFieldComment(ICompilationUnit cu, String typeName,
+//                     String fieldName, String lineDelimiter) throws CoreException {
+//             return StubUtility.getFieldComment(cu, typeName, fieldName,
+//                             lineDelimiter);
+//     }
 
        /**
         * Returns the comment for a method or constructor using the comment code
@@ -248,13 +248,13 @@ public class CodeGeneration {
         * @throws CoreException
         *             Thrown when the evaluation of the code template fails.
         */
-       public static String getMethodBodyContent(ICompilationUnit cu,
-                       String declaringTypeName, String methodName, boolean isConstructor,
-                       String bodyStatement, String lineDelimiter) throws CoreException {
-               return StubUtility.getMethodBodyContent(isConstructor, cu
-                               .getJavaProject(), declaringTypeName, methodName,
-                               bodyStatement, lineDelimiter);
-       }
+//     public static String getMethodBodyContent(ICompilationUnit cu,
+//                     String declaringTypeName, String methodName, boolean isConstructor,
+//                     String bodyStatement, String lineDelimiter) throws CoreException {
+//             return StubUtility.getMethodBodyContent(isConstructor, cu
+//                             .getJavaProject(), declaringTypeName, methodName,
+//                             bodyStatement, lineDelimiter);
+//     }
 
        /**
         * Returns the content of body for a getter method using the getter method
@@ -284,12 +284,12 @@ public class CodeGeneration {
         *             Thrown when the evaluation of the code template fails.
         * @since 3.0
         */
-       public static String getGetterMethodBodyContent(ICompilationUnit cu,
-                       String declaringTypeName, String methodName, String fieldName,
-                       String lineDelimiter) throws CoreException {
-               return StubUtility.getGetterMethodBodyContent(cu.getJavaProject(),
-                               declaringTypeName, methodName, fieldName, lineDelimiter);
-       }
+//     public static String getGetterMethodBodyContent(ICompilationUnit cu,
+//                     String declaringTypeName, String methodName, String fieldName,
+//                     String lineDelimiter) throws CoreException {
+//             return StubUtility.getGetterMethodBodyContent(cu.getJavaProject(),
+//                             declaringTypeName, methodName, fieldName, lineDelimiter);
+//     }
 
        /**
         * Returns the content of body for a setter method using the setter method
@@ -322,13 +322,13 @@ public class CodeGeneration {
         *             Thrown when the evaluation of the code template fails.
         * @since 3.0
         */
-       public static String getSetterMethodBodyContent(ICompilationUnit cu,
-                       String declaringTypeName, String methodName, String fieldName,
-                       String paramName, String lineDelimiter) throws CoreException {
-               return StubUtility.getSetterMethodBodyContent(cu.getJavaProject(),
-                               declaringTypeName, methodName, fieldName, paramName,
-                               lineDelimiter);
-       }
+//     public static String getSetterMethodBodyContent(ICompilationUnit cu,
+//                     String declaringTypeName, String methodName, String fieldName,
+//                     String paramName, String lineDelimiter) throws CoreException {
+//             return StubUtility.getSetterMethodBodyContent(cu.getJavaProject(),
+//                             declaringTypeName, methodName, fieldName, paramName,
+//                             lineDelimiter);
+//     }
 
        /**
         * Returns the comment for a getter method using the getter comment