}
public static String stringOfType(Type type){
String text = type.getName();
if (type.eContainer() instanceof Library) {
Library lib = (Library) type.eContainer();
if (lib.getName() != null) {
text += " : " + lib.getName();
if (lib.getUri() != null)
text += "<br>( " + lib.getUri() + " )";
}
} else if (type.eContainer() instanceof Package) {
Package pack = (Package) type.eContainer();
if (pack.getName() != null) {
text += " : " + pack.getName();