Commit 9b18bee7 authored by Hernan Ponce de Leon's avatar Hernan Ponce de Leon
Browse files

Ready for review

parent 3bdc0a14
......@@ -61,7 +61,7 @@ import org.fortiss.tooling.kernel.model.INamedElement;
* @author kisslinger
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: E7032B0C557EF83851EF2F5AE38A1AB3
* @ConQAT.Rating YELLOW Hash: 2915BC02EE86D7D0180453B87FACBB06
*/
public class ConnectionTextHover extends DefaultTextHover implements ITextHoverExtension2 {
......@@ -230,12 +230,12 @@ public class ConnectionTextHover extends DefaultTextHover implements ITextHoverE
private void hoverListText(StringBuilder hoverText, INamedElement element, String title,
List<Requirement> reqList, boolean hasImage, boolean isAbbreviation, boolean isSynonym,
boolean hasLine) {
// If the title already occurs, we do not add anything to the hover
// If the title already occurs, we do not add anything to the hover.
if(hoverText.indexOf(title) != -1)
return;
hoverText.append("<p><h4> " + title + " </h4></p>");
if(hasImage && element instanceof IImageContainer) {
// - 'hoverText' is only called from method getHoverInfo2 (in this class).
// - 'hoverListText' is only called from method hoverList (in this class).
// - the 'hasImage' flag is only true when 'getImages().size() > 0', in which case
// images exist.
// - otherwise the 'hasImage' flag is false, and get(0) does not get executed.
......@@ -274,7 +274,7 @@ public class ConnectionTextHover extends DefaultTextHover implements ITextHoverE
/**
*
* Method to search glossary entries matching to a hovered word (plus
* surrounding words in the textviewer). Additionally considers plural endings
* surrounding words in the text viewer). Additionally considers plural endings
*
* @param textViewer
* {@link ITextViewer} displaying the word
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment