Author: dazarov
Date: 2009-10-04 12:39:56 -0400 (Sun, 04 Oct 2009)
New Revision: 17884
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/SeamRenameMethodParticipant.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4856
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/SeamRenameMethodParticipant.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/SeamRenameMethodParticipant.java 2009-10-04
16:32:44 UTC (rev 17883)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/SeamRenameMethodParticipant.java 2009-10-04
16:39:56 UTC (rev 17884)
@@ -42,6 +42,7 @@
private CompositeChange rootChange;
private TextFileChange lastChange;
private ArrayList<String> keys = new ArrayList<String>();
+ private boolean resolved = true;
private static boolean added = false;
@@ -62,6 +63,10 @@
searcher.findELReferences();
+ // TODO: find good phrase and externalize it
+ if(!resolved)
+ status.addWarning("Some changes were not resolved.");
+
return status;
}
@@ -162,6 +167,8 @@
@Override
protected void match(IFile file, int offset, int length, boolean resolved) {
change(file, offset, length, newName);
+ if(!resolved)
+ SeamRenameMethodParticipant.this.resolved = false;
}
}