protected void _format(SarlEvent event, IFormattableDocument document) {
		formatAnnotations(event, document, XbaseFormatterPreferenceKeys.newLineAfterClassAnnotations);
		formatModifiers(event, document);

		final ISemanticRegionsFinder regionFor = this.textRegionExtensions.regionFor(event);
		document.append(regionFor.keyword(this.keywords.getEventKeyword()), ONE_SPACE);

		document.surround(regionFor.keyword(this.keywords.getExtendsKeyword()), ONE_SPACE);
		document.format(event.getExtends());

		formatBody(event, document);
	}
protected void _format ( SarlEvent event , IFormattableDocument document ) { formatAnnotations ( event , document , XbaseFormatterPreferenceKeys . newLineAfterClassAnnotations ) ; formatModifiers ( event , document ) ; final ISemanticRegionsFinder regionFor = this . textRegionExtensions . regionFor ( event ) ; document . append ( regionFor . keyword ( this . keywords . getEventKeyword ( ) ) , ONE_SPACE ) ; document . surround ( regionFor . keyword ( this . keywords . getExtendsKeyword ( ) ) , ONE_SPACE ) ; document . format ( event . getExtends ( ) ) ; formatBody ( event , document ) ; }
Format the given SARL event.

@param event the SARL component.
@param document the document.