objectClassLiteral.setSuperiors( new String[]{ "top" } ); //$NON-NLS-1$
ObjectClass objectClass = new ObjectClass( objectClassLiteral, schema );
schema.addObjectClass( objectClass );
// Opening the associated editor
ObjectClassFormEditorInput input = new ObjectClassFormEditorInput( objectClass );
String editorId = ObjectClassFormEditor.ID;
try
{
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().openEditor( input, editorId );
}