This commit is contained in:
Alexander Doroshko
2012-12-19 12:24:54 +04:00
parent 7305af2b37
commit 148795ddc4
@@ -25,7 +25,7 @@ public class HtmlStructureViewElementProvider implements XmlStructureViewElement
return new HtmlTagTreeElement(tag);
}
static class HtmlTagTreeElement extends XmlTagTreeElement implements LocationPresentation {
private static class HtmlTagTreeElement extends XmlTagTreeElement implements LocationPresentation {
public HtmlTagTreeElement(final XmlTag tag) {
super(tag);
}
@@ -78,7 +78,7 @@ public class HtmlStructureViewElementProvider implements XmlStructureViewElement
}
private static String shortenTextIfLong(final String text) {
if (text.length() < MAX_TEXT_LENGTH) return text;
if (text.length() <= MAX_TEXT_LENGTH) return text;
int index;
for (index = MAX_TEXT_LENGTH; index > MAX_TEXT_LENGTH - 20; index--) {