ICommandService commandService = ( ICommandService ) PlatformUI.getWorkbench().getAdapter(
ICommandService.class );
if ( commandService != null )
{
commandService.getCommand( newSchema.getActionDefinitionId() ).setHandler(
new ActionHandler( newSchema ) );
commandService.getCommand( newAttributeType.getActionDefinitionId() ).setHandler(
new ActionHandler( newAttributeType ) );
commandService.getCommand( newObjectClass.getActionDefinitionId() ).setHandler(
new ActionHandler( newObjectClass ) );
commandService.getCommand( openElement.getActionDefinitionId() ).setHandler(
new ActionHandler( openElement ) );
commandService.getCommand( openTypeHierarchy.getActionDefinitionId() ).setHandler(
new ActionHandler( openTypeHierarchy ) );
commandService.getCommand( deleteSchemaElement.getActionDefinitionId() ).setHandler(
new ActionHandler( deleteSchemaElement ) );
commandService.getCommand( renameSchemaElement.getActionDefinitionId() ).setHandler(
new ActionHandler( renameSchemaElement ) );
}
}
}