/** * Returns a best guess for the name of the new target. * * @return a best guess for the name */ protected String suggestTargetName() { try { final String[] candidates= StubUtility.getArgumentNameSuggestions(fMethod.getDeclaringType(), computeReservedIdentifiers()); if (candidates.length > 0) { if (candidates[0].indexOf('$') < 0) return candidates[0]; } } catch (JavaModelException exception) { JavaPlugin.log(exception); } return "arg"; //$NON-NLS-1$ } }
/** * Returns a best guess for the name of the new target. * * @return a best guess for the name */ protected String suggestTargetName() { try { final String[] candidates= StubUtility.getArgumentNameSuggestions(fMethod.getDeclaringType(), computeReservedIdentifiers()); if (candidates.length > 0) { if (candidates[0].indexOf('$') < 0) return candidates[0]; } } catch (JavaModelException exception) { JavaPlugin.log(exception); } return "arg"; //$NON-NLS-1$ } }
/** * Returns a best guess for the name of the new target. * * @return a best guess for the name */ protected String suggestTargetName() { try { final String[] candidates= StubUtility.getArgumentNameSuggestions(fMethod.getDeclaringType(), computeReservedIdentifiers()); if (candidates.length > 0) { if (candidates[0].indexOf('$') < 0) return candidates[0]; } } catch (JavaModelException exception) { JavaPlugin.log(exception); } return "arg"; //$NON-NLS-1$ } }