public class SyntaxColoringPreferencePage extends AbstractPreferencePage implements IHighlightingConfigurationAcceptor, java.util.Comparator<Triple<java.lang.String,java.lang.String,TextStyle>>
Constructor and Description |
---|
SyntaxColoringPreferencePage() |
Modifier and Type | Method and Description |
---|---|
void |
acceptDefaultHighlighting(java.lang.String id,
java.lang.String name,
TextStyle style)
Call this method to announce a specific default style.
|
protected void |
addField(org.eclipse.jface.preference.FieldEditor editor)
TODO: better use unqualified names in preference store.
|
void |
collectHighlightings(IHighlightingConfiguration configuration) |
int |
compare(Triple<java.lang.String,java.lang.String,TextStyle> left,
Triple<java.lang.String,java.lang.String,TextStyle> right) |
protected void |
createFieldEditors() |
protected java.lang.String |
qualifiedName() |
protected void |
refreshAttributes() |
createContents, createControl, doGetPreferenceStore, getElement, getLanguageName, getQualifier, getWorkbench, init, isPropertyPage, performOk, setElement, updateFieldEditors, useProjectSettingsPreferenceName
adjustGridLayout, applyFont, checkState, dispose, getFieldEditorParent, initialize, performDefaults, propertyChange, setVisible
applyData, applyDialogFont, computeSize, contributeButtons, createDescriptionLabel, createNoteComposite, doComputeSize, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, okToLeave, performApply, performCancel, performHelp, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButton
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
protected java.lang.String qualifiedName()
qualifiedName
in class AbstractPreferencePage
@Inject public void collectHighlightings(IHighlightingConfiguration configuration)
public void acceptDefaultHighlighting(java.lang.String id, java.lang.String name, TextStyle style)
IHighlightingConfigurationAcceptor
IllegalStateException
when an id is used twice.acceptDefaultHighlighting
in interface IHighlightingConfigurationAcceptor
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.IHighlightingConfiguration.configure(IHighlightingConfigurationAcceptor)
protected void createFieldEditors()
createFieldEditors
in class org.eclipse.jface.preference.FieldEditorPreferencePage
protected void refreshAttributes()
public int compare(Triple<java.lang.String,java.lang.String,TextStyle> left, Triple<java.lang.String,java.lang.String,TextStyle> right)
protected void addField(org.eclipse.jface.preference.FieldEditor editor)
addField
in class AbstractPreferencePage