コード例 #1
0
 public static boolean isRenameAvailable(final IMethod method) throws CoreException {
   if (method == null) return false;
   if (!Checks.isAvailable(method)) return false;
   if (method.isConstructor()) return false;
   return true;
 }
コード例 #2
0
 public static boolean isReplaceInvocationsAvailable(IMethod method) throws ModelException {
   if (method == null) return false;
   if (!method.exists()) return false;
   if (method.isConstructor()) return false;
   return true;
 }