package net.sourceforge.phpdt.internal.corext.codemanipulation;
import net.sourceforge.phpdt.core.ICodeFormatter;
+import net.sourceforge.phpdt.core.IJavaProject;
+import net.sourceforge.phpdt.core.JavaCore;
import net.sourceforge.phpdt.core.ToolFactory;
import org.eclipse.jface.text.BadLocationException;
// return null;
// }
//
-// public static String getTodoTaskTag(IJavaProject project) {
-// String markers= null;
-// if (project == null) {
-// markers= JavaCore.getOption(JavaCore.COMPILER_TASK_TAGS);
-// } else {
-// markers= project.getOption(JavaCore.COMPILER_TASK_TAGS, true);
-// }
-//
-// if (markers != null && markers.length() > 0) {
-// int idx= markers.indexOf(',');
-// if (idx == -1) {
-// return markers;
-// } else {
-// return markers.substring(0, idx);
-// }
-// }
-// return null;
-// }
+ public static String getTodoTaskTag(IJavaProject project) {
+ String markers= null;
+ if (project == null) {
+ markers= JavaCore.getOption(JavaCore.COMPILER_TASK_TAGS);
+ } else {
+ markers= project.getOption(JavaCore.COMPILER_TASK_TAGS, true);
+ }
+
+ if (markers != null && markers.length() > 0) {
+ int idx= markers.indexOf(',');
+ if (idx == -1) {
+ return markers;
+ } else {
+ return markers.substring(0, idx);
+ }
+ }
+ return null;
+ }
}