Author: dazarov
Date: 2011-12-22 17:37:59 -0500 (Thu, 22 Dec 2011)
New Revision: 37539
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-22
22:18:27 UTC (rev 37538)
+++
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/refactoring/MarkerResolutionUtils.java 2011-12-22
22:37:59 UTC (rev 37539)
@@ -330,7 +330,7 @@
if(elementNode instanceof BodyDeclaration &&
((BodyDeclaration)elementNode).getJavadoc() != null){
position += ((BodyDeclaration)elementNode).getJavadoc().getLength();
char c = buffer.getChar(position);
- while((c == '\r' || c == '\n') && position <
buffer.getLength()-2 ){
+ while((c == C_CARRIAGE_RETURN || c == C_NEW_LINE) && position <
buffer.getLength()-2 ){
position++;
c = buffer.getChar(position);
}