Author: dazarov
Date: 2011-12-22 19:30:52 -0500 (Thu, 22 Dec 2011)
New Revision: 37544
Modified:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/refactoring/MarkerResolutionUtils.java
Log:
Java Seam and CDI quick fixes: after quick fix, editor is scrolled to the beginning. If
Undo/Redo commands are used, the entire file content gets selected
https://issues.jboss.org/browse/JBIDE-10536
Modified:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/refactoring/MarkerResolutionUtils.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/refactoring/MarkerResolutionUtils.java 2011-12-23
00:27:38 UTC (rev 37543)
+++
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/refactoring/MarkerResolutionUtils.java 2011-12-23
00:30:52 UTC (rev 37544)
@@ -337,7 +337,7 @@
}
while(position < buffer.getLength()-1){
char c = buffer.getChar(position);
- if(c != '\r' && c != '\n' && c != ' '
&& c != '\t'){
+ if(c != C_CARRIAGE_RETURN && c != C_NEW_LINE && c != C_SPACE
&& c != C_TAB){
break;
}
position++;