int flags = RenameSupport.UPDATE_GETTER_METHOD | RenameSupport.UPDATE_REFERENCES | RenameSupport.UPDATE_SETTER_METHOD;
RenameSupport rs = RenameSupport.create(lastField, name, flags);
if (rs.preCheck().isOK()) {
IWorkbenchWindow window = JavaUtil.getEclipseWindow();
Shell parent = JavaUtil.getEclipseShell();
rs.perform(parent, window);
adaptable.setLastName(name);
return true;
}
} catch (JavaModelException jme) {
IJavaModelStatus status = jme.getJavaModelStatus();