Added "Task Tags" functionality (TODO,...)
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / ui / actions / AddBlockCommentAction.java
index b5d959a..1567bca 100644 (file)
@@ -112,7 +112,7 @@ public class AddBlockCommentAction extends BlockCommentAction {
                
                boolean wasJavadoc= false; // true if the previous partition is javadoc
                
-               if (partType == IPHPPartitions.PHP_MULTILINE_COMMENT) {
+               if (partType == IPHPPartitions.PHP_PHPDOC_COMMENT) {
                        
                        wasJavadoc= true;
                        
@@ -138,7 +138,7 @@ public class AddBlockCommentAction extends BlockCommentAction {
                        
                } else { // !wasJavadoc
                
-                       if (partType == IPHPPartitions.PHP_MULTILINE_COMMENT) {
+                       if (partType == IPHPPartitions.PHP_PHPDOC_COMMENT) {
                                // if next is javadoc, end block comment before
                                edits.add(factory.createEdit(partition.getOffset(), 0, getCommentEnd()));
 //                     } else if (partType == IJavaPartitions.JAVA_MULTI_LINE_COMMENT) {
@@ -182,7 +182,7 @@ public class AddBlockCommentAction extends BlockCommentAction {
        private boolean isSpecialPartition(String partType) {
                return// partType == IPHPPartitions.PHP_CHARACTER
                                //|| 
-                               partType == IPHPPartitions.PHP_STRING;
+                               partType == IPHPPartitions.PHP_STRING_DQ;
                                //|| partType == IPHPPartitions.PHP_SINGLE_LINE_COMMENT;
        }