X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/codemanipulation/StubUtility.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/codemanipulation/StubUtility.java index 67714c9..ca646ed 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/codemanipulation/StubUtility.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/codemanipulation/StubUtility.java @@ -5,6 +5,8 @@ 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; @@ -510,23 +512,23 @@ 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; + } }