org.eclipse.xtext.ui.editor.syntaxcoloring
Interface IHighlightingConfigurationAcceptor

All Known Implementing Classes:
SyntaxColoringPreferencePage, TextAttributeProvider

public interface IHighlightingConfigurationAcceptor

An IHighlightingConfigurationAcceptor is used to collect default settings for the various highlighting configurations. This interface is implemented by components of the framework that need to collect all default configurations. It is not intended to be implemented by clients, although it is easily possible.

Author:
Sebastian Zarnekow - Initial contribution and API
See Also:
ILexicalHighlightingConfiguration#configure(IHighlightingConfigurationAcceptor), ISemanticHighlightingConfiguration#configure(IHighlightingConfigurationAcceptor)

Method Summary
 void acceptDefaultHighlighting(java.lang.String id, java.lang.String name, TextStyle style)
          Call this method to announce a specific default style.
 

Method Detail

acceptDefaultHighlighting

void acceptDefaultHighlighting(java.lang.String id,
                               java.lang.String name,
                               TextStyle style)
Call this method to announce a specific default style. Implementors may throw an IllegalStateException when an id is used twice.

Parameters:
id - the unique id that should be associated with the given style.
name - the human readable name of the style.
style - the default style with the given id and name.
Throws:
java.lang.IllegalStateException - when an id has been used twice.
See Also:
ILexicalHighlightingConfiguration#configure(IHighlightingConfigurationAcceptor), ISemanticHighlightingConfiguration#configure(IHighlightingConfigurationAcceptor)