Author: scabanovich
Date: 2010-12-28 11:46:41 -0500 (Tue, 28 Dec 2010)
New Revision: 27769
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/el/refactoring/RenameMethodParticipant.java
Log:
JBIDE-8011
https://issues.jboss.org/browse/JBIDE-8011
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/el/refactoring/RenameMethodParticipant.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/el/refactoring/RenameMethodParticipant.java 2010-12-28
16:40:48 UTC (rev 27768)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/el/refactoring/RenameMethodParticipant.java 2010-12-28
16:46:41 UTC (rev 27769)
@@ -35,6 +35,7 @@
import org.eclipse.text.edits.ReplaceEdit;
import org.eclipse.text.edits.TextEdit;
import org.jboss.tools.common.model.project.ProjectHome;
+import org.jboss.tools.common.util.BeanUtil;
import org.jboss.tools.jsf.el.refactoring.ELProjectSetExtension;
import org.jboss.tools.jsf.el.refactoring.ProjectsSet;
import org.jboss.tools.jsf.ui.JsfUIMessages;
@@ -56,16 +57,16 @@
CheckConditionsContext context) throws OperationCanceledException {
if(searcher == null)
return status;
- if(element instanceof IMethod){
+ if(element instanceof IMethod) {
IMethod method = (IMethod)element;
IMethod anotherMethod = getAnotherMethod();
if(method != null){
- if(searcher.isGetter(method)){
- if(anotherMethod == null || searcher.isGetter(anotherMethod))
+ if(BeanUtil.isGetter(method)){
+ if(anotherMethod == null || BeanUtil.isGetter(anotherMethod))
status.addWarning(JsfUIMessages.RENAME_METHOD_PARTICIPANT_GETTER_WARNING);
- }else if(searcher.isSetter(method)){
- if(anotherMethod == null || searcher.isSetter(anotherMethod))
+ }else if(BeanUtil.isSetter(method)){
+ if(anotherMethod == null || BeanUtil.isSetter(anotherMethod))
status.addWarning(JsfUIMessages.RENAME_METHOD_PARTICIPANT_SETTER_WARNING);
}