Commit 9917432c authored by Philip Makedonski's avatar Philip Makedonski
Browse files

+ updated label provider for extensions

parent f00309bf
......@@ -8,6 +8,7 @@ import com.google.inject.Inject;
import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider;
import org.eclipse.xtext.ui.label.DefaultEObjectLabelProvider;
import org.etsi.mts.tdl.Element;
import org.etsi.mts.tdl.Extension;
/**
* Provides labels for EObjects.
......@@ -23,8 +24,11 @@ public class TDLan2LabelProvider extends DefaultEObjectLabelProvider {
}
String text(Element element) {
if (element.getName() != null)
if (element.getName() != null) {
return element.eClass().getName()+" : "+element.getName();
} else if (element instanceof Extension) {
return element.eClass().getName()+" : "+((Extension) element).getExtending().getName();
}
return element.eClass().getName();
}
......
Markdown is supported
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