*/
package net.sourceforge.phpdt.internal.corext.codemanipulation;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-
-import org.eclipse.swt.SWT;
-
-import org.eclipse.jface.text.BadLocationException;
-import org.eclipse.jface.text.IDocument;
-
-//import org.phpeclipse.phpdt.core.Flags;
-//import org.phpeclipse.phpdt.core.IBuffer;
import net.sourceforge.phpdt.core.ICodeFormatter;
-//import org.phpeclipse.phpdt.core.ICompilationUnit;
-//import org.phpeclipse.phpdt.core.IJavaElement;
-//import org.phpeclipse.phpdt.core.IJavaProject;
-//import org.phpeclipse.phpdt.core.IMethod;
-//import org.phpeclipse.phpdt.core.IParent;
-//import org.phpeclipse.phpdt.core.ISourceReference;
-//import org.phpeclipse.phpdt.core.IType;
-//import org.phpeclipse.phpdt.core.ITypeHierarchy;
-import net.sourceforge.phpeclipse.PHPCore;
-//import org.phpeclipse.phpdt.core.JavaModelException;
-//import org.phpeclipse.phpdt.core.Signature;
+import net.sourceforge.phpdt.core.IJavaProject;
+import net.sourceforge.phpdt.core.JavaCore;
import net.sourceforge.phpdt.core.ToolFactory;
-//import net.sourceforge.phpdt.internal.corext.util.CodeFormatterUtil;
-//import net.sourceforge.phpdt.internal.corext.util.JavaModelUtil;
-import net.sourceforge.phpdt.internal.corext.util.Strings;
+import org.eclipse.jface.text.BadLocationException;
+import org.eclipse.jface.text.IDocument;
public class StubUtility {
// 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;
+ }
}