public class TextAttributeProvider extends Object implements ITextAttributeProvider, IHighlightingConfigurationAcceptor, org.eclipse.jface.util.IPropertyChangeListener
| Constructor and Description |
|---|
TextAttributeProvider(IHighlightingConfiguration highlightingConfig,
IPreferenceStoreAccess preferenceStoreAccess,
PreferenceStoreAccessor prefStoreAccessor) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptDefaultHighlighting(String id,
String name,
TextStyle style)
Call this method to announce a specific default style.
|
protected org.eclipse.jface.text.TextAttribute |
createTextAttribute(String id,
TextStyle defaultTextStyle) |
org.eclipse.jface.text.TextAttribute |
getAttribute(String id) |
org.eclipse.jface.text.TextAttribute |
getMergedAttributes(String[] ids) |
String |
getMergedIds(String[] ids) |
void |
propertyChange(org.eclipse.jface.util.PropertyChangeEvent event) |
@Inject public TextAttributeProvider(IHighlightingConfiguration highlightingConfig, IPreferenceStoreAccess preferenceStoreAccess, PreferenceStoreAccessor prefStoreAccessor)
public org.eclipse.jface.text.TextAttribute getAttribute(String id)
getAttribute in interface ITextAttributeProviderpublic org.eclipse.jface.text.TextAttribute getMergedAttributes(String[] ids)
getMergedAttributes in interface ITextAttributeProviderpublic void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
propertyChange in interface org.eclipse.jface.util.IPropertyChangeListenerpublic void acceptDefaultHighlighting(String id, String name, TextStyle style)
IHighlightingConfigurationAcceptorIllegalStateException when an id is used twice.acceptDefaultHighlighting in interface IHighlightingConfigurationAcceptorid - 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.IHighlightingConfiguration.configure(IHighlightingConfigurationAcceptor)Copyright © 2016. All Rights Reserved.