sb.append( type.getPackageName() );
}
}
else if ( object instanceof ClassifierFacade )
{
ClassifierFacadeLogicImpl type = ( ClassifierFacadeLogicImpl ) object;
org.eclipse.uml2.impl.ClassImpl type2 = ( org.eclipse.uml2.impl.ClassImpl ) type.getMetaObject();
if ( type2.eIsProxy() )
{
URI proxyURI = type2.eProxyURI();
String fragment = proxyURI.fragment().substring( 0, proxyURI.fragment().lastIndexOf( '/' ) );
String packageName = fragment.substring( fragment.lastIndexOf( "/", fragment.indexOf( "." ) ) + 1 )
.replace( '/', '.' );
sb.append( packageName );
}
else
{
sb.append( type.getPackageName() );
}
}
return sb.toString();
}