Author: scabanovich
Date: 2011-02-14 07:50:15 -0500 (Mon, 14 Feb 2011)
New Revision: 29131
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/handlers/bean/JSFRenameFieldParticipant.java
Log:
JBIDE-8392
https://issues.jboss.org/browse/JBIDE-8392
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/handlers/bean/JSFRenameFieldParticipant.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/handlers/bean/JSFRenameFieldParticipant.java 2011-02-14
12:05:44 UTC (rev 29130)
+++
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/handlers/bean/JSFRenameFieldParticipant.java 2011-02-14
12:50:15 UTC (rev 29131)
@@ -83,8 +83,9 @@
XModelObject[] os = JSFRenameFieldHelper.getBeanList(model, method);
String propertyName = BeanUtil.getPropertyName(method.getElementName());
if(propertyName == null) return null;
+ String newPropertyName = BeanUtil.getPropertyName(newName);
os = getProperties(os, propertyName);
- RenameModelObjectChange c1 = RenameModelObjectChange.createChange(os, newName,
"property-name"); //$NON-NLS-1$
+ RenameModelObjectChange c1 = RenameModelObjectChange.createChange(os,
newPropertyName, "property-name"); //$NON-NLS-1$
return c1;
} else if(object != null) {
RenameModelObjectChange c1 = RenameModelObjectChange.createChange(new
XModelObject[]{object}, getArguments().getNewName(), "property-name");
//$NON-NLS-1$