Skip to content
Snippets Groups Projects
Commit 3c8de71a authored by Bernhard Johannes Berger's avatar Bernhard Johannes Berger
Browse files

Updated forgotten reference.

parent f74d7714
No related branches found
No related tags found
No related merge requests found
Pipeline #248681 failed
...@@ -34,20 +34,20 @@ public class OptimisationLanguageLabelProvider extends DefaultEObjectLabelProvid ...@@ -34,20 +34,20 @@ public class OptimisationLanguageLabelProvider extends DefaultEObjectLabelProvid
} }
public String text(final Instance instance) { public String text(final Instance instance) {
return instance.getName().getName(); return instance.getDefinition().getName();
} }
public String text(final Attribute attr) { public String text(final Attribute attr) {
if(attr.getValue() == null) { if(attr.getValue() == null) {
return attr.getName().getName(); return attr.getDefinition().getName();
} else if(attr.getValue() instanceof LiteralValue) { } else if(attr.getValue() instanceof LiteralValue) {
return attr.getName().getName() + " := " + super.doGetText(attr.getValue()); return attr.getDefinition().getName() + " := " + super.doGetText(attr.getValue());
} else if(attr.getValue() instanceof Array) { } else if(attr.getValue() instanceof Array) {
return attr.getName().getName() + " := [...]"; return attr.getDefinition().getName() + " := [...]";
} else if(attr.getValue() instanceof Instance) { } else if(attr.getValue() instanceof Instance) {
return attr.getName().getName() + " := {...}"; return attr.getDefinition().getName() + " := {...}";
} else { } else {
return attr.getName().getName() + " := "; return attr.getDefinition().getName() + " := ";
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment