]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/parsing/documentation/EntityRef.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / internal / parsing / documentation / EntityRef.java
1 package org.simantics.scl.compiler.internal.parsing.documentation;
2
3
4 public class EntityRef extends DocumentationElement {
5     String refs;
6     
7     public EntityRef(String refs) {
8         this.refs = refs;
9     }
10
11     @Override
12     public void toHtml(HtmlUnparsingContext context) {
13         
14         for(String ref : refs.split(",")) {
15             ref = ref.trim();
16             if(ref.isEmpty())
17                 continue;
18             context.clear();
19             context.documentEntity(ref);
20         }
21     }
22 }