Author: dazarov
Date: 2011-12-22 18:53:59 -0500 (Thu, 22 Dec 2011)
New Revision: 37542
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
23:53:41 UTC (rev 37541)
+++
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/refactoring/MarkerResolutionUtils.java 2011-12-22
23:53:59 UTC (rev 37542)
@@ -335,6 +335,13 @@
c = buffer.getChar(position);
}
}
+ while(position < buffer.getLength()-1){
+ char c = buffer.getChar(position);
+ if(c != '\r' && c != '\n' && c != ' '
&& c != '\t'){
+ break;
+ }
+ position++;
+ }
}
if(!(workingCopyMember instanceof ILocalVariable)){