Author: vrubezhny
Date: 2012-02-01 10:16:45 -0500 (Wed, 01 Feb 2012)
New Revision: 38369
Modified:
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/ClassHyperlink.java
Log:
JBIDE-10778
ClassHyperlink.doHyperlink(IRegion region) fails to execute when region has escaped
symbols like \r\n\t
Issue is fixed
Modified:
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/ClassHyperlink.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/ClassHyperlink.java 2012-02-01
14:17:36 UTC (rev 38368)
+++
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/ClassHyperlink.java 2012-02-01
15:16:45 UTC (rev 38369)
@@ -84,7 +84,7 @@
private String getClassName(IRegion region) {
try {
- return getDocument().get(region.getOffset(), region.getLength());
+ return getDocument().get(region.getOffset(), region.getLength()).trim();
} catch (BadLocationException x) {
// Ignore
return null;
Show replies by date