Commit 92b2bb7c authored by Philip Makedonski's avatar Philip Makedonski
Browse files

+ show refined test objective information on hover, #43

parent 7614cbff
Loading
Loading
Loading
Loading
+8 −1
Original line number Original line Diff line number Diff line
@@ -48,7 +48,14 @@ public class TDLtxHoverProvider extends DefaultEObjectHoverProvider {
			for (Setting f : found) {
			for (Setting f : found) {
				f.getEObject();
				f.getEObject();
			}
			}
			html+="<br/></br>Referenced in: <b><ul><li>"+targets+"</li></ul></b></br>";
			html+="<br/><br/>Description:<b><ul><li>"+((TestObjective) o).getDescription()+"</li></ul></b>";
			html+="References:<b><ul><li>"+((TestObjective) o).getObjectiveURI().stream().collect(Collectors.joining("</li><li>"))+"</li></ul></b>";
			html+="Referenced in:<b><ul><li>"+targets+"</li></ul></b></br>";
		}
		if (o instanceof TestDescription) {
			if (!((TestDescription) o).getTestObjective().isEmpty()) {
				html+="<br/><br/>Objectives:<b><ul><li>"+((TestDescription) o).getTestObjective().stream().map(e->e.getName()+": "+e.getDescription()).collect(Collectors.joining("</li><li>"))+"</li></ul></b>";
			}
		}
		}
		if (o instanceof StructuredDataType) {
		if (o instanceof StructuredDataType) {
			String members = getListOfMembers((StructuredDataType) o);
			String members = getListOfMembers((StructuredDataType) o);