{
IBrowserConnection connection = BrowserCorePlugin.getDefault().getConnectionManager().getBrowserConnectionById(
memento.getString( "CONNECTION" ) ); //$NON-NLS-1$
String schemaElementType = memento.getString( "SCHEMAELEMENTYPE" ); //$NON-NLS-1$
String schemaElementOid = memento.getString( "SCHEMAELEMENTOID" ); //$NON-NLS-1$
AbstractSchemaDescription schemaElement = null;
if ( ObjectClassDescription.class.getName().equals( schemaElementType ) )
{
schemaElement = connection.getSchema().getObjectClassDescription( schemaElementOid );
}
else if ( AttributeTypeDescription.class.getName().equals( schemaElementType ) )