// Getting the right schema
Schema schema = pool.getSchema( schemaName );
// Creating the new object class and adding it to the schema
ObjectClassLiteral objectClassLiteral = new ObjectClassLiteral( this.page.getOidField() );
objectClassLiteral.setNames( new String[]
{ this.page.getNameField() } );
objectClassLiteral.setSuperiors( new String[]
{ "top" } ); //$NON-NLS-1$
ObjectClass objectClass = new ObjectClass( objectClassLiteral, schema );
schema.addObjectClass( objectClass );
// Opening the associated editor